pub struct Disabled<'a, const N: u8> { /* private fields */ }Expand description
A temporarily-disabled LPUART peripheral.
The disabled peripheral lets you changed settings that require a disabled peripheral.
Implementations§
Source§impl<'a, const N: u8> Disabled<'a, N>
impl<'a, const N: u8> Disabled<'a, N>
Sourcepub fn set_baud(&mut self, baud: &Baud)
pub fn set_baud(&mut self, baud: &Baud)
Set baud-specific timing values for this UART peripheral.
The timing values are used to set a baud rate. To compute
a baud rate, see Baud::compute. Or,
you may compute your own timing values.
Sourcepub fn set_parity(&mut self, parity: Option<Parity>)
pub fn set_parity(&mut self, parity: Option<Parity>)
Specify parity bit settings. If there is no parity, use None.
Sourcepub fn set_inversion(&mut self, direction: Direction, inverted: bool)
pub fn set_inversion(&mut self, direction: Direction, inverted: bool)
Reverse the polarity of data, affecting all data bits, start and stop bits, and polarity bits.
The default inversion state is false.
Sourcepub fn disable_fifo(&mut self, direction: Direction)
pub fn disable_fifo(&mut self, direction: Direction)
Disable the FIFO for the given direction.
Sourcepub fn enable_fifo(&mut self, watermark: Watermark) -> u32
pub fn enable_fifo(&mut self, watermark: Watermark) -> u32
Enable the FIFO, and set the FIFO watermark.
watermark describes the serial direction, and the point at which the hardware signals a full
or empty FIFO. Use Watermark::tx
to enable the transfer FIFO, and Watermark::rx to enable the
receive FIFO.
The actual watermark value is limited by the hardware. enable_fifo returns the
actual watermark value.
Sourcepub fn set_interrupts(&mut self, interrupts: Interrupts)
pub fn set_interrupts(&mut self, interrupts: Interrupts)
Set the interrupt flags for this LPUART peripheral.
Use set_interrupts to enable or disable interrupt generation for
this peripheral.