cMicroOrp  1.0.0
C code for microcontrollers - provides ORP remote interface
hdlc.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* txChar_cb) (uint8_t)
 
typedef void(* hdlc_decoder_callback_type) (const uint8_t *framebuffer, uint16_t framelength)
 
typedef void(* hdlc_delay100ms_cb) (void)
 

Functions

void hdlc_hdlc (txChar_cb put_char, hdlc_decoder_callback_type hdlc_decoded_callback, uint8_t *rx_frame_buffer, uint16_t max_rxFrame_length)
 
void hdlc_frameDecode_char (uint8_t data)
 
void hdlc_frameEncode (const uint8_t *payload_buffer, uint8_t payload_length)
 
void hdlc_wakeup (hdlc_delay100ms_cb delay100ms)
 

Typedef Documentation

◆ hdlc_decoder_callback_type

typedef void(* hdlc_decoder_callback_type) (const uint8_t *framebuffer, uint16_t framelength)

◆ hdlc_delay100ms_cb

typedef void(* hdlc_delay100ms_cb) (void)

◆ txChar_cb

typedef void(* txChar_cb) (uint8_t)

Function Documentation

◆ hdlc_frameDecode_char()

void hdlc_frameDecode_char ( uint8_t  data)

◆ hdlc_frameEncode()

void hdlc_frameEncode ( const uint8_t *  payload_buffer,
uint8_t  payload_length 
)

◆ hdlc_hdlc()

void hdlc_hdlc ( txChar_cb  put_char,
hdlc_decoder_callback_type  hdlc_decoded_callback,
uint8_t *  rx_frame_buffer,
uint16_t  max_rxFrame_length 
)

◆ hdlc_wakeup()

void hdlc_wakeup ( hdlc_delay100ms_cb  delay100ms)