Tiny protocol  0.9.0
Tiny communication protocol for microcontrollers
Public Attributes | List of all members
STinyHdInit_ Struct Reference

#include <tiny_hd.h>

Public Attributes

write_block_cb_t write_func
 callback function to write bytes to the physical channel
 
read_block_cb_t read_func
 callback function to read bytes from the physical channel
 
void * pdata
 user data for block read/write functions
 
on_frame_cb_t on_frame_cb
 callback function to process incoming frames
 
on_frame_cb_t on_sent_cb
 Callback to get notification of sent frames.
 
void * inbuf
 
uint16_t inbuf_size
 maximum input buffer size
 
uint16_t timeout
 timeout. Can be set to 0 during initialization. In this case timeout will be set to default
 
uint8_t multithread_mode
 multithread mode. At present should be 0
 
hdlc_crc_t crc_type
 

Detailed Description

This structure is used for initialization of Tiny Half Duplex protocol.

Member Data Documentation

◆ crc_type

hdlc_crc_t STinyHdInit_::crc_type

crc field type to use on hdlc level. If HDLC_CRC_DEFAULT is passed, crc type will be selected automatically (depending on library configuration), but HDLC_CRC_16 has higher priority.

◆ inbuf

void* STinyHdInit_::inbuf

buffer to store input bytes being received. Must be at least maximum packet size over communication channel. In some cases inbuf can be reused for sending data.


The documentation for this struct was generated from the following file: