Skip to main content

PartialInterruptControl

Struct PartialInterruptControl 

Source
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>

Source

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>

Source

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>

Source

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>

Source

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>

Source

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>

Source

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>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.