Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
ca821x_error.h File Reference

Global error declarations for use across the Cascoda SDK. More...

#include "ca821x_toolchain.h"
Include dependency graph for ca821x_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ca_static_assert(x)   typedef char static_assertion[(x) ? 1 : -1]
 Static assert code. More...
 

Typedefs

typedef enum ca_error ca_error
 Cascoda error type. More...
 

Enumerations

enum  ca_error {
  CA_ERROR_SUCCESS = 0x00 , CA_ERROR_FAIL = 0x01 , CA_ERROR_UNKNOWN = 0x02 , CA_ERROR_INVALID = 0x03 ,
  CA_ERROR_NO_ACCESS = 0x04 , CA_ERROR_INVALID_STATE = 0x05 , CA_ERROR_BUSY = 0x06 , CA_ERROR_INVALID_ARGS = 0x07 ,
  CA_ERROR_NOT_HANDLED = 0x08 , CA_ERROR_NOT_FOUND = 0x09 , CA_ERROR_NO_BUFFER = 0x0A , CA_ERROR_TIMEOUT = 0x0B ,
  CA_ERROR_ALREADY = 0x0C , CA_ERROR_NOT_IMPLEMENTED = 0x0D , CA_ERROR_SPI_WAIT_TIMEOUT = 0xA0 , CA_ERROR_SPI_NACK_TIMEOUT = 0xA1 ,
  CA_ERROR_SPI_SCAN_IN_PROGRESS = 0xA2 , CA_ERROR_SPI_SEND_EXCHANGE_FAIL = 0xA3
}
 Cascoda error type. More...
 

Functions

const char * ca_error_str (ca_error aError)
 Return a string representation of a ca_error. More...
 

Detailed Description

Global error declarations for use across the Cascoda SDK.