#[repr(C)]
pub struct RegisterBlock {
Show 37 fields pub ctl: CTL, pub sts: STS, pub err: ERR, pub bit_: BIT, pub int: INT, pub tst: TST, pub brpe: BRPE, pub if1crq: IF1CRQ, pub if1cmsk: IF1CMSK, pub if1msk1: IF1MSK1, pub if1msk2: IF1MSK2, pub if1arb1: IF1ARB1, pub if1arb2: IF1ARB2, pub if1mctl: IF1MCTL, pub if1da1: IF1DA1, pub if1da2: IF1DA2, pub if1db1: IF1DB1, pub if1db2: IF1DB2, pub if2crq: IF2CRQ, pub if2cmsk: IF2CMSK, pub if2msk1: IF2MSK1, pub if2msk2: IF2MSK2, pub if2arb1: IF2ARB1, pub if2arb2: IF2ARB2, pub if2mctl: IF2MCTL, pub if2da1: IF2DA1, pub if2da2: IF2DA2, pub if2db1: IF2DB1, pub if2db2: IF2DB2, pub txrq1: TXRQ1, pub txrq2: TXRQ2, pub nwda1: NWDA1, pub nwda2: NWDA2, pub msg1int: MSG1INT, pub msg2int: MSG2INT, pub msg1val: MSG1VAL, pub msg2val: MSG2VAL, /* private fields */
}
Expand description

Register block

Fields§

§ctl: CTL

0x00 - CAN Control

§sts: STS

0x04 - CAN Status

§err: ERR

0x08 - CAN Error Counter

§bit_: BIT

0x0c - CAN Bit Timing

§int: INT

0x10 - CAN Interrupt

§tst: TST

0x14 - CAN Test

§brpe: BRPE

0x18 - CAN Baud Rate Prescaler Extension

§if1crq: IF1CRQ

0x20 - CAN IF1 Command Request

§if1cmsk: IF1CMSK

0x24 - CAN IF1 Command Mask

§if1msk1: IF1MSK1

0x28 - CAN IF1 Mask 1

§if1msk2: IF1MSK2

0x2c - CAN IF1 Mask 2

§if1arb1: IF1ARB1

0x30 - CAN IF1 Arbitration 1

§if1arb2: IF1ARB2

0x34 - CAN IF1 Arbitration 2

§if1mctl: IF1MCTL

0x38 - CAN IF1 Message Control

§if1da1: IF1DA1

0x3c - CAN IF1 Data A1

§if1da2: IF1DA2

0x40 - CAN IF1 Data A2

§if1db1: IF1DB1

0x44 - CAN IF1 Data B1

§if1db2: IF1DB2

0x48 - CAN IF1 Data B2

§if2crq: IF2CRQ

0x80 - CAN IF2 Command Request

§if2cmsk: IF2CMSK

0x84 - CAN IF2 Command Mask

§if2msk1: IF2MSK1

0x88 - CAN IF2 Mask 1

§if2msk2: IF2MSK2

0x8c - CAN IF2 Mask 2

§if2arb1: IF2ARB1

0x90 - CAN IF2 Arbitration 1

§if2arb2: IF2ARB2

0x94 - CAN IF2 Arbitration 2

§if2mctl: IF2MCTL

0x98 - CAN IF2 Message Control

§if2da1: IF2DA1

0x9c - CAN IF2 Data A1

§if2da2: IF2DA2

0xa0 - CAN IF2 Data A2

§if2db1: IF2DB1

0xa4 - CAN IF2 Data B1

§if2db2: IF2DB2

0xa8 - CAN IF2 Data B2

§txrq1: TXRQ1

0x100 - CAN Transmission Request 1

§txrq2: TXRQ2

0x104 - CAN Transmission Request 2

§nwda1: NWDA1

0x120 - CAN New Data 1

§nwda2: NWDA2

0x124 - CAN New Data 2

§msg1int: MSG1INT

0x140 - CAN Message 1 Interrupt Pending

§msg2int: MSG2INT

0x144 - CAN Message 2 Interrupt Pending

§msg1val: MSG1VAL

0x160 - CAN Message 1 Valid

§msg2val: MSG2VAL

0x164 - CAN Message 2 Valid

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.