Module uart

Source

Structs§

UartBitbangConfig
UART frame configuration to use for UART bitbanging. Assumes LSB first.
UartBitbangDecoder
A decoder for decoding UART samples. RX is the bit in the input sample bitfield to use for RX transmissions.
UartBitbangEncoder
An encoder for creating UART bitbanging samples for transmission. TX is the bit in the output sample bitfield to use for TX transmissions.

Enums§

UartStopBits
UartTransfer
UartTransferDecodeError

Functions§

compute_parity
Count the number of 1s in the data (& an optional parity bit). Return true if there is an even number of 1s, and false otherwise.