26 #ifndef _TINY_LIGHT_H_ 27 #define _TINY_LIGHT_H_ 29 #include "proto/hdlc/tiny_hdlc.h" 53 #ifdef CONFIG_ENABLE_STATS 63 #ifndef DOXYGEN_SHOULD_SKIP_THIS 114 extern int tiny_light_send(
void *handle,
const uint8_t *pbuf,
int len);
hdlc_handle_t tiny_light_get_hdlc(void *handle)
returns lower level hdlc handle.
Definition: tiny_light.c:185
int tiny_light_close(void *handle)
Definition: tiny_light.c:105
int tiny_light_send(void *handle, const uint8_t *pbuf, int len)
sends frame with user payload to communication channel in blocking mode
Definition: tiny_light.c:136
Definition: tiny_types.h:103
int tiny_light_read(void *handle, uint8_t *pbuf, int len)
reads frame from the channel in blocking mode.
Definition: tiny_light.c:158
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:139
read_block_cb_t read_func
pointer to platform related read function
Definition: tiny_light.h:60
Definition: tiny_light.h:51
void * user_data
user-specific data
Definition: tiny_light.h:62
Definition: tiny_hdlc.h:47
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:128
int tiny_light_init(void *handle, write_block_cb_t write_func, read_block_cb_t read_func, void *pdata)
Definition: tiny_light.c:72