[][src]Struct stm32l4xx_hal::serial::Rx

pub struct Rx<USART> { /* fields omitted */ }

Serial receiver

Methods

impl Rx<USART1>[src]

pub fn circ_read<B, H>(&self, chan: C5, buffer: B) -> CircBuffer<B, C5> where
    B: StableDeref<Target = [H; 2]> + DerefMut,
    H: AsMutSlice<Element = u8>, 
[src]

pub fn is_idle(&mut self, clear: bool) -> bool[src]

Checks to see if the usart peripheral has detected an idle line and clears the flag

impl Rx<USART2>[src]

pub fn circ_read<B, H>(&self, chan: C6, buffer: B) -> CircBuffer<B, C6> where
    B: StableDeref<Target = [H; 2]> + DerefMut,
    H: AsMutSlice<Element = u8>, 
[src]

pub fn is_idle(&mut self, clear: bool) -> bool[src]

Checks to see if the usart peripheral has detected an idle line and clears the flag

Trait Implementations

impl Read<u8> for Rx<USART1>[src]

type Error = Error

Read error

impl Read<u8> for Rx<USART2>[src]

type Error = Error

Read error

Auto Trait Implementations

impl<USART> Send for Rx<USART> where
    USART: Send

impl<USART> Sync for Rx<USART> where
    USART: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

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<T> Same for T

type Output = T

Should always be Self