ASCII Serial Com
Serial communication library between computers, microcontrollers, FPGAs, etc. Uses only ASCII. Not the most efficient protocol, but meant to be easy to read
|
#include "externals/CException.h"
Go to the source code of this file.
Macros | |
#define | CEXCEPTION_NO_CATCH_HANDLER(id) |
#define | CEXCEPTION_NONE (0x5A5A) |
Enumerations | |
enum | asc_exception { ASC_ERROR_UNKOWN = 0 , ASC_ERROR_NO_ERROR = 1 , ASC_ERROR_DATA_TOO_LONG = 0x10 , ASC_ERROR_CHECKSUM_PROBLEM = 0x11 , ASC_ERROR_INVALID_FRAME = 0x12 , ASC_ERROR_INVALID_FRAME_PERIOD = 0x13 , ASC_ERROR_NOT_HEX_CHAR = 0x14 , ASC_ERROR_COMMAND_NOT_IMPLEMENTED = 0x15 , ASC_ERROR_UNEXPECTED_COMMAND = 0x16 , ASC_ERROR_DATA_TOO_SHORT = 0x17 , ASC_ERROR_REG_BLOCK_NULL = 0x20 , ASC_ERROR_REGNUM_OOB = 0x21 , ASC_ERROR_REGVAL_LEN = 0x22 , ASC_ERROR_CB_OOB = 0x30 , ASC_ERROR_CB_POP_EMPTY = 0x31 , ASC_ERROR_CB_BAD_CAPACITY = 0x32 , ASC_ERROR_FILE_READ = 0x40 , ASC_ERROR_FILE_WRITE = 0x41 } |
Exception type to be used with CException. More... | |
#define CEXCEPTION_NO_CATCH_HANDLER | ( | id | ) |
Definition at line 10 of file asc_exception.h.
#define CEXCEPTION_NONE (0x5A5A) |
Definition at line 16 of file asc_exception.h.
enum asc_exception |
Exception type to be used with CException.
These exception types can be used with Throw() and Catch()
Definition at line 26 of file asc_exception.h.