pub struct TWAI1 { /* private fields */ }
Implementations§
Source§impl TWAI1
impl TWAI1
Sourcepub const PTR: *const <TWAI1 as Deref>::Target = {0x6000d000 as *const <esp32c6::TWAI1 as core::ops::Deref>::Target}
pub const PTR: *const <TWAI1 as Deref>::Target = {0x6000d000 as *const <esp32c6::TWAI1 as core::ops::Deref>::Target}
Pointer to the register block
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn status(&self) -> &Reg<STATUS_SPEC>
pub fn status(&self) -> &Reg<STATUS_SPEC>
0x08 - TWAI status register.
Sourcepub fn interrupt(&self) -> &Reg<INTERRUPT_SPEC>
pub fn interrupt(&self) -> &Reg<INTERRUPT_SPEC>
0x0c - Interrupt signals’ register.
Sourcepub fn interrupt_enable(&self) -> &Reg<INTERRUPT_ENABLE_SPEC>
pub fn interrupt_enable(&self) -> &Reg<INTERRUPT_ENABLE_SPEC>
0x10 - Interrupt enable register.
Sourcepub fn bus_timing_0(&self) -> &Reg<BUS_TIMING_0_SPEC>
pub fn bus_timing_0(&self) -> &Reg<BUS_TIMING_0_SPEC>
0x18 - Bit timing configuration register 0.
Sourcepub fn bus_timing_1(&self) -> &Reg<BUS_TIMING_1_SPEC>
pub fn bus_timing_1(&self) -> &Reg<BUS_TIMING_1_SPEC>
0x1c - Bit timing configuration register 1.
Sourcepub fn arb_lost_cap(&self) -> &Reg<ARB_LOST_CAP_SPEC>
pub fn arb_lost_cap(&self) -> &Reg<ARB_LOST_CAP_SPEC>
0x2c - TWAI arbiter lost capture register.
Sourcepub fn err_code_cap(&self) -> &Reg<ERR_CODE_CAP_SPEC>
pub fn err_code_cap(&self) -> &Reg<ERR_CODE_CAP_SPEC>
0x30 - TWAI error info capture register.
Sourcepub fn err_warning_limit(&self) -> &Reg<ERR_WARNING_LIMIT_SPEC>
pub fn err_warning_limit(&self) -> &Reg<ERR_WARNING_LIMIT_SPEC>
0x34 - TWAI error threshold configuration register.
Sourcepub fn rx_err_cnt(&self) -> &Reg<RX_ERR_CNT_SPEC>
pub fn rx_err_cnt(&self) -> &Reg<RX_ERR_CNT_SPEC>
0x38 - Rx error counter register.
Sourcepub fn tx_err_cnt(&self) -> &Reg<TX_ERR_CNT_SPEC>
pub fn tx_err_cnt(&self) -> &Reg<TX_ERR_CNT_SPEC>
0x3c - Tx error counter register.
Sourcepub fn data_0(&self) -> &Reg<DATA_0_SPEC>
pub fn data_0(&self) -> &Reg<DATA_0_SPEC>
0x40 - Data register 0.
Sourcepub fn data_1(&self) -> &Reg<DATA_1_SPEC>
pub fn data_1(&self) -> &Reg<DATA_1_SPEC>
0x44 - Data register 1.
Sourcepub fn data_2(&self) -> &Reg<DATA_2_SPEC>
pub fn data_2(&self) -> &Reg<DATA_2_SPEC>
0x48 - Data register 2.
Sourcepub fn data_3(&self) -> &Reg<DATA_3_SPEC>
pub fn data_3(&self) -> &Reg<DATA_3_SPEC>
0x4c - Data register 3.
Sourcepub fn data_4(&self) -> &Reg<DATA_4_SPEC>
pub fn data_4(&self) -> &Reg<DATA_4_SPEC>
0x50 - Data register 4.
Sourcepub fn data_5(&self) -> &Reg<DATA_5_SPEC>
pub fn data_5(&self) -> &Reg<DATA_5_SPEC>
0x54 - Data register 5.
Sourcepub fn data_6(&self) -> &Reg<DATA_6_SPEC>
pub fn data_6(&self) -> &Reg<DATA_6_SPEC>
0x58 - Data register 6.
Sourcepub fn data_7(&self) -> &Reg<DATA_7_SPEC>
pub fn data_7(&self) -> &Reg<DATA_7_SPEC>
0x5c - Data register 7.
Sourcepub fn data_8(&self) -> &Reg<DATA_8_SPEC>
pub fn data_8(&self) -> &Reg<DATA_8_SPEC>
0x60 - Data register 8.
Sourcepub fn data_9(&self) -> &Reg<DATA_9_SPEC>
pub fn data_9(&self) -> &Reg<DATA_9_SPEC>
0x64 - Data register 9.
Sourcepub fn data_10(&self) -> &Reg<DATA_10_SPEC>
pub fn data_10(&self) -> &Reg<DATA_10_SPEC>
0x68 - Data register 10.
Sourcepub fn data_11(&self) -> &Reg<DATA_11_SPEC>
pub fn data_11(&self) -> &Reg<DATA_11_SPEC>
0x6c - Data register 11.
Sourcepub fn data_12(&self) -> &Reg<DATA_12_SPEC>
pub fn data_12(&self) -> &Reg<DATA_12_SPEC>
0x70 - Data register 12.
Sourcepub fn rx_message_cnt(&self) -> &Reg<RX_MESSAGE_CNT_SPEC>
pub fn rx_message_cnt(&self) -> &Reg<RX_MESSAGE_CNT_SPEC>
0x74 - Received message counter register.
Sourcepub fn clock_divider(&self) -> &Reg<CLOCK_DIVIDER_SPEC>
pub fn clock_divider(&self) -> &Reg<CLOCK_DIVIDER_SPEC>
0x7c - Clock divider register.
Sourcepub fn sw_standby_cfg(&self) -> &Reg<SW_STANDBY_CFG_SPEC>
pub fn sw_standby_cfg(&self) -> &Reg<SW_STANDBY_CFG_SPEC>
0x80 - Software configure standby pin directly.
Sourcepub fn hw_cfg(&self) -> &Reg<HW_CFG_SPEC>
pub fn hw_cfg(&self) -> &Reg<HW_CFG_SPEC>
0x84 - Hardware configure standby pin.
Sourcepub fn hw_standby_cnt(&self) -> &Reg<HW_STANDBY_CNT_SPEC>
pub fn hw_standby_cnt(&self) -> &Reg<HW_STANDBY_CNT_SPEC>
0x88 - Configure standby counter.
Sourcepub fn idle_intr_cnt(&self) -> &Reg<IDLE_INTR_CNT_SPEC>
pub fn idle_intr_cnt(&self) -> &Reg<IDLE_INTR_CNT_SPEC>
0x8c - Configure idle interrupt counter.
Sourcepub fn eco_cfg(&self) -> &Reg<ECO_CFG_SPEC>
pub fn eco_cfg(&self) -> &Reg<ECO_CFG_SPEC>
0x90 - ECO configuration register.