CryptoAuthLib
Atmel CryptoAuthentication Library
atca_status.h
Go to the documentation of this file.
1 
43 #ifndef _ATCA_STATUS_H
44 #define _ATCA_STATUS_H
45 
46 #include <stdint.h>
47 #include <stdbool.h>
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 /* all status codes for the ATCA lib are defined here */
54 
55 typedef enum {
56  ATCA_SUCCESS = 0x00,
62  ATCA_STATUS_CRC = 0xD4,
64  ATCA_STATUS_ECC = 0xD6,
65  ATCA_FUNC_FAIL = 0xE0,
66  ATCA_GEN_FAIL = 0xE1,
67  ATCA_BAD_PARAM = 0xE2,
68  ATCA_INVALID_ID = 0xE3,
70  ATCA_BAD_CRC = 0xE5,
71  ATCA_RX_FAIL = 0xE6,
75  ATCA_TX_TIMEOUT = 0xEA,
76  ATCA_RX_TIMEOUT = 0xEB,
77  ATCA_COMM_FAIL = 0xF0,
78  ATCA_TIMEOUT = 0xF1,
79  ATCA_BAD_OPCODE = 0xF2,
84  ATCA_TX_FAIL = 0xF7,
85  ATCA_NOT_LOCKED = 0xF8,
86  ATCA_NO_DEVICES = 0xF9,
87 } ATCA_STATUS;
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 #endif
For protocols that support device discovery (kit protocol), no devices were found.
Definition: atca_status.h:86
Re-synchronization succeeded, but only after generating a Wake-up.
Definition: atca_status.h:73
response status byte indicates CheckMac failure (status byte = 0x01)
Definition: atca_status.h:60
Count value is out of range or greater than buffer size.
Definition: atca_status.h:69
Function succeeded.
Definition: atca_status.h:56
response status byte is unknown
Definition: atca_status.h:63
for protocols needing parity
Definition: atca_status.h:74
Not an error while the Command layer is polling for a command response.
Definition: atca_status.h:72
for Atmel PHY protocol, timeout on receipt waiting for master
Definition: atca_status.h:76
ATCA_STATUS
Definition: atca_status.h:55
Definition: atca_status.h:58
required zone was not locked
Definition: atca_status.h:85
Function or some element of it hasn't been implemented yet.
Definition: atca_status.h:82
Failed to write.
Definition: atca_status.h:84
received proper wake token
Definition: atca_status.h:80
response status byte is ECC fault (status byte = 0x05)
Definition: atca_status.h:64
incorrect CRC received
Definition: atca_status.h:70
response status byte indicates CRC error (status byte = 0xFF)
Definition: atca_status.h:62
opcode is not supported by the device
Definition: atca_status.h:79
invalid device id, id not set
Definition: atca_status.h:68
Timed out while waiting for response. Number of bytes received is 0.
Definition: atca_status.h:78
response status byte indicates parsing error (status byte = 0x03)
Definition: atca_status.h:61
unspecified error
Definition: atca_status.h:66
bad argument (out of range, null pointer, etc.)
Definition: atca_status.h:67
chip was in a state where it could not execute the command, response status byte indicates command ex...
Definition: atca_status.h:81
response status byte indicates CheckMac failure (status byte = 0x01)
Definition: atca_status.h:59
Communication with device failed. Same as in hardware dependent modules.
Definition: atca_status.h:77
for Atmel PHY protocol, timeout on transmission waiting for master
Definition: atca_status.h:75
Timed out while waiting for response. Number of bytes received is > 0.
Definition: atca_status.h:71
Code failed run-time consistency check.
Definition: atca_status.h:83
Function could not execute due to incorrect condition / state.
Definition: atca_status.h:65
Definition: atca_status.h:57