Struct esp32s3_hal::peripherals::TWAI0
source · pub struct TWAI0 { /* private fields */ }
Implementations§
source§impl TWAI0
impl TWAI0
sourcepub unsafe fn steal() -> TWAI0
pub unsafe fn steal() -> TWAI0
Unsafely create an instance of this peripheral out of thin air.
Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
pub fn mode(&self) -> &Reg<MODE_SPEC>
pub fn mode(&self) -> &Reg<MODE_SPEC>
0x00 - Mode Register
pub fn cmd(&self) -> &Reg<CMD_SPEC>
pub fn cmd(&self) -> &Reg<CMD_SPEC>
0x04 - Command Register
pub fn status(&self) -> &Reg<STATUS_SPEC>
pub fn status(&self) -> &Reg<STATUS_SPEC>
0x08 - Status register
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x0c - Interrupt Register
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x10 - Interrupt Enable Register
pub fn bus_timing_0(&self) -> &Reg<BUS_TIMING_0_SPEC>
pub fn bus_timing_0(&self) -> &Reg<BUS_TIMING_0_SPEC>
0x18 - Bus Timing Register 0
pub fn bus_timing_1(&self) -> &Reg<BUS_TIMING_1_SPEC>
pub fn bus_timing_1(&self) -> &Reg<BUS_TIMING_1_SPEC>
0x1c - Bus Timing Register 1
pub fn arb_lost_cap(&self) -> &Reg<ARB_LOST_CAP_SPEC>
pub fn arb_lost_cap(&self) -> &Reg<ARB_LOST_CAP_SPEC>
0x2c - Arbitration Lost Capture Register
pub fn err_code_cap(&self) -> &Reg<ERR_CODE_CAP_SPEC>
pub fn err_code_cap(&self) -> &Reg<ERR_CODE_CAP_SPEC>
0x30 - Error Code Capture Register
pub fn err_warning_limit(&self) -> &Reg<ERR_WARNING_LIMIT_SPEC>
pub fn err_warning_limit(&self) -> &Reg<ERR_WARNING_LIMIT_SPEC>
0x34 - Error Warning Limit Register
pub fn rx_err_cnt(&self) -> &Reg<RX_ERR_CNT_SPEC>
pub fn rx_err_cnt(&self) -> &Reg<RX_ERR_CNT_SPEC>
0x38 - Receive Error Counter Register
pub fn tx_err_cnt(&self) -> &Reg<TX_ERR_CNT_SPEC>
pub fn tx_err_cnt(&self) -> &Reg<TX_ERR_CNT_SPEC>
0x3c - Transmit Error Counter Register
pub fn data_0(&self) -> &Reg<DATA_0_SPEC>
pub fn data_0(&self) -> &Reg<DATA_0_SPEC>
0x40 - Data register 0
pub fn data_1(&self) -> &Reg<DATA_1_SPEC>
pub fn data_1(&self) -> &Reg<DATA_1_SPEC>
0x44 - Data register 1
pub fn data_2(&self) -> &Reg<DATA_2_SPEC>
pub fn data_2(&self) -> &Reg<DATA_2_SPEC>
0x48 - Data register 2
pub fn data_3(&self) -> &Reg<DATA_3_SPEC>
pub fn data_3(&self) -> &Reg<DATA_3_SPEC>
0x4c - Data register 3
pub fn data_4(&self) -> &Reg<DATA_4_SPEC>
pub fn data_4(&self) -> &Reg<DATA_4_SPEC>
0x50 - Data register 4
pub fn data_5(&self) -> &Reg<DATA_5_SPEC>
pub fn data_5(&self) -> &Reg<DATA_5_SPEC>
0x54 - Data register 5
pub fn data_6(&self) -> &Reg<DATA_6_SPEC>
pub fn data_6(&self) -> &Reg<DATA_6_SPEC>
0x58 - Data register 6
pub fn data_7(&self) -> &Reg<DATA_7_SPEC>
pub fn data_7(&self) -> &Reg<DATA_7_SPEC>
0x5c - Data register 7
pub fn data_8(&self) -> &Reg<DATA_8_SPEC>
pub fn data_8(&self) -> &Reg<DATA_8_SPEC>
0x60 - Data register 8
pub fn data_9(&self) -> &Reg<DATA_9_SPEC>
pub fn data_9(&self) -> &Reg<DATA_9_SPEC>
0x64 - Data register 9
pub fn data_10(&self) -> &Reg<DATA_10_SPEC>
pub fn data_10(&self) -> &Reg<DATA_10_SPEC>
0x68 - Data register 10
pub fn data_11(&self) -> &Reg<DATA_11_SPEC>
pub fn data_11(&self) -> &Reg<DATA_11_SPEC>
0x6c - Data register 11
pub fn data_12(&self) -> &Reg<DATA_12_SPEC>
pub fn data_12(&self) -> &Reg<DATA_12_SPEC>
0x70 - Data register 12
pub fn rx_message_cnt(&self) -> &Reg<RX_MESSAGE_CNT_SPEC>
pub fn rx_message_cnt(&self) -> &Reg<RX_MESSAGE_CNT_SPEC>
0x74 - Receive Message Counter Register
pub fn clock_divider(&self) -> &Reg<CLOCK_DIVIDER_SPEC>
pub fn clock_divider(&self) -> &Reg<CLOCK_DIVIDER_SPEC>
0x7c - Clock Divider register