tinyproto
Error codes for Tiny API functions
#define TINY_SUCCESS   (0)
 
#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.
 
#define TINY_ERR_OUT_OF_MEMORY   (-9)
 Out of memory during operation.
 
#define TINY_ERR_UNKNOWN_PEER   (-10)
 Unknown remote peer.
 
#define TINY_ERR_IO   (-11)
 IO error.
 

Detailed Description

Error codes for Tiny API functions

Macro Definition Documentation

◆ TINY_SUCCESS

#define TINY_SUCCESS   (0)

Tiny operation successful. Only tiny_send_start and tiny_read_start functions return this code