Setuserdefinecommand – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 661

 
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual 
ITargetEmulEngine 661
SetUserDefineCommand
Void SetUserDefineCommand (
BYTE yOperationCode,
BYTE yNewOperationCode,
TargetEmulatorUserDefineCommandTypeEnum eCommandType,
BSTR bstrCommandName,
BYTE yCDBLength,
long lDataBlockId,
int* pnErrorCode);
 
Inputs 
BYTE yOperationCode 
Operation code of an existing
user-defined command.
BYTE yNewOperationCode
New operation code for user-
defined command.
TargetEmulatorUserDefineCommandTypeEnum eCommandType New command type. 
(see 
TargetEmulatorUserDefineCommandTypeEnum
)
BSTR bstrCommandName
New command name.
BYTE yCDBLength
New CDB length for SAS and
ATAPI device.
long lDataBlockId
New 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 
Modifies a user-defined command for a SAS or SATA device. 
