pub enum FifoWatermark {
Bytes4,
Bytes8,
Bytes16,
Bytes24,
Bytes28,
}Expand description
Rx/Tx FIFO Watermark
Determine the FIFO level that trigger DMA/Interrupt Default is Bytes16, see DS Table 423 and UARTIFLS Register Example of use: uart0.set_fifos(true); // Default is false uart0.set_rx_watermark(hal::uart::FifoWatermark::Bytes8); uart0.enable_rx_interrupt();
Variants§
Bytes4
Trigger when 4 bytes are (Rx: filled / Tx: available)
Bytes8
Trigger when 8 bytes are (Rx: filled / Tx: available)
Bytes16
Trigger when 16 bytes are (Rx: filled / Tx: available)
Bytes24
Trigger when 24 bytes are (Rx: filled / Tx: available)
Bytes28
Trigger when 28 bytes are (Rx: filled / Tx: available)
Auto Trait Implementations§
impl Freeze for FifoWatermark
impl RefUnwindSafe for FifoWatermark
impl Send for FifoWatermark
impl Sync for FifoWatermark
impl Unpin for FifoWatermark
impl UnwindSafe for FifoWatermark
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more