Startgeneration – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 187

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ISASAPISrvs 187
StartGeneration
HRESULT StartGeneration(
BSTR gen_file_name,
long gen_mode,
long loop_count,
DeviceConfiguartionTypeEnum portConfig)
Inputs
BSTR gen_file_name: String providing the full pathname to the generation file.
long gen_mode: reserved for future use
long loop_count: reserverd for future use
DeviceConfiguartionTypeEnum portConfig: specifies the port configuration for running the
Trainer module along with the Analyzer or other engines. See DeviceConfiguartion type
enums.
The passed configuration should contain theTrainer module. Otherwise, the method
returns an error code.
You can use one of the following configurations.
(DEVICE_CONFIG_T_0_T_0 = 70, DEVICE_CONFIG_0_T_0_T = 71,
DEVICE_CONFIG_AT_0_0_0 = 72, DEVICE_CONFIG_0_AT_0_0 = 73,
DEVICE_CONFIG_0_0_AT_0 = 74, DEVICE_CONFIG_0_0_0_AT = 75,
DEVICE_CONFIG_T_0_A_A = 76, DEVICE_CONFIG_0_T_A_A = 77,
DEVICE_CONFIG_A_A_T_0 = 78, DEVICE_CONFIG_A_A_0_T = 79,
DEVICE_CONFIG_TJ_0_0_0 = 80, DEVICE_CONFIG_0_TJ_0_0 = 81,
DEVICE_CONFIG_0_0_TJ_0 = 82, DEVICE_CONFIG_0_0_0_TJ = 83)
Return Value
ANALYZERCOMERROR_UNABLEOPENFILE(0x0201): unable to open file
GENCOMERR_GEN_IS_ALREADY_IN_PROGRESS(0x0214): Another generation
script is still running. You must stop generation before
starting.
GENCOMERR_PASSED_PORT_DOES_NOT_HAVE_TRAINER(0x0215): Passed port
configuration is not valid and does not have any Trainer port.
GENCOMERR_DEV_DOES_NOT_HAVE_SUFF_LICENSE(0x0216): Board does not
have sufficient license to run the Trainer module. You must
purchase the Trainer module license before starting generation.