stm32-metapac

Crates

git

Versions

stm32g474ce

Flavors

Struct stm32_metapac::can::Fdcan

pub struct Fdcan { /* private fields */ }
Expand description

Controller area network with flexible data rate (FD)

Implementations§

§

impl Fdcan

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

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

pub const fn crel(self) -> Reg<Crel, RW>

FDCAN core release register

pub const fn endn(self) -> Reg<Endn, RW>

FDCAN endian register

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

FDCAN data bit timing and prescaler register

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

FDCAN test register

pub const fn rwd(self) -> Reg<Rwd, RW>

FDCAN RAM watchdog register

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

FDCAN CC control register

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

FDCAN nominal bit timing and prescaler register

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

FDCAN timestamp counter configuration register

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

FDCAN timestamp counter value register

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

FDCAN timeout counter configuration register

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

FDCAN timeout counter value register

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

FDCAN error counter register

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

FDCAN protocol status register

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

FDCAN transmitter delay compensation register

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

FDCAN interrupt register

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

FDCAN interrupt enable register

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

FDCAN interrupt line select register

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

FDCAN interrupt line enable register

pub const fn rxgfc(self) -> Reg<Rxgfc, RW>

FDCAN global filter configuration register

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

FDCAN extended ID and mask register

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

FDCAN high-priority message status register

pub const fn rxfs(self, n: usize) -> Reg<Rxfs, RW>

FDCAN Rx FIFO X status register

pub const fn rxfa(self, n: usize) -> Reg<Rxfa, RW>

CAN Rx FIFO X acknowledge register

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

FDCAN Tx buffer configuration register

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

FDCAN Tx FIFO/queue status register

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

FDCAN Tx buffer request pending register

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

FDCAN Tx buffer add request register

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

FDCAN Tx buffer cancellation request register

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

FDCAN Tx buffer transmission occurred register

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

FDCAN Tx buffer cancellation finished register

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

FDCAN Tx buffer transmission interrupt enable register

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

FDCAN Tx buffer cancellation finished interrupt enable register

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

FDCAN Tx event FIFO status register

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

FDCAN Tx event FIFO acknowledge register

pub const fn ckdiv(self) -> Reg<Ckdiv, RW>

FDCAN CFG clock divider register

Trait Implementations§

§

impl Clone for Fdcan

§

fn clone(&self) -> Fdcan

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl PartialEq for Fdcan

§

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

impl Copy for Fdcan

§

impl Eq for Fdcan

§

impl Send for Fdcan

§

impl StructuralPartialEq for Fdcan

§

impl Sync for Fdcan

Auto Trait Implementations§

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, dst: *mut T)

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