Struct esp32c3_hal::pac::twai::cmd::W
pub struct W(_);
Expand description
Register CMD
writer
Implementations
impl W
impl W
pub fn tx_req(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 0>
pub fn tx_req(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 0>
Bit 0 - Set the bit to 1 to allow the driving nodes start transmission.
pub fn abort_tx(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 1>
pub fn abort_tx(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 1>
Bit 1 - Set the bit to 1 to cancel a pending transmission request.
pub fn release_buf(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 2>
pub fn release_buf(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 2>
Bit 2 - Set the bit to 1 to release the RX buffer.
pub fn clr_overrun(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 3>
pub fn clr_overrun(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 3>
Bit 3 - Set the bit to 1 to clear the data overrun status bit.
pub fn self_rx_req(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 4>
pub fn self_rx_req(&mut self) -> BitWriterRaw<'_, u32, CMD_SPEC, bool, BitM, 4>
Bit 4 - Self reception request command. Set the bit to 1 to allow a message be transmitted and received simultaneously.
Methods from Deref<Target = W<CMD_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.
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