Programming Examples
Appendix B
B-9
/* miscellaneous */
#define ADAPTER_DECIDE_LENGTH
0
#define INPUT_TABLE
1
/* point to input image table */
#define OUTPUT_TABLE
2
/* point to output image table */
#define COS_ACKNOWLEDGE
0xFF
#define INTERRUPT_KTX
1
#define ACKNOWLEDGE_KTX
1
/* host/KTX watchdog values */
#define WDG_SCALER
5
/* used to scale KTX ticks to host ticks */
#define HOST_ALIVE
0
#define KTX_ALIVE
2
/* timeout values */
#define
AUTO_TMO_230
4
/* Autoconfiguration can take up to */
#define
AUTO_TMO_115
8
/* several seconds, depending on the */
#define
AUTO_TMO_57
13
/* baud rate and # of link devices */
#define
SETSCAN_TMO_230
2
/* Configuring a new scan list */
#define
SETSCAN_TMO_115
4
/* takes about half the time as */
#define
SETSCAN_TMO_57
8
/* autoconfiguration */
#define
GET_SCAN_TMO
1
/* Get Scan List returns immediately */
#define
SET_MODE_TMO
1
/* Set Mode returns immediately */
#define
SET_FDG_TMO
1
/* Set Fault Group returns immed. */
#define
INIT_TMO
2
/* Initialization takes < 2 seconds */
#define
BT_WRITE_TMO
5
/* BTs have 4–5 seconds to complete */
#define
BT_READ_TMO
5
/* before Scanner clears them */
#endif