| Tipro API Communicate with Tipro devices

ErrCodes.h
1 /*##PBP DEPLOY*/
2 // ErrCodes.h :
3 // Definition of error codes
5
6 // general errors
7 #define API_ERR_None 0x00
8 #define API_ERR_WrongParameter 0x01
9 #define API_ERR_InvalidHandleValue 0x02
10 #define API_ERR_DeviceNotOpened 0x03
11 #define API_ERR_GetFeature 0x04
12 #define API_ERR_SetFeature 0x05
13 #define API_ERR_Unknown 0x06
14
15 // Tipro specific
16 #define API_ERR_CmdNotSupportedAtFWLevel 0x07
17 #define API_ERR_FWLevelNotAvailable 0x08
18 #define API_ERR_FWLevelChangeFailed 0x09
19
20 // FW Level > 1
21 #define API_ERR_WTCDelayExpired 0x0A
22 #define API_ERR_WrongSignatureBytes 0x0B
23 #define API_ERR_FWLevel_1_NotAvailable 0x0C
24 #define API_ERR_FWLevel_2_NotAvailable 0x0D
25 #define API_ERR_FWLevel_3_NotAvailable 0x0E
26
27 // enumeration errors
28 #define API_ERR_EnumerateModulesFailed 0x10
29 #define API_ERR_ModulesNotEnumerated 0x11
30 #define API_ERR_NonexistantModule 0x12
31
32 // command errors
33 #define API_ERR_CommunicationError 0x20
34 #define API_ERR_ResponseError 0x21
35 #define API_ERR_UnexpectedResponse 0x22
36
37 // Task#98
38 // command/parameter not supported in connected hardware/firmware
39 #define API_ERR_UnsupportedParameter 0x23
40 #define API_ERR_UnsupportedCommand 0x24
41
42 // string descriptor errors
43 #define API_ERR_NoStringDescriptor 0x30
44 #define API_ERR_VID_PID_NotReported 0x31
45
46 // module specifc errors
47 #define API_ERR_SBXMode 0x40
48
49 // low level errors
50 #define API_ERR_GeneralLowLevelError 0xE0
51
52 // API specifc errors
53 #define API_ERR_NoDevicesDetected 0xF1
54 #define API_ERR_DeviceUnplugged 0xF2
55 #define API_ERR_DeviceNotConnected 0xF3