PLC USART Buffered Interface.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | FREQ_TIMER_POLL_USART 100 |
#define | SERIAL_USART_0 0 |
#define | SERIAL_USART_1 1 |
#define | TIMER_USART_PRIO 10 |
#define | USART0_PRIO 10 |
#define | USART1_PRIO 10 |
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... | |