Struct esp32c6::twai0::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn interrupt_enable(&self) -> &INTERRUPT_ENABLE
pub const fn interrupt_enable(&self) -> &INTERRUPT_ENABLE
0x10 - Interrupt enable register.
sourcepub const fn bus_timing_0(&self) -> &BUS_TIMING_0
pub const fn bus_timing_0(&self) -> &BUS_TIMING_0
0x18 - Bit timing configuration register 0.
sourcepub const fn bus_timing_1(&self) -> &BUS_TIMING_1
pub const fn bus_timing_1(&self) -> &BUS_TIMING_1
0x1c - Bit timing configuration register 1.
sourcepub const fn arb_lost_cap(&self) -> &ARB_LOST_CAP
pub const fn arb_lost_cap(&self) -> &ARB_LOST_CAP
0x2c - TWAI arbiter lost capture register.
sourcepub const fn err_code_cap(&self) -> &ERR_CODE_CAP
pub const fn err_code_cap(&self) -> &ERR_CODE_CAP
0x30 - TWAI error info capture register.
sourcepub const fn err_warning_limit(&self) -> &ERR_WARNING_LIMIT
pub const fn err_warning_limit(&self) -> &ERR_WARNING_LIMIT
0x34 - TWAI error threshold configuration register.
sourcepub const fn rx_err_cnt(&self) -> &RX_ERR_CNT
pub const fn rx_err_cnt(&self) -> &RX_ERR_CNT
0x38 - Rx error counter register.
sourcepub const fn tx_err_cnt(&self) -> &TX_ERR_CNT
pub const fn tx_err_cnt(&self) -> &TX_ERR_CNT
0x3c - Tx error counter register.
sourcepub const fn rx_message_cnt(&self) -> &RX_MESSAGE_CNT
pub const fn rx_message_cnt(&self) -> &RX_MESSAGE_CNT
0x74 - Received message counter register.
sourcepub const fn clock_divider(&self) -> &CLOCK_DIVIDER
pub const fn clock_divider(&self) -> &CLOCK_DIVIDER
0x7c - Clock divider register.
sourcepub const fn sw_standby_cfg(&self) -> &SW_STANDBY_CFG
pub const fn sw_standby_cfg(&self) -> &SW_STANDBY_CFG
0x80 - Software configure standby pin directly.
sourcepub const fn hw_standby_cnt(&self) -> &HW_STANDBY_CNT
pub const fn hw_standby_cnt(&self) -> &HW_STANDBY_CNT
0x88 - Configure standby counter.
sourcepub const fn idle_intr_cnt(&self) -> &IDLE_INTR_CNT
pub const fn idle_intr_cnt(&self) -> &IDLE_INTR_CNT
0x8c - Configure idle interrupt counter.
Auto Trait Implementations§
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more