pub struct Rx<USART, Config> { /* private fields */ }
Expand description
Serial receiver
Implementations§
Source§impl<Config> Rx<USART1, Config>
impl<Config> Rx<USART1, Config>
Sourcepub fn listen_idle(&mut self)
pub fn listen_idle(&mut self)
Listen for an idle interrupt event
Sourcepub fn unlisten_idle(&mut self)
pub fn unlisten_idle(&mut self)
Stop listening for an idle interrupt event
Sourcepub fn clear_idle(&mut self)
pub fn clear_idle(&mut self)
Clear the idle event flag
Source§impl<Config> Rx<USART2, Config>
impl<Config> Rx<USART2, Config>
Sourcepub fn listen_idle(&mut self)
pub fn listen_idle(&mut self)
Listen for an idle interrupt event
Sourcepub fn unlisten_idle(&mut self)
pub fn unlisten_idle(&mut self)
Stop listening for an idle interrupt event
Sourcepub fn clear_idle(&mut self)
pub fn clear_idle(&mut self)
Clear the idle event flag
Source§impl<Config> Rx<USART3, Config>
impl<Config> Rx<USART3, Config>
Sourcepub fn listen_idle(&mut self)
pub fn listen_idle(&mut self)
Listen for an idle interrupt event
Sourcepub fn unlisten_idle(&mut self)
pub fn unlisten_idle(&mut self)
Stop listening for an idle interrupt event
Sourcepub fn clear_idle(&mut self)
pub fn clear_idle(&mut self)
Clear the idle event flag
Source§impl<Config> Rx<USART4, Config>
impl<Config> Rx<USART4, Config>
Sourcepub fn listen_idle(&mut self)
pub fn listen_idle(&mut self)
Listen for an idle interrupt event
Sourcepub fn unlisten_idle(&mut self)
pub fn unlisten_idle(&mut self)
Stop listening for an idle interrupt event
Sourcepub fn clear_idle(&mut self)
pub fn clear_idle(&mut self)
Clear the idle event flag
Source§impl<Config> Rx<LPUART, Config>
impl<Config> Rx<LPUART, Config>
Sourcepub fn listen_idle(&mut self)
pub fn listen_idle(&mut self)
Listen for an idle interrupt event
Sourcepub fn unlisten_idle(&mut self)
pub fn unlisten_idle(&mut self)
Stop listening for an idle interrupt event
Sourcepub fn clear_idle(&mut self)
pub fn clear_idle(&mut self)
Clear the idle event flag
Source§impl Rx<USART1, FullConfig>
impl Rx<USART1, FullConfig>
Sourcepub fn timeout_lapsed(&self) -> bool
pub fn timeout_lapsed(&self) -> bool
Check if receiver timeout has lapsed Returns the current state of the ISR RTOF bit
Sourcepub fn clear_timeout(&mut self)
pub fn clear_timeout(&mut self)
Clear pending receiver timeout interrupt
Sourcepub fn fifo_threshold_reached(&self) -> bool
pub fn fifo_threshold_reached(&self) -> bool
Returns true if the rx fifo threshold has been reached.
Source§impl Rx<USART2, FullConfig>
impl Rx<USART2, FullConfig>
Sourcepub fn timeout_lapsed(&self) -> bool
pub fn timeout_lapsed(&self) -> bool
Check if receiver timeout has lapsed Returns the current state of the ISR RTOF bit
Sourcepub fn clear_timeout(&mut self)
pub fn clear_timeout(&mut self)
Clear pending receiver timeout interrupt
Sourcepub fn fifo_threshold_reached(&self) -> bool
pub fn fifo_threshold_reached(&self) -> bool
Returns true if the rx fifo threshold has been reached.