nxp-pac

Crates

git

Versions

mcxa256

Flavors

Can

Struct Can 

Source
pub struct Can { /* private fields */ }
Expand description

CAN

Implementations§

Source§

impl Can

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn mcr(self) -> Reg<Mcr, RW>

Module Configuration

Source

pub const fn ctrl1(self) -> Reg<Ctrl1, RW>

Control 1

Source

pub const fn timer(self) -> Reg<Timer, RW>

Free-Running Timer

Source

pub const fn rxmgmask(self) -> Reg<Rxmgmask, RW>

RX Message Buffers Global Mask

Source

pub const fn rx14mask(self) -> Reg<Rx14mask, RW>

Receive 14 Mask

Source

pub const fn rx15mask(self) -> Reg<Rx15mask, RW>

Receive 15 Mask

Source

pub const fn ecr(self) -> Reg<Ecr, RW>

Error Counter

Source

pub const fn esr1(self) -> Reg<Esr1, RW>

Error and Status 1

Source

pub const fn imask1(self) -> Reg<Imask1, RW>

Interrupt Masks 1

Source

pub const fn iflag1(self) -> Reg<Iflag1, RW>

Interrupt Flags 1

Source

pub const fn ctrl2(self) -> Reg<Ctrl2, RW>

Control 2

Source

pub const fn esr2(self) -> Reg<Esr2, R>

Error and Status 2

Source

pub const fn crcr(self) -> Reg<Crcr, R>

Cyclic Redundancy Check

Source

pub const fn rxfgmask(self) -> Reg<Rxfgmask, RW>

Legacy RX FIFO Global Mask

Source

pub const fn rxfir(self) -> Reg<Rxfir, R>

Legacy RX FIFO Information

Source

pub const fn cbt(self) -> Reg<Cbt, RW>

CAN Bit Timing

Source

pub const fn cs(self, n: usize) -> Reg<Cs, RW>

Message Buffer 0 CS Register

Source

pub const fn mb_16b_cs(self, n: usize) -> Reg<MbbCs, RW>

Message Buffer 0 CS Register

Source

pub const fn mb_32b_cs(self, n: usize) -> Reg<MbbCs, RW>

Message Buffer 0 CS Register

Source

pub const fn mb_64b_cs(self, n: usize) -> Reg<MbbCs, RW>

Message Buffer 0 CS Register

Source

pub const fn mb_8b_cs(self, n: usize) -> Reg<MbbCs, RW>

Message Buffer 0 CS Register

Source

pub const fn id(self, n: usize) -> Reg<Id, RW>

Message Buffer 0 ID Register

Source

pub const fn mb_16b_id(self, n: usize) -> Reg<MbbId, RW>

Message Buffer 0 ID Register

Source

pub const fn mb_32b_id(self, n: usize) -> Reg<MbbId, RW>

Message Buffer 0 ID Register

Source

pub const fn mb_64b_id(self, n: usize) -> Reg<MbbId, RW>

Message Buffer 0 ID Register

Source

pub const fn mb_8b_id(self, n: usize) -> Reg<MbbId, RW>

Message Buffer 0 ID Register

Source

pub const fn word0(self, n: usize) -> Reg<u32, RW>

Message Buffer 0 WORD0 Register

Source

pub const fn word1(self, n: usize) -> Reg<u32, RW>

Message Buffer 0 WORD1 Register

Source

pub const fn rximr(self, n: usize) -> Reg<Rximr, RW>

Receive Individual Mask

Source

pub const fn ctrl1_pn(self) -> Reg<Ctrl1Pn, RW>

Pretended Networking Control 1

Source

pub const fn ctrl2_pn(self) -> Reg<Ctrl2Pn, RW>

Pretended Networking Control 2

Source

pub const fn wu_mtc(self) -> Reg<WuMtc, RW>

Pretended Networking Wake-Up Match

Source

pub const fn flt_id1(self) -> Reg<FltId1, RW>

Pretended Networking ID Filter 1

Source

pub const fn flt_dlc(self) -> Reg<FltDlc, RW>

Pretended Networking Data Length Code (DLC) Filter

Source

pub const fn pl1_lo(self) -> Reg<Pl1Lo, RW>

Pretended Networking Payload Low Filter 1

Source

pub const fn pl1_hi(self) -> Reg<Pl1Hi, RW>

Pretended Networking Payload High Filter 1

Source

pub const fn flt_id2_idmask(self) -> Reg<FltId2Idmask, RW>

Pretended Networking ID Filter 2 or ID Mask

Source

pub const fn pl2_plmask_lo(self) -> Reg<Pl2PlmaskLo, RW>

Pretended Networking Payload Low Filter 2 and Payload Low Mask

Source

pub const fn pl2_plmask_hi(self) -> Reg<Pl2PlmaskHi, RW>

Pretended Networking Payload High Filter 2 and Payload High Mask

Source

pub const fn wmb(self, n: usize) -> Wmb

Array of registers: WMB_CS, WMB_D03, WMB_D47, WMB_ID

Source

pub const fn eprs(self) -> Reg<Eprs, RW>

Enhanced CAN Bit Timing Prescalers

Source

pub const fn encbt(self) -> Reg<Encbt, RW>

Enhanced Nominal CAN Bit Timing

Source

pub const fn edcbt(self) -> Reg<Edcbt, RW>

Enhanced Data Phase CAN Bit Timing

Source

pub const fn etdc(self) -> Reg<Etdc, RW>

Enhanced Transceiver Delay Compensation

Source

pub const fn fdctrl(self) -> Reg<Fdctrl, RW>

CAN FD Control

Source

pub const fn fdcbt(self) -> Reg<Fdcbt, RW>

CAN FD Bit Timing

Source

pub const fn fdcrc(self) -> Reg<Fdcrc, R>

CAN FD CRC

Source

pub const fn erfcr(self) -> Reg<Erfcr, RW>

Enhanced RX FIFO Control

Source

pub const fn erfier(self) -> Reg<Erfier, RW>

Enhanced RX FIFO Interrupt Enable

Source

pub const fn erfsr(self) -> Reg<Erfsr, RW>

Enhanced RX FIFO Status

Source

pub const fn erffel(self, n: usize) -> Reg<Erffel, RW>

Enhanced RX FIFO Filter Element

Trait Implementations§

Source§

impl Clone for Can

Source§

fn clone(&self) -> Can

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Can

Source§

fn eq(&self, other: &Can) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Can

Source§

impl Eq for Can

Source§

impl Send for Can

Source§

impl StructuralPartialEq for Can

Source§

impl Sync for Can

Auto Trait Implementations§

§

impl Freeze for Can

§

impl RefUnwindSafe for Can

§

impl Unpin for Can

§

impl UnwindSafe for Can

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.