Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Serial Interface Module

This module is responsible for encoding and decoding the serial bytes to/from Host into corresponding RF4Control APIs .

Macros

#define RF4CONTROL_PID   (2)
 
#define RF4CONTROL_PID_LEN   (1)
 

Functions

void serial_data_handler (void)
 Function to handle the state machine serial data exchange. More...
 
void serial_interface_init (void)
 This function does the initialization of the SIO or UART. More...
 

void serial_data_handler ( void  )

Function to handle the state machine serial data exchange.

References buf_count, data, data_length, head, process_incoming_sio_data(), rx_index, sio2host_rx(), sio2host_tx(), SIO_BUF_COUNT, SIO_RX_BUF_SIZE, and sio_tx_buf.

Referenced by main().

void serial_interface_init ( void  )

This function does the initialization of the SIO or UART.

References sio2host_init(), sio_rx_state, and UART_RX_STATE_SOT.

Referenced by main().