Microchip® Advanced Software Framework

sha204_lib_return_codes.h File Reference
#include <compiler.h>

Macros

#define SHA204_BAD_CRC   ((uint8_t) 0xE5)
 incorrect CRC received More...
 
#define SHA204_BAD_PARAM   ((uint8_t) 0xE2)
 bad argument (out of range, null pointer, etc.) More...
 
#define SHA204_CMD_FAIL   ((uint8_t) 0xD3)
 response status byte indicates command execution error More...
 
#define SHA204_COMM_FAIL   ((uint8_t) 0xF0)
 Communication with device failed. Same as in hardware dependent modules. More...
 
#define SHA204_FUNC_FAIL   ((uint8_t) 0xE0)
 Function could not execute due to incorrect condition / state. More...
 
#define SHA204_INVALID_SIZE   ((uint8_t) 0xE4)
 Count value is out of range or greater than buffer size. More...
 
#define SHA204_PARSE_ERROR   ((uint8_t) 0xD2)
 response status byte indicates parsing error More...
 
#define SHA204_RESYNC_WITH_WAKEUP   ((uint8_t) 0xE8)
 re-synchronization succeeded, but only after generating a Wake-up More...
 
#define SHA204_RX_FAIL   ((uint8_t) 0xE6)
 Timed out while waiting for response. Number of bytes received is > 0. More...
 
#define SHA204_RX_NO_RESPONSE   ((uint8_t) 0xE7)
 Not an error while the Command layer is polling for a command response. More...
 
#define SHA204_STATUS_CRC   ((uint8_t) 0xD4)
 response status byte indicates CRC error More...
 
#define SHA204_SUCCESS   ((uint8_t) 0x00)
 < compiler dependent definitions More...
 
#define SHA204_TIMEOUT   ((uint8_t) 0xF1)
 Timed out while waiting for response. Number of bytes received is 0. More...
 

#define SHA204_BAD_CRC   ((uint8_t) 0xE5)

incorrect CRC received

Referenced by sha204c_check_crc(), and sha204c_wakeup().

#define SHA204_CMD_FAIL   ((uint8_t) 0xD3)

response status byte indicates command execution error

Referenced by sha204c_send_and_receive().

#define SHA204_COMM_FAIL   ((uint8_t) 0xF0)

Communication with device failed. Same as in hardware dependent modules.

Referenced by sha204c_wakeup(), sha204p_receive_response(), sha204p_send(), and sha204p_wakeup().

#define SHA204_FUNC_FAIL   ((uint8_t) 0xE0)

Function could not execute due to incorrect condition / state.

Referenced by sha204c_send_and_receive().

#define SHA204_INVALID_SIZE   ((uint8_t) 0xE4)

Count value is out of range or greater than buffer size.

Referenced by sha204c_send_and_receive(), sha204c_wakeup(), and sha204p_receive_response().

#define SHA204_PARSE_ERROR   ((uint8_t) 0xD2)

response status byte indicates parsing error

Referenced by sha204c_send_and_receive().

#define SHA204_RESYNC_WITH_WAKEUP   ((uint8_t) 0xE8)

re-synchronization succeeded, but only after generating a Wake-up

Referenced by sha204c_resync(), and sha204c_send_and_receive().

#define SHA204_RX_FAIL   ((uint8_t) 0xE6)

Timed out while waiting for response. Number of bytes received is > 0.

#define SHA204_RX_NO_RESPONSE   ((uint8_t) 0xE7)

Not an error while the Command layer is polling for a command response.

Referenced by sha204c_send_and_receive(), and sha204p_receive_response().

#define SHA204_STATUS_CRC   ((uint8_t) 0xD4)

response status byte indicates CRC error

Referenced by sha204c_send_and_receive().

#define SHA204_SUCCESS   ((uint8_t) 0x00)
#define SHA204_TIMEOUT   ((uint8_t) 0xF1)

Timed out while waiting for response. Number of bytes received is 0.

Referenced by sha204p_receive_response().