Synergy Software Package User's Manual

#include <r_uart_api.h>

Data Fields

uint8_t channel
 Select a channel corresponding to the channel number of the hardware.
 
uint32_t baud_rate
 Baud rate, i.e. 9600, 19200, 115200.
 
uart_data_bits_t data_bits
 Data bit length (8 or 7 or 9)
 
uart_parity_t parity
 Parity type (none or odd or even)
 
uart_stop_bits_t stop_bits
 Stop bit length (1 or 2)
 
bool ctsrts_en
 CTS/RTS hardware flow control enable.
 
uint8_t rxi_ipl
 Receive interrupt priority.
 
uint8_t txi_ipl
 Transmit interrupt priority.
 
uint8_t tei_ipl
 Transmit end interrupt priority.
 
uint8_t eri_ipl
 Error interrupt priority.
 
transfer_instance_t const * p_transfer_rx
 
transfer_instance_t const * p_transfer_tx
 
void(* p_callback )(uart_callback_args_t *p_args)
 Pointer to callback function.
 
void const * p_context
 User defined context passed into callback function.
 
void const * p_extend
 UART hardware dependent configuration.
 

Detailed Description

UART Configuration

Field Documentation

◆ p_transfer_rx

transfer_instance_t const* uart_cfg_t::p_transfer_rx

Optional transfer instance used to receive multiple bytes without interrupts. Set to NULL if unused. If NULL, the number of bytes allowed in the read API is limited to one byte at a time.

◆ p_transfer_tx

transfer_instance_t const* uart_cfg_t::p_transfer_tx

Optional transfer instance used to send multiple bytes without interrupts. Set to NULL if unused. If NULL, the number of bytes allowed in the write APIs is limited to one byte at a time.


The documentation for this struct was generated from the following file: