Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 145

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Trainer 145
(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.
GENCOMERR_NOT_A_GENERATION_FILE (0x0217): Input file is not a valid
generation file.
GENCOMERR_GENERATION_FILE_HAS_ERRORS (0x0218): Generation script in
input file has some parsing errors.
Description Call the StartGeneration () method to start the trainer project.
NOTE: If you run other engines (like Analyzer) along with Trainer, be careful about the port
configuration in other engine projects. For example, it is not possible to run a four-port analyzer
project along with the Trainer DEVICE_CONFIG_0_0_AT_0 port config. The port config in the
other engine projects should be same as the one passed to the startGeneration method.
CWnd::SetTimer ()
Prototype
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse,
void (*) (HWND, UINT, UINT_PTR, DWORD) lpfnTimer );
Usage
SetTimer (
Inputs
UINT nIDEvent: Event index
UINT nElapse: Elapse/sleep time for Timer check-up
(gap time between each interval)
Return Value None
Description Call the SetTimer () method to set a timer to check the running status of
the hardware at regular intervals based on the elapse time specified.