Microchip® Advanced Software Framework

buart_if.h File Reference

PLC UART Buffered Interface.

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

#include "compiler.h"
#include "conf_buart_if.h"
#include "conf_board.h"

Macros

#define FREQ_TIMER_POLL_UART   100
 
#define SERIAL_UART_0   0
 
#define SERIAL_UART_1   1
 
#define TIMER_UART_PRIO   10
 
#define UART0_PRIO   10
 
#define UART1_PRIO   10
 

Functions

int8_t buart_if_close (uint8_t chn)
 This function closes and disables communication in the specified UART. More...
 
int8_t buart_if_open (uint8_t chn, uint32_t bauds)
 This function opens an UART. More...
 
uint16_t buart_if_read (uint8_t chn, void *buffer, uint16_t len)
 This function receives a message. More...
 
int buart_if_rx_char (uint8_t chn)
 Get byte from UART. More...
 
uint16_t buart_if_tx_char (uint8_t chn, char data)
 Sent byte to UART. More...
 
uint16_t buart_if_write (uint8_t chn, const void *buffer, uint16_t len)
 This function transmits a message. More...