CryptoAuthLib
Microchip CryptoAuthentication Library
atca_status.h
Go to the documentation of this file.
1 
29 #ifndef _ATCA_STATUS_H
30 #define _ATCA_STATUS_H
31 
32 #include <stdint.h>
33 #include "atca_bool.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /* all status codes for the ATCA lib are defined here */
40 
41 typedef enum
42 {
43  ATCA_SUCCESS = 0x00,
49  ATCA_STATUS_CRC = 0xD4,
51  ATCA_STATUS_ECC = 0xD6,
53  ATCA_FUNC_FAIL = 0xE0,
54  ATCA_GEN_FAIL = 0xE1,
55  ATCA_BAD_PARAM = 0xE2,
56  ATCA_INVALID_ID = 0xE3,
59  ATCA_RX_FAIL = 0xE6,
63  ATCA_TX_TIMEOUT = 0xEA,
64  ATCA_RX_TIMEOUT = 0xEB,
67  ATCA_COMM_FAIL = 0xF0,
68  ATCA_TIMEOUT = 0xF1,
69  ATCA_BAD_OPCODE = 0xF2,
74  ATCA_TX_FAIL = 0xF7,
75  ATCA_NOT_LOCKED = 0xF8,
76  ATCA_NO_DEVICES = 0xF9,
79 } ATCA_STATUS;
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 #endif
response status byte indicates DEVICE did not receive data properly (status byte = 0xFF) ...
Definition: atca_status.h:49
random number generator health test error
Definition: atca_status.h:77
for protocols needing parity
Definition: atca_status.h:62
invalid device id, id not set
Definition: atca_status.h:56
CRC error in data received from device.
Definition: atca_status.h:58
Timed out while waiting for response. Number of bytes received is 0.
Definition: atca_status.h:68
Not an error while the Command layer is polling for a command response.
Definition: atca_status.h:60
for Microchip PHY protocol, timeout on receipt waiting for master
Definition: atca_status.h:64
Re-synchronization succeeded, but only after generating a Wake-up.
Definition: atca_status.h:61
ATCA_STATUS
Definition: atca_status.h:41
unspecified error
Definition: atca_status.h:54
response status byte indicates parsing error (status byte = 0x03)
Definition: atca_status.h:48
response status byte is unknown
Definition: atca_status.h:50
Supplied buffer is too small for data required.
Definition: atca_status.h:66
Code failed run-time consistency check.
Definition: atca_status.h:73
required zone was not locked
Definition: atca_status.h:75
For protocols that support device discovery (kit protocol), no devices were found.
Definition: atca_status.h:76
Function could not execute due to incorrect condition / state.
Definition: atca_status.h:53
Definition: atca_status.h:44
Device did not respond too many times during a transmission. Could indicate no device present...
Definition: atca_status.h:65
response status byte indicates CheckMac failure (status byte = 0x01)
Definition: atca_status.h:47
bad argument (out of range, null pointer, etc.)
Definition: atca_status.h:55
chip was in a state where it could not execute the command, response status byte indicates command ex...
Definition: atca_status.h:71
opcode is not supported by the device
Definition: atca_status.h:69
Function succeeded.
Definition: atca_status.h:43
Count value is out of range or greater than buffer size.
Definition: atca_status.h:57
Couldn&#39;t allocate required memory.
Definition: atca_status.h:78
response status byte indicates CheckMac failure (status byte = 0x01)
Definition: atca_status.h:46
response status byte is ECC fault (status byte = 0x05)
Definition: atca_status.h:51
Timed out while waiting for response. Number of bytes received is > 0.
Definition: atca_status.h:59
bool define for systems that don&#39;t have it
Definition: atca_status.h:45
Communication with device failed. Same as in hardware dependent modules.
Definition: atca_status.h:67
received proper wake token
Definition: atca_status.h:70
Function or some element of it hasn&#39;t been implemented yet.
Definition: atca_status.h:72
response status byte is Self Test Error, chip in failure mode (status byte = 0x07) ...
Definition: atca_status.h:52
Failed to write.
Definition: atca_status.h:74
for Microchip PHY protocol, timeout on transmission waiting for master
Definition: atca_status.h:63