[][src]Struct lpc82x_hal::usart::Transmitter

pub struct Transmitter<'usart, UsartX: 'usart>(_);

USART transmitter

Methods

impl<'usart, UsartX> Transmitter<'usart, UsartX> where
    UsartX: Peripheral
[src]

pub fn enable_txrdy_interrupt(&mut self)[src]

Enable the TXRDY interrupt

The interrupt will not actually work unless the interrupts for this peripheral have also been enabled via the NVIC. See enable_interrupts.

pub fn disable_txrdy_interrupt(&mut self)[src]

Disable the TXRDY interrupt

Trait Implementations

impl<'usart, UsartX> Dest for Transmitter<'usart, UsartX> where
    UsartX: Peripheral
[src]

type Error = Void

The error that can occur while waiting for the destination to be idle

impl<'usart, UsartX> Write for Transmitter<'usart, UsartX> where
    Self: BlockingWriteDefault<u8>,
    UsartX: Peripheral
[src]

fn write_char(&mut self, c: char) -> Result<(), Error>
1.1.0
[src]

Writes a [char] into this writer, returning whether the write succeeded. Read more

fn write_fmt(&mut self, args: Arguments) -> Result<(), Error>
1.0.0
[src]

Glue for usage of the [write!] macro with implementors of this trait. Read more

impl<'usart, UsartX> Default<u8> for Transmitter<'usart, UsartX> where
    UsartX: Peripheral
[src]

impl<'usart, UsartX> Write<u8> for Transmitter<'usart, UsartX> where
    UsartX: Peripheral
[src]

type Error = Void

Write error

Auto Trait Implementations

impl<'usart, UsartX> Send for Transmitter<'usart, UsartX> where
    UsartX: Sync

impl<'usart, UsartX> Sync for Transmitter<'usart, UsartX> where
    UsartX: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, Word> Write for S where
    S: Default<Word>,
    Word: Clone
[src]

type Error = <S as Write<Word>>::Error

The type of error that can occur when writing