Setdevicetype – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 361

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ISerialSCSICaptureProject 361
PatternUsingTypeEnum ePatternUsingType Target using type (capture, trigger).
(see
BOOL bIsForEdit
Must be TRUE.
Return Value
If method succeeds, return value is equal to CEI_OK. Otherwise, it returns error code (see
API
Error
).
Remark
Hardware resources for all patterns are based on the direction of the pattern. You must call this
method to assign the resources to that pattern after adding the pattern, with
AddCapturePattern and AddConditionExprPattern methods, and setting the direction of the
pattern.
NOTE: Call this function for all added patterns (in capture or trigger) before running the project
SetDeviceType
SetDeviceType(int nDeviceIndex,
DeviceConfiguartionTypeEnum eDeviceType);
Inputs
int nDeviceIndex
The index of the attached device.
DeviceConfiguartionTypeEnum eDeviceType
This parameter specifies that each port has
what kind of functionality.
For example with DEVICE_CONFIG_A_A_HE_HE
Device type, first & second ports are Analyzer
then third & forth ports are Initiator Emulator.
(See
DeviceConfiguartionTypeEnum
)
Return Value
If method succeeds, return value is equal to CEI_OK. Otherwise, it returns error code (see
API
Error
).
Remark
This function change the functionality of each port in the specified attached unit.
NOTE: Call this function for modify port functionality for each attached unit before running the
project