Tiny protocol
0.7.0
Tiny communication protocol for microcontrollers
|
Tiny protocol API. More...
Go to the source code of this file.
Classes | |
struct | STinyRxStatus |
struct | STinyTxStatus |
struct | STinyData |
Functions | |
int | tiny_init (STinyData *handle, write_block_cb_t write_func, read_block_cb_t read_func, void *pdata) |
int | tiny_close (STinyData *handle) |
int | tiny_send (STinyData *handle, uint16_t *uid, uint8_t *pbuf, int len, uint8_t flags) |
sends frame with user payload to communication channel More... | |
int | tiny_read (STinyData *handle, uint16_t *uid, uint8_t *pbuf, int len, uint8_t flags) |
int | tiny_simple_send (STinyData *handle, uint8_t *pbuf, int len) |
sends frame with user payload to communication channel in blocking mode More... | |
int | tiny_simple_read (STinyData *handle, uint8_t *pbuf, int len) |
reads frame from the channel in blocking mode. More... | |
void | tiny_enable_uid (STinyData *handle, uint8_t on) |
The function enables uid support. Enables uid support. The function affects on tiny_on_rx_byte and on_frame_cb_t behavior. More... | |
int | tiny_set_fcs_bits (STinyData *handle, uint8_t bits) |
int | tiny_on_rx_byte (STinyData *handle, uint8_t *pbuf, int len, uint8_t byte) |
The function processes one rx byte. Used in event-based mode. This function processes single received byte. If new frame is completely received, read_cb handler is called and application can take actions on receive frame. Refer to tiny_set_callbacks. More... | |
int | tiny_send_start (STinyData *handle, uint8_t flags) |
initiates sending of a new frame More... | |
int | tiny_send_buffer (STinyData *handle, uint8_t *pbuf, int len, uint8_t flags) |
sends user provided data in the body of the frame More... | |
int | tiny_send_end (STinyData *handle, uint8_t flags) |
completes sending of a new frame More... | |
void | tiny_send_terminate (STinyData *handle) |
terminates send operation More... | |
int | tiny_read_start (STinyData *handle, uint8_t flags) |
initiates receiving of a new frame More... | |
int | tiny_read_buffer (STinyData *handle, uint8_t *pbuf, int len, uint8_t flags) |
reads frame payload to provided buffer More... | |
void | tiny_read_terminate (STinyData *handle) |
terminates read operation More... | |
int | tiny_lock (STinyData *handle, uint8_t flags) |
locks Tiny state machine for send operations More... | |
void | tiny_unlock (STinyData *handle) |
unlock Tiny state machine for send operations More... | |
int | tiny_set_callbacks (STinyData *handle, on_frame_cb_t read_cb, on_frame_cb_t send_cb) |
set callbacks for processing frames The function sets callback procs for specified Tiny channel. callbacks will receive all data being sent or received. More... | |
int | tiny_get_callbacks (STinyData *handle, on_frame_cb_t *read_cb, on_frame_cb_t *send_cb) |
returns callbacks assigned for frame processing The function returns set callbacks. More... | |
int | tiny_get_stat (STinyData *handle, STinyStats *stat) |
int | tiny_clear_stat (STinyData *handle) |
Tiny protocol API.
This is Tiny protocol implementation for microcontrollers