ISSDK  1.7
IoT Sensing Software Development Kit
Enumerations | Functions
data_format_hdlc.h File Reference

The data_format_hdlc.h file contains the Host interface definitions and configuration. More...

#include <stdint.h>
#include "host_io_uart.h"
Include dependency graph for data_format_hdlc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { HOST_RX_STATE_WAITFORPACKETMARKER, HOST_RX_STATE_GETTINGPACKETDATA }
 States for receiving a packet. More...
 

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.h file contains the Host interface definitions and configuration.

Definition in file data_format_hdlc.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

States for receiving a packet.

Enumerator
HOST_RX_STATE_WAITFORPACKETMARKER 
HOST_RX_STATE_GETTINGPACKETDATA 

Definition at line 57 of file data_format_hdlc.h.

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: