[−][src]Module msp430fr2x5x_hal::serial
Serial UART
The peripherals E_USCI_0 and E_USCI_1 can be used as serial UARTs. After configuring the E_USCI peripherals, serial Rx and/or Tx pins can be obtained by converting the appropriate GPIO pins to the alternate function corresponding to UART.
The Tx and Rx pins are used to send and receive bytes via serial connection.
Structs
ClockSet | Typestate for a serial interface with a specified clock source |
NoClockSet | Typestate for a serial interface with an unspecified clock source |
Rx | Serial receiver pin |
SerialConfig | Builder object for configuring a serial UART |
Tx | Serial transmitter pin |
UsciA0ClockPin | UCLK pin for E_USCI_A0 |
UsciA0RxPin | Rx pin for E_USCI_A0 |
UsciA0TxPin | Tx pin for E_USCI_A0 |
UsciA1ClockPin | UCLK pin for E_USCI_A1 |
UsciA1RxPin | Rx pin for E_USCI_A1 |
UsciA1TxPin | Tx pin for E_USCI_A1 |
Enums
BitCount | Number of bits per transaction |
BitOrder | Bit order of transmit and receive |
Loopback | Loopback settings |
Parity | Parity bit for error checking |
RecvError | Serial receive errors |
StopBits | Number of stop bits at end of each byte |
Traits
SerialUsci | Marks a USCI type that can be used as a serial UART |