beautypg.com

Erinjgethandshakeerror – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 700

background image


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

ITargetEmulEngine 700

ErInjGetHandshakeError

ErInjGetHandshakeError (

short iLayerId,

int nCommand,

HandshakeErrorTypeEnum* peHandshakeError,

PrimitiveTypeEnum* pePrimitveTypeGroup ,

int* pnUserDefineHanshakePrimitiveType,

int* pnRetVal);


Inputs
short iLayerId

Layer ID of a packet (see

SASLayerEnum

)

int nCommand

Command type corresponding to layer ID.

(see

SCSICommandsEnum

,

SMPFrameFunctionsEnum

,

CommandTypeEnum

,

SSPTaskManagmentEnum

)

HandshakeErrorTypeEnum* peHandshakeError Handshake type for incoming

frame in a command

(see

HandshakeErrorTypeEnum

).

PrimitiveTypeEnum* pePrimitveTypeGroup

Primitive type for handshake

error in primitive mode for incoming frame in

a command (see

PrimitiveTypeEnum

).

int* pnUserDefineHanshakePrimitiveType

Primitive value for handshake

error in primitive mode for incoming frame in

a command (see

PrimitivesEnum

)

int* pnRetVal

Result of method, whether called by valid

index and layer ID or not or other errors.


Return Value
None.

Remark
Returns handshake error type, and if this type was primitive returns type and value of that

primitive for an incoming frame of a command.
NOTE: Call this method only for the SCSI, SMP, Task, or ATA command packet and transport

packet.
See Also

ErInjSetHandshakeError