Tx

Struct Tx 

Source
pub struct Tx<OS: OsInterface, U> { /* private fields */ }
Expand description

UART Transmitter

Implementations§

Source§

impl<OS, U> Tx<OS, U>

Source

pub fn into_poll(self, timeout: MicrosDurationU32) -> UartPollTx<U, OS>

Source

pub fn into_interrupt( self, buf_size: usize, timeout: MicrosDurationU32, ) -> (UartInterruptTx<U, OS>, UartInterruptTxHandler<U, OS>)

Source§

impl<OS, U> Tx<OS, U>

Source

pub fn into_dma_ringbuf<CH>( self, dma_ch: CH, buf_size: usize, timeout: MicrosDurationU32, ) -> (UartDmaBufTx<U, CH, OS>, DmaRingbufTxLoader<u8, CH, OS>)
where CH: DmaBindTx<U>, OS: OsInterface,

Auto Trait Implementations§

§

impl<OS, U> Freeze for Tx<OS, U>
where U: Freeze,

§

impl<OS, U> RefUnwindSafe for Tx<OS, U>

§

impl<OS, U> Send for Tx<OS, U>
where U: Send,

§

impl<OS, U> Sync for Tx<OS, U>
where U: Sync,

§

impl<OS, U> Unpin for Tx<OS, U>
where U: Unpin, OS: Unpin,

§

impl<OS, U> UnwindSafe for Tx<OS, U>
where U: UnwindSafe, OS: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.