Tiny protocol  0.9.3
Tiny communication protocol for microcontrollers
Macros
Return error codes for Tiny API functions

Macros

#define TINY_SUCCESS   (0)
 Tiny operation successful. Only tiny_send_start and tiny_read_start functions return this code.
 
#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.
 
#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.
 
#define TINY_ERR_WRONG_CRC   (-8)
 Invalid crc field of incoming frame.
 

Detailed Description