Tiny protocol  0.7.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
 
void * inbuf
 buffer to store input bytes being received. Must be at least maximum packet size over communication channel
 
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.


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