Add/ insert ata command packet, Add/ insert scsi command packet, Add/ insert task command packet – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 80
![background image](/manuals/353624/80/background.png)
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 80
For ATA Commands, refer to CommandTypeEnum
For ATAPI packets, use PACKET Command type of
CommandTypeEnum
combined with SCSI Command type of SCSICommandEnum
To insert a Transport Frame, refer to ExrTransportFrameTypeEnum
To insert an Identify Frame, use
ID_ADDRESS_FRAME_TYPE_IDENTIFY
BSTR bstrName: Name of the packet
Return Value Returns success/ failure status of the method with verification parameters as
Index and LayerID of the packet.
Description
Call the InsertPacket () method of Exerciser Engine to add/ insert any packet in
an index with default value in a layer.
Examples of InsertPacket () functionality for each packet type (ATA/ SCSI/ SMP/ Task/ Frame)
are below.
Add/ Insert ATA Command Packet
Usage
int nRetVal =
(
Example: int nRetVal = m_pExerciserEngine->InsertPacket (
nIndex, LAYER_ATA_COMMAND, READ_DMA_EXT, "PACKET");
Add/ Insert SCSI Command Packet
Usage
int nRetVal =
(
Example: int nRetVal = m_pExerciserEngine->InsertPacket (
nIndex, LAYER_SCSI_COMMAND,SPC3_INQUIRY,"PACKET");
Add/ Insert TASK Command Packet
Usage
int nRetVal =
(
Example: int nRetVal = m_pExerciserEngine->InsertPacket (
nIndex, LAYER_TASK_COMMAND,
ID_SSP_FRAME_TASK_MANAGEMENT_FUNCTION_ABORT_TASK,
"PACKET");