pub struct W(_);
Expand description
Register MODE
writer
Implementations§
§impl W
impl W
pub fn reset_mode(&mut self) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 0>
pub fn reset_mode(&mut self) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 0>
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(
&mut self
) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 1>
pub fn listen_only_mode(
&mut self
) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 1>
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(
&mut self
) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 2>
pub fn self_test_mode(
&mut self
) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 2>
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(
&mut self
) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 3>
pub fn rx_filter_mode(
&mut self
) -> BitWriterRaw<'_, u32, MODE_SPEC, bool, BitM, 3>
Bit 3 - This bit is used to configure the filter mode. 0: Dual filter mode; 1: Single filter mode.
Methods from Deref<Target = W<MODE_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.