Type Alias atsame54n::can0::psr::R

source ·
pub type R = R<PSR_SPEC>;
Expand description

Register PSR reader

Aliased Type§

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 Status

source

pub fn bo(&self) -> BO_R

Bit 7 - Bus_Off Status

source

pub fn dlec(&self) -> DLEC_R

Bits 8:10 - Data Phase Last Error Code

source

pub fn resi(&self) -> RESI_R

Bit 11 - ESI flag of last received CAN FD Message

source

pub fn rbrs(&self) -> RBRS_R

Bit 12 - BRS flag of last received CAN FD Message

source

pub fn rfdf(&self) -> RFDF_R

Bit 13 - Received a CAN FD 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