nxp-pac

Crates

git

Versions

lpc55s16

Flavors

Can0

Struct Can0 

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

Controller Area Network Flexible Data (CAN FD)

Implementations§

Source§

impl Can0

Source

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

Source

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

Source

pub const fn dbtp(self) -> Reg<Dbtp, RW>

Data Bit Timing Prescaler Register

Source

pub const fn test(self) -> Reg<Test, RW>

Test Register

Source

pub const fn cccr(self) -> Reg<Cccr, RW>

CC Control Register

Source

pub const fn nbtp(self) -> Reg<Nbtp, RW>

Nominal Bit Timing and Prescaler Register

Source

pub const fn tscc(self) -> Reg<Tscc, RW>

Timestamp Counter Configuration

Source

pub const fn tscv(self) -> Reg<Tscv, RW>

Timestamp Counter Value

Source

pub const fn tocc(self) -> Reg<Tocc, RW>

Timeout Counter Configuration

Source

pub const fn tocv(self) -> Reg<Tocv, R>

Timeout Counter Value

Source

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

Error Counter Register

Source

pub const fn psr(self) -> Reg<Psr, R>

Protocol Status Register

Source

pub const fn tdcr(self) -> Reg<Tdcr, RW>

Transmitter Delay Compensator Register

Source

pub const fn ir(self) -> Reg<Ir, RW>

Interrupt Register

Source

pub const fn ie(self) -> Reg<Ie, RW>

Interrupt Enable

Source

pub const fn ils(self) -> Reg<Ils, RW>

Interrupt Line Select

Source

pub const fn ile(self) -> Reg<Ile, RW>

Interrupt Line Enable

Source

pub const fn gfc(self) -> Reg<Gfc, RW>

Global Filter Configuration

Source

pub const fn sidfc(self) -> Reg<Sidfc, RW>

Standard ID Filter Configuration

Source

pub const fn xidfc(self) -> Reg<Xidfc, RW>

Extended ID Filter Configuration

Source

pub const fn xidam(self) -> Reg<Xidam, RW>

Extended ID AND Mask

Source

pub const fn hpms(self) -> Reg<Hpms, R>

High Priority Message Status

Source

pub const fn ndat1(self) -> Reg<Ndat1, RW>

New Data 1

Source

pub const fn ndat2(self) -> Reg<Ndat2, RW>

New Data 2

Source

pub const fn rxf0c(self) -> Reg<Rxf0c, RW>

Rx FIFO 0 Configuration

Source

pub const fn rxf0s(self) -> Reg<Rxf0s, RW>

Rx FIFO 0 Status

Source

pub const fn rxf0a(self) -> Reg<Rxf0a, RW>

Rx FIFO 0 Acknowledge

Source

pub const fn rxbc(self) -> Reg<Rxbc, RW>

Rx Buffer Configuration

Source

pub const fn rxf1c(self) -> Reg<Rxf1c, RW>

Rx FIFO 1 Configuration

Source

pub const fn rxf1s(self) -> Reg<Rxf1s, R>

Rx FIFO 1 Status

Source

pub const fn rxf1a(self) -> Reg<Rxf1a, RW>

Rx FIFO 1 Acknowledge

Source

pub const fn rxesc(self) -> Reg<Rxesc, RW>

Rx Buffer and FIFO Element Size Configuration

Source

pub const fn txbc(self) -> Reg<Txbc, RW>

Tx Buffer Configuration

Source

pub const fn txfqs(self) -> Reg<Txfqs, RW>

Tx FIFO/Queue Status

Source

pub const fn txesc(self) -> Reg<Txesc, RW>

Tx Buffer Element Size Configuration

Source

pub const fn txbrp(self) -> Reg<Txbrp, R>

Tx Buffer Request Pending

Source

pub const fn txbar(self) -> Reg<Txbar, RW>

Tx Buffer Add Request

Source

pub const fn txbcr(self) -> Reg<Txbcr, RW>

Tx Buffer Cancellation Request

Source

pub const fn txbto(self) -> Reg<Txbto, R>

Tx Buffer Transmission Occurred

Source

pub const fn txbcf(self) -> Reg<Txbcf, R>

Tx Buffer Cancellation Finished

Source

pub const fn txbtie(self) -> Reg<Txbtie, RW>

Tx Buffer Transmission Interrupt Enable

Source

pub const fn txbcie(self) -> Reg<Txbcie, RW>

Tx Buffer Cancellation Finished Interrupt Enable

Source

pub const fn txefc(self) -> Reg<Txefc, RW>

Tx Event FIFO Configuration

Source

pub const fn txefs(self) -> Reg<Txefs, R>

Tx Event FIFO Status

Source

pub const fn txefa(self) -> Reg<Txefa, RW>

Tx Event FIFO Acknowledge

Source

pub const fn mrba(self) -> Reg<Mrba, RW>

CAN Message RAM Base Address

Source

pub const fn etscc(self) -> Reg<Etscc, RW>

External Timestamp Counter Configuration

Source

pub const fn etscv(self) -> Reg<Etscv, RW>

External Timestamp Counter Value

Trait Implementations§

Source§

impl Clone for Can0

Source§

fn clone(&self) -> Can0

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 Can0

Source§

fn eq(&self, other: &Can0) -> 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 Can0

Source§

impl Eq for Can0

Source§

impl Send for Can0

Source§

impl StructuralPartialEq for Can0

Source§

impl Sync for Can0

Auto Trait Implementations§

§

impl Freeze for Can0

§

impl RefUnwindSafe 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> 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.