40 #ifndef CA821X_API_INCLUDE_CA821X_ERROR_H_
41 #define CA821X_API_INCLUDE_CA821X_ERROR_H_
82 #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L || __cpp_static_assert >= 200410
83 #define ca_static_assert(x) static_assert(x, #x)
84 #elif !defined(__cplusplus) && defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406) && \
85 (__STDC_VERSION__ > 199901L)
86 #define ca_static_assert(x) _Static_assert(x, #x)
88 #define ca_static_assert(x) typedef char static_assertion[(x) ? 1 : -1]
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
const char * ca_error_str(ca_error aError)
Return a string representation of a ca_error.
Definition: ca821x_error.c:31
@ CA_ERROR_TIMEOUT
Operation timed out.
Definition: ca821x_error.h:64
@ CA_ERROR_SPI_SEND_EXCHANGE_FAIL
SPI Message failed to send.
Definition: ca821x_error.h:71
@ CA_ERROR_BUSY
Busy, try again.
Definition: ca821x_error.h:59
@ CA_ERROR_NO_BUFFER
No buffers currently available.
Definition: ca821x_error.h:63
@ CA_ERROR_ALREADY
Operation already executed.
Definition: ca821x_error.h:65
@ CA_ERROR_NOT_HANDLED
Request has not been handled.
Definition: ca821x_error.h:61
@ CA_ERROR_INVALID_ARGS
Invalid arguments.
Definition: ca821x_error.h:60
@ CA_ERROR_SPI_NACK_TIMEOUT
SPI NACKing for too long.
Definition: ca821x_error.h:69
@ CA_ERROR_NOT_FOUND
Requested resource not found.
Definition: ca821x_error.h:62
@ CA_ERROR_INVALID
Invalid request.
Definition: ca821x_error.h:56
@ CA_ERROR_FAIL
Failed for miscellaneous reason.
Definition: ca821x_error.h:54
@ CA_ERROR_SUCCESS
Success.
Definition: ca821x_error.h:53
@ CA_ERROR_INVALID_STATE
Request cannot be processed in current state.
Definition: ca821x_error.h:58
@ CA_ERROR_NO_ACCESS
Cannot access requested resource.
Definition: ca821x_error.h:57
@ CA_ERROR_SPI_WAIT_TIMEOUT
SPI Wait timed out.
Definition: ca821x_error.h:68
@ CA_ERROR_UNKNOWN
Request for unknown data.
Definition: ca821x_error.h:55
@ CA_ERROR_SPI_SCAN_IN_PROGRESS
CA-821x is scanning and cannot be used.
Definition: ca821x_error.h:70
@ CA_ERROR_NOT_IMPLEMENTED
Functionality not implemented.
Definition: ca821x_error.h:66