Struct atsame70n21b::mcan0::ir::W

source ·
pub struct W(/* private fields */);
Expand description

Register IR writer

Implementations§

source§

impl W

source

pub fn rf0n(&mut self) -> RF0N_W<'_, 0>

Bit 0 - Receive FIFO 0 New Message

source

pub fn rf0w(&mut self) -> RF0W_W<'_, 1>

Bit 1 - Receive FIFO 0 Watermark Reached

source

pub fn rf0f(&mut self) -> RF0F_W<'_, 2>

Bit 2 - Receive FIFO 0 Full

source

pub fn rf0l(&mut self) -> RF0L_W<'_, 3>

Bit 3 - Receive FIFO 0 Message Lost

source

pub fn rf1n(&mut self) -> RF1N_W<'_, 4>

Bit 4 - Receive FIFO 1 New Message

source

pub fn rf1w(&mut self) -> RF1W_W<'_, 5>

Bit 5 - Receive FIFO 1 Watermark Reached

source

pub fn rf1f(&mut self) -> RF1F_W<'_, 6>

Bit 6 - Receive FIFO 1 Full

source

pub fn rf1l(&mut self) -> RF1L_W<'_, 7>

Bit 7 - Receive FIFO 1 Message Lost

source

pub fn hpm(&mut self) -> HPM_W<'_, 8>

Bit 8 - High Priority Message

source

pub fn tc(&mut self) -> TC_W<'_, 9>

Bit 9 - Transmission Completed

source

pub fn tcf(&mut self) -> TCF_W<'_, 10>

Bit 10 - Transmission Cancellation Finished

source

pub fn tfe(&mut self) -> TFE_W<'_, 11>

Bit 11 - Tx FIFO Empty

source

pub fn tefn(&mut self) -> TEFN_W<'_, 12>

Bit 12 - Tx Event FIFO New Entry

source

pub fn tefw(&mut self) -> TEFW_W<'_, 13>

Bit 13 - Tx Event FIFO Watermark Reached

source

pub fn teff(&mut self) -> TEFF_W<'_, 14>

Bit 14 - Tx Event FIFO Full

source

pub fn tefl(&mut self) -> TEFL_W<'_, 15>

Bit 15 - Tx Event FIFO Element Lost

source

pub fn tsw(&mut self) -> TSW_W<'_, 16>

Bit 16 - Timestamp Wraparound

source

pub fn mraf(&mut self) -> MRAF_W<'_, 17>

Bit 17 - Message RAM Access Failure

source

pub fn too(&mut self) -> TOO_W<'_, 18>

Bit 18 - Timeout Occurred

source

pub fn drx(&mut self) -> DRX_W<'_, 19>

Bit 19 - Message stored to Dedicated Receive Buffer

source

pub fn elo(&mut self) -> ELO_W<'_, 22>

Bit 22 - Error Logging Overflow

source

pub fn ep(&mut self) -> EP_W<'_, 23>

Bit 23 - Error Passive

source

pub fn ew(&mut self) -> EW_W<'_, 24>

Bit 24 - Warning Status

source

pub fn bo(&mut self) -> BO_W<'_, 25>

Bit 25 - Bus_Off Status

source

pub fn wdi(&mut self) -> WDI_W<'_, 26>

Bit 26 - Watchdog Interrupt

source

pub fn pea(&mut self) -> PEA_W<'_, 27>

Bit 27 - Protocol Error in Arbitration Phase

source

pub fn ped(&mut self) -> PED_W<'_, 28>

Bit 28 - Protocol Error in Data Phase

source

pub fn ara(&mut self) -> ARA_W<'_, 29>

Bit 29 - Access to Reserved Address

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<IR_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<IR_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<IR_SPEC>> for W

source§

fn from(original: W<IR_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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.