26 #ifndef _TINY_LIGHT_H_ 27 #define _TINY_LIGHT_H_ 29 #include "proto/hdlc/tiny_hdlc.h" 53 #ifdef CONFIG_ENABLE_STATS 65 #ifndef DOXYGEN_SHOULD_SKIP_THIS 116 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:164
hdlc_crc_t
Definition: tiny_hdlc.h:33
int tiny_light_close(void *handle)
Definition: tiny_light.c:102
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:132
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:153
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
hdlc_crc_t crc_type
CRC type to use.
Definition: tiny_light.h:64
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