[][src]Struct msp430fr2x5x_hal::serial::Rx

pub struct Rx<USCI: SerialUsci>(_);

Serial receiver pin

Implementations

impl<USCI: SerialUsci> Rx<USCI>[src]

pub fn enable_rx_interrupts(&mut self)[src]

Enable Rx interrupts, which fire when ready to read

pub fn disable_rx_interrupts(&mut self)[src]

Disable Rx interrupts

Trait Implementations

impl<USCI: SerialUsci> Read<u8> for Rx<USCI>[src]

type Error = RecvError

Read error

pub fn read(&mut self) -> Result<u8, Self::Error>[src]

Check if Rx interrupt flag is set. If so, try reading the received byte and clear the flag. Otherwise block on the Rx interrupt flag. May return errors caused by data corruption or buffer overruns.

Auto Trait Implementations

impl<USCI> Send for Rx<USCI> where
    USCI: Send
[src]

impl<USCI> Sync for Rx<USCI> where
    USCI: Sync
[src]

impl<USCI> Unpin for Rx<USCI> where
    USCI: Unpin
[src]

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.