Struct stm32l432xx_hal::serial::Rx [−][src]
pub struct Rx<USART> { /* fields omitted */ }
Serial receiver
Methods
impl Rx<USART1>
[src]
impl Rx<USART1>
pub fn circ_read<B>(
&self,
chan: C5,
buffer: &'static mut [B; 2]
) -> CircBuffer<B, C5> where
B: Unsize<[u8]>,
[src]
pub fn circ_read<B>(
&self,
chan: C5,
buffer: &'static mut [B; 2]
) -> CircBuffer<B, C5> where
B: Unsize<[u8]>,
pub fn is_idle(&mut self, clear: bool) -> bool
[src]
pub fn is_idle(&mut self, clear: bool) -> bool
Checks to see if the usart peripheral has detected an idle line and clears the flag
impl Rx<USART2>
[src]
impl Rx<USART2>
pub fn circ_read<B>(
&self,
chan: C6,
buffer: &'static mut [B; 2]
) -> CircBuffer<B, C6> where
B: Unsize<[u8]>,
[src]
pub fn circ_read<B>(
&self,
chan: C6,
buffer: &'static mut [B; 2]
) -> CircBuffer<B, C6> where
B: Unsize<[u8]>,
pub fn is_idle(&mut self, clear: bool) -> bool
[src]
pub fn is_idle(&mut self, clear: bool) -> bool
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]
impl Read<u8> for Rx<USART1>
type Error = Error
Read error
fn read(&mut self) -> Result<u8, Error>
[src]
fn read(&mut self) -> Result<u8, Error>
Reads a single word from the serial interface
impl Read<u8> for Rx<USART2>
[src]
impl Read<u8> for Rx<USART2>