PLC UART Buffered Interface.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "string.h"
#include "stdarg.h"
#include "stdio.h"
#include "sysclk.h"
#include "tc.h"
#include "uart.h"
#include "pdc.h"
#include "pmc.h"
#include "buart_if.h"
#include "conf_buart_if.h"
#include "conf_board.h"
Data Structures | |
struct | buart_comm_data_t |
Communications Queue Info. More... | |
Macros | |
#define | UART_BUFFER_SIZE 1024 |
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... | |
Variables | |
static uint8_t | buart_chn_open [2] |