ISSDK  1.7
IoT Sensing Software Development Kit
Functions
data_format_hdlc.c File Reference

The data_format_hdlc.c file contains definitions for encoding and decoding HDLC messages to and from Host. More...

#include "data_format_hdlc.h"
Include dependency graph for data_format_hdlc.c:

Go to the source code of this file.

Functions

bool HDLC_Process_Rx_Byte (uint8_t c, host_rx_packet_t *pHostRxPkt)
 
size_t HDLC_Process_Tx_Msg (const uint8_t *pBuffer, uint8_t *pMsg, size_t size)
 

Detailed Description

The data_format_hdlc.c file contains definitions for encoding and decoding HDLC messages to and from Host.

Definition in file data_format_hdlc.c.

Function Documentation

◆ HDLC_Process_Rx_Byte()

bool HDLC_Process_Rx_Byte ( uint8_t  c,
host_rx_packet_t pHostRxPkt 
)

Definition at line 50 of file data_format_hdlc.c.

References HOST_RX_STATE_GETTINGPACKETDATA, HOST_RX_STATE_WAITFORPACKETMARKER, host_rx_packet_t::mIndex, host_rx_packet_t::pRxbuf, and host_rx_packet_t::rxState.

Referenced by Host_IO_Receive().

Here is the caller graph for this function:

◆ HDLC_Process_Tx_Msg()

size_t HDLC_Process_Tx_Msg ( const uint8_t *  pBuffer,
uint8_t *  pMsg,
size_t  size 
)

Definition at line 129 of file data_format_hdlc.c.

Referenced by Host_IO_Send().

Here is the caller graph for this function: