Addstate, Copystate – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 212

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ISerialSCSICaptureProject 212
AddState
int AddState (
int* pnAddedStateId);
Inputs
int* pnAddedStateId Returns state ID of new added state or -1 if an error occurs.
Return Value
Error Code if error occurs.
Remark
Adds a new state in advanced mode using the default value in capturing and conditions and
returns state ID of new added state for next use. With this state ID and other functions, you can
change capturing items and all condition items.
If during adding of state an error occurs, AddedStateId returns -1.
NOTE: This method is only for advanced mode.
See Also
CopyState
CopyState (
int nCopyStateId);
Inputs
int nCopyStateId
ID of state to copy.
Return Value
None.
Remark
Copies a state to the clipboard in advanced mode. It is the same state as defined as CopyStateId
in all parts (capturing and conditions). You can paste it using the PasteState or PasteSpecial
methods.