Adduserdefinecommand – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 659

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ITargetEmulEngine 659
AddUserDefineCommand
Void AddUserDefineCommand (
BYTE yOperationCode,
TargetEmulatorUserDefineCommandTypeEnum eCommandType,
BSTR bstrCommandName,
BYTE yCDBLength,
long lDataBlockId,
int* pnErrorCode);
Inputs
BYTE yOperationCode
Operation code.
TargetEmulatorUserDefineCommandTypeEnum eCommandType Command type.
(see
TargetEmulatorUserDefineCo
mmandTypeEnum
)
BSTR bstrCommandName
Command name.
BYTE yCDBLength
CDB length for SAS and ATAPI
device.
long lDataBlockId
Data block ID for
configuration commands.
Configuration commands
works with a data that
maximum is 512 bytes and
this data must added before
in data blocks.
(see
TargetEmulatorUserDefineCo
mmandTypeEnum
)
Int* pnErrorCode
Error code.
If the function call was
corrected, the error code is
zero.
Return Value
None.
Remark
Adds a user-defined command for a SAS or SATA device. For a user-defined command, you can
define error injection.
See Also