Programming Examples
Appendix B
B-7
ktx_err.h file
/************************************************************************
* KTX_ERR.H *
* *
* Description: *
* *
* This file contains all errors that are configured in *
* the 1784–KTX Scanner firmware. *
* *
* History: *
* *
* 07/08/93 MDE Original creation. *
* *
************************************************************************/
#ifndef KTX_ERR_H
#define KTX_ERR_H 1
/* init_status values */
#define IN_PROGRESS
1
#define INVALID_LINK_ADDRESS
2
#define BINARY_PROTOCOL_MISMATCH
3
#define INVALID_BAUD_RATE
4
#define UNAUTHORIZED_PROTOCOL
5
#define FAILED_PROGRAM_CRC
6
/* general errors */
#define SCANNER_NOT_PROGRAM
15
#define SCAN_LIST_TOO_LONG
16
#define SET_SCAN_LIST_IN_PROGRESS
17
#define AUTOCONFIGURING_IN_PROGRESS
18
#define SCAN_LIST_CAUSES_FDG_ORPHAN
19
#define SC_UNKNOWN_COMMAND
20
#define SC_BAD_REQUEST
21
#define SC_BAD_PARAM
22
#define SC_CANNOT_CHANGE_MODE_DURING_SET_SCAN_LIST 23
#define SC_CANNOT_CHANGE_MODE_DURING_AUTOCONFIG
24
#define SCANNER_ALREADY_AUTOCONFIGURING
25
#define BAD_COMMAND_DATA_LENGTH
26
#define BT_BAD_ADDRESS
27
#define BT_BAD_ADDRESS_NOT_IN_SCAN_LIST
28
#define BT_BAD_DATA_LENGTH
29
#define TOO_MANY_REQUESTS_FOR_MODULE
30
#define BT_QUEUE_FULL
31
#define ADDRESS_NOT_IN_SCAN_LIST
32
#define CANNOT_SET_FG_WHILE_AUTOCONFIGURING
33
#define CANNOT_SET_FG_WHILE_SETUP_SCAN_LIST
34
#define BAD_CRC
35
#define BT_REQUEST_TIMEOUT
36
#define UNSOLICITED_BT_REQUEST
37
#define USER_MODULE_REQUEST_TYPE_MISMATCH
38
#define USER_MODULE_LENGTH_MISMATCH
39
#define MODULE_REQUESTED_TOO_MUCH_DATA
40
#define BT_CHECKSUM_ERROR
41
#define ADAPTER_ADDRESS_ERROR
42
#define SCANNER_ADDRESS_ERROR
43
#define ILLEGAL_REPLY_CMD
44
#define BUFFER_OVERFLOW_ERROR
45
#define TIMEOUT_ERROR
46
#define BT_BLOWOFF
47
#define IO_MASK_DATA_MISMATCH
48
#define INVALID_ADAPTER_ADDRESS
49
#define MODULE_IN_FAULT_GROUP_REQUESTED_BT
50
#define ADAPTER_SIZE_OVERLAP
51
#define BAD_BTW_REPLY
52
#define ERROR_MORE_THAN_32_UNIQUE_DEVICES
53
#define BAD_RAM
54
#define ADAPTER_CONFIG_SUCCESS
129
#define TOO_MANY_ADAPTERS_ON_LINE
130
/**** Error codes for example routines ****/
#define
INITIALIZATION_TIMED_OUT
150
#define
CONFIRMATION_TIMED_OUT
151
#define
TRANS_NUM_MISMATCH
152
#define
ADAPTER_NONEXISTENT
153
#define
UNKNOWN_IO_TABLE
154
#endif