KUARTConf Struct Reference

Uart configuration structure. More...

#include <uart.h>

Data Fields

const char * dev_path
 The path of the uart bus. More...
 
uint32_t baud_rate
 The buad rate of the uart bus. More...
 
KWordLen word_len
 The number of data bits in each transmit/receive of the uart bus. More...
 
KStopBits stop_bits
 The number of stop bits at the end of each transmit/receive of the uart bus. More...
 
KParity parity
 The presence and state of the parity bit in each transmit/receive of the uart bus. More...
 
uint8_t rx_queue_len
 The size of the queue for incoming messages. More...
 
uint8_t tx_queue_len
 The size of the queue for outgoing messages. More...
 

Field Documentation

uint32_t KUARTConf::baud_rate

The buad rate of the uart bus.

Warning
For the MSP430F5 microcontroller, the speed of the SPI bus can only be defined as a factor of the peripheral clock to which it's connected (SMCLK for MSP430F5 SPI buses). For example, SMCLK_speed / 2. To make things easier, this speed field will take a normal baud rate number and then it will automatically be converted to the nearest available system speed without exceeding the original value.
const char* KUARTConf::dev_path

The path of the uart bus.

KParity KUARTConf::parity

The presence and state of the parity bit in each transmit/receive of the uart bus.

Can be none, odd, or even, as specified by the KParity enumerator

uint8_t KUARTConf::rx_queue_len

The size of the queue for incoming messages.

KStopBits KUARTConf::stop_bits

The number of stop bits at the end of each transmit/receive of the uart bus.

Can be 1 or 2 bits, as specified by the KStopBits enumerator

uint8_t KUARTConf::tx_queue_len

The size of the queue for outgoing messages.

KWordLen KUARTConf::word_len

The number of data bits in each transmit/receive of the uart bus.

Can be 7-, 8-, or 9-bits, as specified by the KWordLen enumerator


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