tinyproto
|
This is Tiny Light protocol implementation for microcontrollers. More...
Go to the source code of this file.
Classes | |
struct | STinyLightData |
This structure contains information about communication channel and its state. More... | |
Macros | |
#define | LIGHT_BUF_SIZE (sizeof(uintptr_t) * 18) |
This macro defines buffer size required for tiny light protocol. | |
Functions | |
int | tiny_light_init (STinyLightData *handle, write_block_cb_t write_func, read_block_cb_t read_func, void *pdata) |
The function initializes internal structures for Tiny channel and return handle to be used with all Tiny and IPC functions. More... | |
int | tiny_light_close (STinyLightData *handle) |
The function closes channel. More... | |
int | tiny_light_send (STinyLightData *handle, const uint8_t *pbuf, int len) |
sends frame with user payload to communication channel in blocking mode More... | |
int | tiny_light_read (STinyLightData *handle, uint8_t *pbuf, int len) |
reads frame from the channel in blocking mode. More... | |
hdlc_ll_handle_t | tiny_light_get_hdlc (STinyLightData *handle) |
returns lower level hdlc handle. More... | |
This is Tiny Light protocol implementation for microcontrollers.
Tiny Light protocol API