Type Alias atsame54n::sercom0::i2cm::addr::W

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

Register ADDR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn addr(&mut self) -> ADDR_W<'_, ADDR_SPEC, 0>

Bits 0:10 - Address Value

source

pub fn lenen(&mut self) -> LENEN_W<'_, ADDR_SPEC, 13>

Bit 13 - Length Enable

source

pub fn hs(&mut self) -> HS_W<'_, ADDR_SPEC, 14>

Bit 14 - High Speed Mode

source

pub fn tenbiten(&mut self) -> TENBITEN_W<'_, ADDR_SPEC, 15>

Bit 15 - Ten Bit Addressing Enable

source

pub fn len(&mut self) -> LEN_W<'_, ADDR_SPEC, 16>

Bits 16:23 - Length

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