beautypg.com

Insertpacket, Insertpacketbydata – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 463

background image


Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual

IExerciserEngine 463

InsertPacket

int InsertPacket (

int nIndex,

short iLayerID,

short iFormatID,

BSTR bstrName);


Inputs
int nIndex

Object index to inset packet in that position.

short iLayerID

Layer ID of a packet

(see

SASLayerEnum

)

short iFormatID

Format or type of packet.

For SCSI commands, see

SCSICommandsEnum

,

For SMP commands, see

SMPFrameFunctionsEnum

For Task commands, see

SSPTaskManagmentEnum

.

For ATA, see

CommandTypeEnum

.

For ATAPI, PACKET command type of

CommandTypeEnum

plus SCSI

command type of

SCSICommandsEnum

.

To insert a transport frame, see

ExrTransportFrameTypeEnum

.

To insert an Identify frame, use ID_ADDRESS_FRAME_TYPE_IDENTIFY.

BSTR bstrName

Name of a packet.


Return Value
Returns result of method, whether called by valid index and layer ID or not.

Remark
Adds a packet in an index with default value in a layer.
To insert an instruction, see

InsertInstruction

.