PLC USART 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 "usart.h"
#include "pdc.h"
#include "pmc.h"
#include "busart_if.h"
#include "conf_busart_if.h"
#include "conf_board.h"
Data Structures | |
struct | busart_comm_data_t |
Communications Queue Info. More... | |
Macros | |
#define | USART_BUFFER_SIZE 1024 |
Functions | |
int8_t | busart_if_close (uint8_t chn) |
This function closes and disables communication in the specified USART. More... | |
int8_t | busart_if_open (uint8_t chn, uint32_t bauds) |
This function opens an USART. More... | |
uint16_t | busart_if_read (uint8_t chn, void *buffer, uint16_t len) |
This function receives a message. More... | |
int | busart_if_rx_char (uint8_t chn) |
Get byte from USART. More... | |
uint16_t | busart_if_tx_char (uint8_t chn, char data) |
Sent byte to USART. More... | |
uint16_t | busart_if_write (uint8_t chn, const void *buffer, uint16_t len) |
This function transmits a message. More... | |
Variables | |
static uint8_t | busart_chn_open [2] |