Tiny protocol
0.7.0
Tiny communication protocol for microcontrollers
|
Macros | |
#define | TINY_SUCCESS (1) |
Tiny operation successful. Only tiny_send_start and tiny_read_start functions return this code. | |
#define | TINY_NO_ERROR (0) |
No error. For tiny_send and tiny_read functions, this means, no data sent or received. | |
#define | TINY_ERR_FAILED (-1) |
Timeout. | |
#define | TINY_ERR_TIMEOUT (-2) |
Timeout happened. The function must be called once again. | |
#define | TINY_ERR_DATA_TOO_LARGE (-3) |
Data too large to fit the user buffer, valid for tiny_read function. | |
#define | TINY_ERR_INVALID_DATA (-4) |
Some invalid data passed to Tiny API function. | |
#define | TINY_ERR_BUSY (-5) |
API function detected that operation cannot be performed right now. | |
#define | TINY_ERR_OUT_OF_SYNC (-6) |
Out of sync - received some data, which are not part of the frame (tiny_read) | |
#define | TINY_ERR_AGAIN (-7) |
No data for now, need to retry reading once again. | |