Type Alias esp32c3::twai0::mode::R

source ·
pub type R = R<MODE_SPEC>;
Expand description

Register MODE reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn reset_mode(&self) -> RESET_MODE_R

Bit 0 - This bit is used to configure the operating mode of the TWAI Controller. 1: Reset mode; 0: Operating mode.

source

pub fn listen_only_mode(&self) -> LISTEN_ONLY_MODE_R

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.

source

pub fn self_test_mode(&self) -> SELF_TEST_MODE_R

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.

source

pub fn rx_filter_mode(&self) -> RX_FILTER_MODE_R

Bit 3 - This bit is used to configure the filter mode. 0: Dual filter mode; 1: Single filter mode.