[][src]Struct teensy::uart::UART

#[repr(C, packed)]
pub struct UART { /* fields omitted */ }

Methods

impl UART[src]

pub unsafe fn new(num: Available_UART) -> &'static mut UART[src]

pub fn name(&self) -> Available_UART[src]

pub unsafe fn setup(&mut self, sim: &mut Sim, baud: u32)[src]

UART configuration is described p.1291 of doc/mx20dx256vhl7.pdf

pub fn write_byte(&mut self, b: u8)[src]

pub fn read_byte(&mut self) -> u8[src]

pub fn read_char(&mut self) -> char[src]

pub fn read_line(&mut self, buf: &mut [char])[src]

Trait Implementations

impl Write for UART[src]

Auto Trait Implementations

impl Send for UART

impl Sync for UART

impl Unpin for UART

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.