Struct esp32c3_hal::pac::twai::mode::R
pub struct R(_);
Expand description
Register MODE
reader
Implementations
impl R
impl R
pub fn reset_mode(&self) -> BitReaderRaw<bool>
pub fn reset_mode(&self) -> BitReaderRaw<bool>
Bit 0 - This bit is used to configure the operating mode of the TWAI Controller. 1: Reset mode; 0: Operating mode.
pub fn listen_only_mode(&self) -> BitReaderRaw<bool>
pub fn listen_only_mode(&self) -> BitReaderRaw<bool>
Bit 1 - 1: Listen only mode. In this mode the nodes will only receive messages from the bus, without generating the acknowledge signal nor updating the RX error counter.
pub fn self_test_mode(&self) -> BitReaderRaw<bool>
pub fn self_test_mode(&self) -> BitReaderRaw<bool>
Bit 2 - 1: Self test mode. In this mode the TX nodes can perform a successful transmission without receiving the acknowledge signal. This mode is often used to test a single node with the self reception request command.
pub fn rx_filter_mode(&self) -> BitReaderRaw<bool>
pub fn rx_filter_mode(&self) -> BitReaderRaw<bool>
Bit 3 - This bit is used to configure the filter mode. 0: Dual filter mode; 1: Single filter mode.
Methods from Deref<Target = R<MODE_SPEC>>
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more