nxp-pac

Crates

git

Versions

mimxrt1062

Flavors

Can

Struct Can 

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

FLEXCAN

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 Register

Source

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

Control 1 Register

Source

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

Free Running Timer Register

Source

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

Rx Mailboxes Global Mask Register

Source

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

Rx Buffer 14 Mask Register

Source

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

Rx Buffer 15 Mask Register

Source

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

Error Counter Register

Source

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

Error and Status 1 Register

Source

pub const fn imask2(self) -> Reg<Imask2, RW>

Interrupt Masks 2 Register

Source

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

Interrupt Masks 1 Register

Source

pub const fn iflag2(self) -> Reg<Iflag2, RW>

Interrupt Flags 2 Register

Source

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

Interrupt Flags 1 Register

Source

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

Control 2 Register

Source

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

Error and Status 2 Register

Source

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

CRC Register

Source

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

Rx FIFO Global Mask Register

Source

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

Rx FIFO Information Register

Source

pub const fn dbg1(self) -> Reg<Dbg1, R>

Debug 1 register

Source

pub const fn dbg2(self) -> Reg<Dbg2, R>

Debug 2 register

Source

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

Rx Individual Mask Registers

Source

pub const fn gfwr(self) -> Reg<Gfwr, RW>

Glitch Filter Width Registers

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.