Struct hpm5361_pac::MCAN0

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

MCAN0

Implementations§

source§

impl MCAN0

source

pub const PTR: *const RegisterBlock = {0xf0280000 as *const mcan0::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 endn(&self) -> &ENDN

0x04 - endian register

source

pub fn dbtp(&self) -> &DBTP

0x0c - data bit timing and prescaler, writeable when CCCR.CCE and CCCR.INT are set

source

pub fn test(&self) -> &TEST

0x10 - test register

source

pub fn rwd(&self) -> &RWD

0x14 - ram watchdog

source

pub fn cccr(&self) -> &CCCR

0x18 - CC control register

source

pub fn nbtp(&self) -> &NBTP

0x1c - nominal bit timing and prescaler register

source

pub fn tscc(&self) -> &TSCC

0x20 - timestamp counter configuration

source

pub fn tscv(&self) -> &TSCV

0x24 - timestamp counter value

source

pub fn tocc(&self) -> &TOCC

0x28 - timeout counter configuration

source

pub fn tocv(&self) -> &TOCV

0x2c - timeout counter value

source

pub fn ecr(&self) -> &ECR

0x40 - error counter register

source

pub fn psr(&self) -> &PSR

0x44 - protocol status register

source

pub fn tdcr(&self) -> &TDCR

0x48 - transmitter delay compensation

source

pub fn ir(&self) -> &IR

0x50 - interrupt register

source

pub fn ie(&self) -> &IE

0x54 - interrupt enable

source

pub fn ils(&self) -> &ILS

0x58 - interrupt line select

source

pub fn ile(&self) -> &ILE

0x5c - interrupt line enable

source

pub fn gfc(&self) -> &GFC

0x80 - global filter configuration

source

pub fn sidfc(&self) -> &SIDFC

0x84 - standard ID filter configuration

source

pub fn xidfc(&self) -> &XIDFC

0x88 - extended ID filter configuration

source

pub fn xidam(&self) -> &XIDAM

0x90 - extended id and mask

source

pub fn hpms(&self) -> &HPMS

0x94 - high priority message status

source

pub fn ndat1(&self) -> &NDAT1

0x98 - new data1

source

pub fn ndat2(&self) -> &NDAT2

0x9c - new data2

source

pub fn rxf0c(&self) -> &RXF0C

0xa0 - rx fifo 0 configuration

source

pub fn rxf0s(&self) -> &RXF0S

0xa4 - rx fifo 0 status

source

pub fn rxf0a(&self) -> &RXF0A

0xa8 - rx fifo0 acknowledge

source

pub fn rxbc(&self) -> &RXBC

0xac - rx buffer configuration

source

pub fn rxf1c(&self) -> &RXF1C

0xb0 - rx fifo1 configuration

source

pub fn rxf1s(&self) -> &RXF1S

0xb4 - rx fifo1 status

source

pub fn rxf1a(&self) -> &RXF1A

0xb8 - rx fifo 1 acknowledge

source

pub fn rxesc(&self) -> &RXESC

0xbc - rx buffer/fifo element size configuration

source

pub fn txbc(&self) -> &TXBC

0xc0 - tx buffer configuration

source

pub fn txfqs(&self) -> &TXFQS

0xc4 - tx fifo/queue status

source

pub fn txesc(&self) -> &TXESC

0xc8 - tx buffer element size configuration

source

pub fn txbrp(&self) -> &TXBRP

0xcc - tx buffer request pending

source

pub fn txbar(&self) -> &TXBAR

0xd0 - tx buffer add request

source

pub fn txbcr(&self) -> &TXBCR

0xd4 - tx buffer cancellation request

source

pub fn txbto(&self) -> &TXBTO

0xd8 - tx buffer transmission occurred

source

pub fn txbcf(&self) -> &TXBCF

0xdc - tx buffer cancellation finished

source

pub fn txbtie(&self) -> &TXBTIE

0xe0 - tx buffer transmission interrupt enable

source

pub fn txbcie(&self) -> &TXBCIE

0xe4 - tx buffer cancellation finished interrupt enable

source

pub fn txefc(&self) -> &TXEFC

0xf0 - tx event fifo configuration

source

pub fn txefs(&self) -> &TXEFS

0xf4 - tx event fifo status

source

pub fn txefa(&self) -> &TXEFA

0xf8 - tx event fifo acknowledge

source

pub fn ts_sel(&self, n: usize) -> &TS_SEL

0x200..0x240 - no description available

source

pub fn ts_sel_iter(&self) -> impl Iterator<Item = &TS_SEL>

Iterator for array of: 0x200..0x240 - no description available

source

pub fn ts_selts_sel0(&self) -> &TS_SEL

0x200 - no description available

source

pub fn ts_selts_sel1(&self) -> &TS_SEL

0x204 - no description available

source

pub fn ts_selts_sel2(&self) -> &TS_SEL

0x208 - no description available

source

pub fn ts_selts_sel3(&self) -> &TS_SEL

0x20c - no description available

source

pub fn ts_selts_sel4(&self) -> &TS_SEL

0x210 - no description available

source

pub fn ts_selts_sel5(&self) -> &TS_SEL

0x214 - no description available

source

pub fn ts_selts_sel6(&self) -> &TS_SEL

0x218 - no description available

source

pub fn ts_selts_sel7(&self) -> &TS_SEL

0x21c - no description available

source

pub fn ts_selts_sel8(&self) -> &TS_SEL

0x220 - no description available

source

pub fn ts_selts_sel9(&self) -> &TS_SEL

0x224 - no description available

source

pub fn ts_selts_sel10(&self) -> &TS_SEL

0x228 - no description available

source

pub fn ts_selts_sel11(&self) -> &TS_SEL

0x22c - no description available

source

pub fn ts_selts_sel12(&self) -> &TS_SEL

0x230 - no description available

source

pub fn ts_selts_sel13(&self) -> &TS_SEL

0x234 - no description available

source

pub fn ts_selts_sel14(&self) -> &TS_SEL

0x238 - no description available

source

pub fn ts_selts_sel15(&self) -> &TS_SEL

0x23c - no description available

source

pub fn crel(&self) -> &CREL

0x240 - core release register

source

pub fn tscfg(&self) -> &TSCFG

0x244 - timestamp configuration

source

pub fn tss1(&self) -> &TSS1

0x248 - timestamp status1

source

pub fn tss2(&self) -> &TSS2

0x24c - timestamp status2

source

pub fn atb(&self) -> &ATB

0x250 - actual timebase

source

pub fn atbh(&self) -> &ATBH

0x254 - actual timebase high

source

pub fn glb_ctl(&self) -> &GLB_CTL

0x400 - global control

source

pub fn glb_status(&self) -> &GLB_STATUS

0x404 - global status

Trait Implementations§

source§

impl Debug for MCAN0

source§

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

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

impl Deref for MCAN0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for MCAN0

Auto Trait Implementations§

§

impl RefUnwindSafe for MCAN0

§

impl !Sync for MCAN0

§

impl Unpin for MCAN0

§

impl UnwindSafe for MCAN0

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.