26 #ifndef _TINY_PROTO_TYPES_H_ 27 #define _TINY_PROTO_TYPES_H_ 34 #include "tiny_defines.h" 37 #ifdef CONFIG_ENABLE_FCS32 38 typedef uint32_t fcs_t;
40 typedef uint16_t fcs_t;
48 #define TINY_SUCCESS (1) 50 #define TINY_NO_ERROR (0) 52 #define TINY_ERR_FAILED (-1) 54 #define TINY_ERR_TIMEOUT (-2) 56 #define TINY_ERR_DATA_TOO_LARGE (-3) 58 #define TINY_ERR_INVALID_DATA (-4) 60 #define TINY_ERR_BUSY (-5) 62 #define TINY_ERR_OUT_OF_SYNC (-6) 64 #define TINY_ERR_AGAIN (-7) 74 #define TINY_FLAG_NO_WAIT (0) 76 #define TINY_FLAG_READ_ALL (1) 78 #define TINY_FLAG_LOCK_SEND (2) 80 #define TINY_FLAG_WAIT_FOREVER (0x80) 138 typedef void (*
on_frame_cb_t)(
void *handle, uint16_t uid, uint8_t *pdata,
int size);
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_proto_types.h:114
uint32_t framesBroken
Number of broken frames received.
Definition: tiny_proto_types.h:102
uint32_t bytesReceived
Number of payload bytes totally received through the channel.
Definition: tiny_proto_types.h:96
uint32_t framesSent
Number of frames, successfully sent through the channel.
Definition: tiny_proto_types.h:98
Definition: tiny_proto_types.h:89
uint32_t framesReceived
Number of frames, successfully received through the communication channel.
Definition: tiny_proto_types.h:100
uint32_t oosyncBytes
Number of bytes received out of frame bytes.
Definition: tiny_proto_types.h:92
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_proto_types.h:125
uint32_t bytesSent
Number of payload bytes totally sent through the channel.
Definition: tiny_proto_types.h:94
void(* on_frame_cb_t)(void *handle, uint16_t uid, uint8_t *pdata, int size)
Definition: tiny_proto_types.h:138