pub struct PartialInterruptControl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> { /* private fields */ }Expand description
Builder struct for partial initialization of InterruptControl .
Implementations§
Source§impl<const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<false, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<false, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
Sourcepub const fn with_rx(
&self,
value: bool,
) -> PartialInterruptControl<true, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
pub const fn with_rx( &self, value: bool, ) -> PartialInterruptControl<true, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
Generate an interrrupt when the RX FIFO is at least half-full (FIFO count >= trigger level)
Source§impl<const rx: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, false, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, false, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
Sourcepub const fn with_rx_status(
&self,
value: bool,
) -> PartialInterruptControl<rx, true, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
pub const fn with_rx_status( &self, value: bool, ) -> PartialInterruptControl<rx, true, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
Interrupts for status conditions (overrun, framing, parity and break)
Source§impl<const rx: bool, const rx_status: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, false, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, false, tx_below_trigger, tx_status, tx_empty, tx_cts>
Sourcepub const fn with_rx_timeout(
&self,
value: bool,
) -> PartialInterruptControl<rx, rx_status, true, tx_below_trigger, tx_status, tx_empty, tx_cts>
pub const fn with_rx_timeout( &self, value: bool, ) -> PartialInterruptControl<rx, rx_status, true, tx_below_trigger, tx_status, tx_empty, tx_cts>
Interrupt on timeout conditions.
Source§impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, rx_timeout, false, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, rx_timeout, false, tx_status, tx_empty, tx_cts>
Sourcepub const fn with_tx_below_trigger(
&self,
value: bool,
) -> PartialInterruptControl<rx, rx_status, rx_timeout, true, tx_status, tx_empty, tx_cts>
pub const fn with_tx_below_trigger( &self, value: bool, ) -> PartialInterruptControl<rx, rx_status, rx_timeout, true, tx_status, tx_empty, tx_cts>
Generates an interrupt when the TX FIFO is at least half-empty (FIFO count < trigger level)
Source§impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, false, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_empty: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, false, tx_empty, tx_cts>
Sourcepub const fn with_tx_status(
&self,
value: bool,
) -> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, true, tx_empty, tx_cts>
pub const fn with_tx_status( &self, value: bool, ) -> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, true, tx_empty, tx_cts>
Generates an interrupt on TX FIFO overflow.
Source§impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, false, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_cts: bool> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, false, tx_cts>
Sourcepub const fn with_tx_empty(
&self,
value: bool,
) -> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, true, tx_cts>
pub const fn with_tx_empty( &self, value: bool, ) -> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, true, tx_cts>
Generates an interrupt when the transmit FIFO is empty and TXBUSY is 0.
Source§impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, false>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, false>
pub const fn with_tx_cts( &self, value: bool, ) -> PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, true>
Auto Trait Implementations§
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> Forget for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> Freeze for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> Move for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> RefUnwindSafe for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> Send for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> Sync for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> Unpin for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> UnsafeUnpin for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
impl<const rx: bool, const rx_status: bool, const rx_timeout: bool, const tx_below_trigger: bool, const tx_status: bool, const tx_empty: bool, const tx_cts: bool> UnwindSafe for PartialInterruptControl<rx, rx_status, rx_timeout, tx_below_trigger, tx_status, tx_empty, tx_cts>
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