Struct esp32::twai0::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 27 fields pub mode: MODE, pub cmd: CMD, pub status: STATUS, pub int_raw: INT_RAW, pub int_ena: INT_ENA, pub bus_timing_0: BUS_TIMING_0, pub bus_timing_1: BUS_TIMING_1, pub arb_lost_cap: ARB_LOST_CAP, pub err_code_cap: ERR_CODE_CAP, pub err_warning_limit: ERR_WARNING_LIMIT, pub rx_err_cnt: RX_ERR_CNT, pub tx_err_cnt: TX_ERR_CNT, pub data_0: DATA_0, pub data_1: DATA_1, pub data_2: DATA_2, pub data_3: DATA_3, pub data_4: DATA_4, pub data_5: DATA_5, pub data_6: DATA_6, pub data_7: DATA_7, pub data_8: DATA_8, pub data_9: DATA_9, pub data_10: DATA_10, pub data_11: DATA_11, pub data_12: DATA_12, pub rx_message_cnt: RX_MESSAGE_CNT, pub clock_divider: CLOCK_DIVIDER, /* private fields */
}
Expand description

Register block

Fields§

§mode: MODE

0x00 - Mode Register

§cmd: CMD

0x04 - Command Register

§status: STATUS

0x08 - Status register

§int_raw: INT_RAW

0x0c - Interrupt Register

§int_ena: INT_ENA

0x10 - Interrupt Enable Register

§bus_timing_0: BUS_TIMING_0

0x18 - Bus Timing Register 0

§bus_timing_1: BUS_TIMING_1

0x1c - Bus Timing Register 1

§arb_lost_cap: ARB_LOST_CAP

0x2c - Arbitration Lost Capture Register

§err_code_cap: ERR_CODE_CAP

0x30 - Error Code Capture Register

§err_warning_limit: ERR_WARNING_LIMIT

0x34 - Error Warning Limit Register

§rx_err_cnt: RX_ERR_CNT

0x38 - Receive Error Counter Register

§tx_err_cnt: TX_ERR_CNT

0x3c - Transmit Error Counter Register

§data_0: DATA_0

0x40 - Data register 0

§data_1: DATA_1

0x44 - Data register 1

§data_2: DATA_2

0x48 - Data register 2

§data_3: DATA_3

0x4c - Data register 3

§data_4: DATA_4

0x50 - Data register 4

§data_5: DATA_5

0x54 - Data register 5

§data_6: DATA_6

0x58 - Data register 6

§data_7: DATA_7

0x5c - Data register 7

§data_8: DATA_8

0x60 - Data register 8

§data_9: DATA_9

0x64 - Data register 9

§data_10: DATA_10

0x68 - Data register 10

§data_11: DATA_11

0x6c - Data register 11

§data_12: DATA_12

0x70 - Data register 12

§rx_message_cnt: RX_MESSAGE_CNT

0x74 - Receive Message Counter Register

§clock_divider: CLOCK_DIVIDER

0x7c - Clock Divider register

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.