pub struct CanFdRx<'a, Dm: DriverMode> { /* private fields */ }Expand description
Receiving half of a split controller.
Borrows the driver, which keeps the configuration and the teardown. See
CanFd::split.
Implementations§
Source§impl<Dm: DriverMode> CanFdRx<'_, Dm>
impl<Dm: DriverMode> CanFdRx<'_, Dm>
Sourcepub fn rx_frame_count(&self) -> u16
pub fn rx_frame_count(&self) -> u16
Returns the number of complete frames waiting in the RX buffer.
Sourcepub fn rx_buffer_size_words(&self) -> u16
pub fn rx_buffer_size_words(&self) -> u16
Returns the size of the RX buffer in 32-bit words.
Sourcepub fn rx_buffer_free_words(&self) -> u16
pub fn rx_buffer_free_words(&self) -> u16
Returns the free space in the RX buffer in 32-bit words.
Sourcepub fn rx_overrun(&self) -> bool
pub fn rx_overrun(&self) -> bool
Returns whether the RX buffer has overrun and dropped a frame (TRM 38.3.9.4).
Sourcepub fn clear_rx_overrun(&mut self)
pub fn clear_rx_overrun(&mut self)
Clears the RX buffer overrun flag.
Sourcepub fn error_state(&self) -> ErrorState
pub fn error_state(&self) -> ErrorState
Returns the current fault confinement state; see CanFd::error_state.
Sourcepub fn receive_error_count(&self) -> u16
pub fn receive_error_count(&self) -> u16
Returns the receive error counter.
Sourcepub fn transmit_error_count(&self) -> u16
pub fn transmit_error_count(&self) -> u16
Returns the transmit error counter.