Microchip® Advanced Software Framework

serial_interface.h File Reference

This header defines prototypes and definitions for serial interface functionalities.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include <string.h>

Macros

#define EOT   (4)
 The end of transmission delimiter. More...
 
#define MAC_PID   (1)
 
#define MAC_PID_LEN   (1)
 
#define SIO_BUF_COUNT   (5)
 
#define SIO_RX_BUF_SIZE   (156)
 
#define SIO_TX_BUF_SIZE   SIO_RX_BUF_SIZE
 
#define SOT   (1)
 The start of transmission delimiter. More...
 
#define UART_RX_STATE_DATA   (3)
 A UART state that expects the next data character to be received. More...
 
#define UART_RX_STATE_EOT   (4)
 A UART state that expects a EOT to be received as the next character. More...
 
#define UART_RX_STATE_LENGTH   (2)
 A UART state that expects the length to be received as the next character. More...
 
#define UART_RX_STATE_SOT   (1)
 A UART state that expects a SOT to be received as the next character. More...
 

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 Serial handler state Machine. More...