Type Alias atsame54n::can0::test::W

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

Register TEST writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn lbck(&mut self) -> LBCK_W<'_, TEST_SPEC, 4>

Bit 4 - Loop Back Mode

source

pub fn tx(&mut self) -> TX_W<'_, TEST_SPEC, 5>

Bits 5:6 - Control of Transmit Pin

source

pub fn rx(&mut self) -> RX_W<'_, TEST_SPEC, 7>

Bit 7 - Receive Pin

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