[−][src]Struct lpc82x_hal::usart::Transmitter
USART transmitter
Methods
impl<'usart, UsartX> Transmitter<'usart, UsartX> where
UsartX: Peripheral,
[src]
UsartX: Peripheral,
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]
UsartX: Peripheral,
type Error = Void
The error that can occur while waiting for the destination to be idle
fn wait(&mut self) -> Result<(), Self::Error>
[src]
fn end_addr(&mut self) -> *mut u8
[src]
impl<'usart, UsartX> Write for Transmitter<'usart, UsartX> where
Self: BlockingWriteDefault<u8>,
UsartX: Peripheral,
[src]
Self: BlockingWriteDefault<u8>,
UsartX: Peripheral,
fn write_str(&mut self, s: &str) -> Result
[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]
UsartX: Peripheral,
impl<'usart, UsartX> Write<u8> for Transmitter<'usart, UsartX> where
UsartX: Peripheral,
[src]
UsartX: Peripheral,
Auto Trait Implementations
impl<'usart, UsartX> Send for Transmitter<'usart, UsartX> where
UsartX: Sync,
UsartX: Sync,
impl<'usart, UsartX> Sync for Transmitter<'usart, UsartX> where
UsartX: Sync,
UsartX: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, Word> Write for S where
S: Default<Word>,
Word: Clone,
[src]
S: Default<Word>,
Word: Clone,