Erinjgetinsertprimitive – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 547

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
IExerciserEngine 547
ErInjGetInsertPrimitive
ErInjGetInsertPrimitive (
short iLayerId,
int nCommand,
BOOL* pbEnable,
int* pnPrimitiveType,
PrimitiveTypeEnum* pePrimitiveGroupType ,
short* piOffsetFromFrameStart,
short* piRepeatCount,
int* pnRetVal);
Inputs
short iLayerId
Layer ID of a packet (see
int nCommand
Index of a packet corresponding to layer ID.
BOOL* pbEnable
Specifies whether inserting primitive is selected
or not.
int* pnPrimitiveType
Value of primitive to insert for an outgoing
frame of a command.
PrimitiveTypeEnum* pePrimitiveGroupType Type of primitive to insert for an outgoing frame
of a command (see
PrimitiveTypeEnum
).
short* piOffsetFromFrameStart
Offset of primitive to insert for an outgoing
frame of a command in DWORD format.
short* piRepeatCount
Count of primitive to insert for an outgoing
frame of a command.
int* pnRetVal
Result of method, whether called by valid index
and layer ID or not or other errors.
Return Value
None.
Remark
Returns insert primitive feature such as type of primitive, value, count and offset for an
outgoing frame of a command.
NOTE: Call this method only for the SCSI, SMP, Task, or ATA command packet and transport
packet.
See Also