Type Alias R

Source
pub type R = R<PSRrs>;
Expand description

Register PSR reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn lec(&self) -> LEC_R

Bits 0:2 - Last error code

Source

pub fn act(&self) -> ACT_R

Bits 3:4 - Activity

Source

pub fn ep(&self) -> EP_R

Bit 5 - Error passive

Source

pub fn ew(&self) -> EW_R

Bit 6 - Warning Sstatus

Source

pub fn bo(&self) -> BO_R

Bit 7 - Bus_Off status

Source

pub fn dlec(&self) -> DLEC_R

Bits 8:10 - Data last error code

Source

pub fn resi(&self) -> RESI_R

Bit 11 - ESI flag of last received FDCAN message

Source

pub fn rbrs(&self) -> RBRS_R

Bit 12 - BRS flag of last received FDCAN message

Source

pub fn redl(&self) -> REDL_R

Bit 13 - Received FDCAN message

Source

pub fn pxe(&self) -> PXE_R

Bit 14 - Protocol exception event

Source

pub fn tdcv(&self) -> TDCV_R

Bits 16:22 - Transmitter delay compensation value

Trait Implementations§

Source§

impl Debug for R

Source§

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

Formats the value using the given formatter. Read more