Type Alias atsame54n::sercom0::i2cm::ctrlb::W

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

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn smen(&mut self) -> SMEN_W<'_, CTRLB_SPEC, 8>

Bit 8 - Smart Mode Enable

source

pub fn qcen(&mut self) -> QCEN_W<'_, CTRLB_SPEC, 9>

Bit 9 - Quick Command Enable

source

pub fn cmd(&mut self) -> CMD_W<'_, CTRLB_SPEC, 16>

Bits 16:17 - Command

source

pub fn ackact(&mut self) -> ACKACT_W<'_, CTRLB_SPEC, 18>

Bit 18 - Acknowledge Action

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