beautypg.com

Add/ insert smp command packet, Add/ insert frame packet, Add/ insert events in initiator – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 81: Add/insert events in initiator

background image


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

Using Initiator/Host Emulator API Functions 81

Add/ Insert SMP Command Packet

Usage

int nRetVal = -> InsertPacket

(, LAYER_SMP_COMMAND,

, );

Example: int nRetVal = m_pExerciserEngine->InsertPacket (

nIndex, LAYER_SMP_COMMAND,
ID_SMP_FRAME_TYPE_FUNCTION_REPORT_GENERAL,

"PACKET");

Add/ Insert Frame Packet

Usage:

int nRetVal = -> InsertPacket

(, LAYER_TRANSPORT,

, );

Example: int nRetVal = m_pExerciserEngine->InsertPacket (

nIndex, LAYER_TRANSPORT,

EXR_TRANSPORT_FRAME_TYPE_STP_DMA_ACTIVE,

"PACKET");

Add/ Insert Events in Initiator

To add/ insert events in initiator, call the InsertInstruction () function of Exerciser Engine with

Packet Index and Event/Instruction type as parameters.

int nRetVal = m_pExerciserEngine-
>InsertInstruction(nIndex,nEventType);

CExerciserEngine::InsertInstruction ()
Prototype

HRESULT InsertInstruction (int nIndex, int nInstructionType, int* pRetVal);

Usage

int nRetVal = -> InsertInstruction

(, );

Inputs

Int nIndex: Object Index to insert packet in that position

Int nInstructionType: Index of the exerciser event/ instruction type to be

added or inserted at the specified index

Return Value Returns success/ failure status of the method with verification parameters as

Index and Event/Instruction type.

Description Call the InsertInstruction () of Exerciser Engine to add/insert any

event/ instruction at the index specified as the first parameter of the function.

List of Event types include:
PS Request (SAS Only), PS Response (SAS Only), Wake Up, OOB Signal, Primitive, Attach, Detach,

Power On, Power Off, Self Test Exit (SATA Only), PM Response (SATA Only), PM Request (SATA

Only), Soft Reset (SATA Only).
(Refer to CEIStorageConstants.h to view their respective IDs.)