[][src]Struct ruspiro_uart::Uart0

pub struct Uart0 { /* fields omitted */ }

Uart0 (miniUART) peripheral representation

Methods

impl Uart0[src]

pub const fn new() -> Self[src]

pub fn initialize(
    &mut self,
    clock_rate: u32,
    baud_rate: u32
) -> Result<(), &'static str>
[src]

Initialize the Uart0 peripheral for usage. It takes the core clock rate and the baud rate to configure correct speed.

pub fn send_char(&self, c: char)[src]

pub fn send_string(&self, s: &str)[src]

Trait Implementations

impl Drop for Uart0[src]

impl ConsoleImpl for Uart0[src]

Auto Trait Implementations

impl Unpin for Uart0

impl Sync for Uart0

impl Send for Uart0

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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