Struct mcxn947_pac::CAN0

source ·
pub struct CAN0 { /* private fields */ }
Expand description

CAN

Implementations§

source§

impl CAN0

source

pub const PTR: *const RegisterBlock = {0x400d4000 as *const can0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn mcr(&self) -> &MCR

0x00 - Module Configuration Register

source

pub fn ctrl1(&self) -> &CTRL1

0x04 - Control 1 Register

source

pub fn timer(&self) -> &TIMER

0x08 - Free Running Timer

source

pub fn rxmgmask(&self) -> &RXMGMASK

0x10 - Rx Mailboxes Global Mask Register

source

pub fn rx14mask(&self) -> &RX14MASK

0x14 - Rx 14 Mask Register

source

pub fn rx15mask(&self) -> &RX15MASK

0x18 - Rx 15 Mask Register

source

pub fn ecr(&self) -> &ECR

0x1c - Error Counter

source

pub fn esr1(&self) -> &ESR1

0x20 - Error and Status 1 Register

source

pub fn imask1(&self) -> &IMASK1

0x28 - Interrupt Masks 1 Register

source

pub fn iflag1(&self) -> &IFLAG1

0x30 - Interrupt Flags 1 Register

source

pub fn ctrl2(&self) -> &CTRL2

0x34 - Control 2 Register

source

pub fn esr2(&self) -> &ESR2

0x38 - Error and Status 2 Register

source

pub fn crcr(&self) -> &CRCR

0x44 - CRC Register

source

pub fn rxfgmask(&self) -> &RXFGMASK

0x48 - Legacy Rx FIFO Global Mask Register

source

pub fn rxfir(&self) -> &RXFIR

0x4c - Legacy Rx FIFO Information Register

source

pub fn cbt(&self) -> &CBT

0x50 - CAN Bit Timing Register

source

pub fn mb(&self, n: usize) -> &MB

0x80..0x280 - Cluster MB%s, containing CS?,CS??, ID?,ID??, WORD0?,WORD0??, WORD1?,WORD1??

source

pub fn mb_iter(&self) -> impl Iterator<Item = &MB>

Iterator for array of: 0x80..0x280 - Cluster MB%s, containing CS?,CS??, ID?,ID??, WORD0?,WORD0??, WORD1?,WORD1??

source

pub fn rximr(&self, n: usize) -> &RXIMR

0x880..0x900 - Rx Individual Mask Registers

source

pub fn rximr_iter(&self) -> impl Iterator<Item = &RXIMR>

Iterator for array of: 0x880..0x900 - Rx Individual Mask Registers

source

pub fn ctrl1_pn(&self) -> &CTRL1_PN

0xb00 - Pretended Networking Control 1 Register

source

pub fn ctrl2_pn(&self) -> &CTRL2_PN

0xb04 - Pretended Networking Control 2 Register

source

pub fn wu_mtc(&self) -> &WU_MTC

0xb08 - Pretended Networking Wake Up Match Register

source

pub fn flt_id1(&self) -> &FLT_ID1

0xb0c - Pretended Networking ID Filter 1 Register

source

pub fn flt_dlc(&self) -> &FLT_DLC

0xb10 - Pretended Networking DLC Filter Register

source

pub fn pl1_lo(&self) -> &PL1_LO

0xb14 - Pretended Networking Payload Low Filter 1 Register

source

pub fn pl1_hi(&self) -> &PL1_HI

0xb18 - Pretended Networking Payload High Filter 1 Register

source

pub fn flt_id2_idmask(&self) -> &FLT_ID2_IDMASK

0xb1c - Pretended Networking ID Filter 2 Register / ID Mask Register

source

pub fn pl2_plmask_lo(&self) -> &PL2_PLMASK_LO

0xb20 - Pretended Networking Payload Low Filter 2 Register / Payload Low Mask register

source

pub fn pl2_plmask_hi(&self) -> &PL2_PLMASK_HI

0xb24 - Pretended Networking Payload High Filter 2 low order bits / Payload High Mask register

source

pub fn wmb(&self, n: usize) -> &WMB

0xb40..0xb80 - no description available

source

pub fn wmb_iter(&self) -> impl Iterator<Item = &WMB>

Iterator for array of: 0xb40..0xb80 - no description available

source

pub fn eprs(&self) -> &EPRS

0xbf0 - Enhanced CAN Bit Timing Prescalers

source

pub fn encbt(&self) -> &ENCBT

0xbf4 - Enhanced Nominal CAN Bit Timing

source

pub fn edcbt(&self) -> &EDCBT

0xbf8 - Enhanced Data Phase CAN bit Timing

source

pub fn etdc(&self) -> &ETDC

0xbfc - Enhanced Transceiver Delay Compensation

source

pub fn fdctrl(&self) -> &FDCTRL

0xc00 - CAN FD Control Register

source

pub fn fdcbt(&self) -> &FDCBT

0xc04 - CAN FD Bit Timing Register

source

pub fn fdcrc(&self) -> &FDCRC

0xc08 - CAN FD CRC Register

source

pub fn erfcr(&self) -> &ERFCR

0xc0c - Enhanced Rx FIFO Control Register

source

pub fn erfier(&self) -> &ERFIER

0xc10 - Enhanced Rx FIFO Interrupt Enable Register

source

pub fn erfsr(&self) -> &ERFSR

0xc14 - Enhanced Rx FIFO Status Register

source

pub fn erffel(&self, n: usize) -> &ERFFEL

0x3000..0x3080 - Enhanced Rx FIFO Filter Element

source

pub fn erffel_iter(&self) -> impl Iterator<Item = &ERFFEL>

Iterator for array of: 0x3000..0x3080 - Enhanced Rx FIFO Filter Element

Trait Implementations§

source§

impl Debug for CAN0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for CAN0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for CAN0

Auto Trait Implementations§

§

impl RefUnwindSafe for CAN0

§

impl !Sync for CAN0

§

impl Unpin for CAN0

§

impl UnwindSafe for CAN0

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.