Type Alias atsame54n::can0::tocc::W

source ·
pub type W = W<TOCC_SPEC>;
Expand description

Register TOCC writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn etoc(&mut self) -> ETOC_W<'_, TOCC_SPEC, 0>

Bit 0 - Enable Timeout Counter

source

pub fn tos(&mut self) -> TOS_W<'_, TOCC_SPEC, 1>

Bits 1:2 - Timeout Select

source

pub fn top(&mut self) -> TOP_W<'_, TOCC_SPEC, 16>

Bits 16:31 - Timeout Period

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual