Type Alias atsame54n::sercom0::i2cs::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 gcmd(&mut self) -> GCMD_W<'_, CTRLB_SPEC, 9>

Bit 9 - PMBus Group Command

source

pub fn aacken(&mut self) -> AACKEN_W<'_, CTRLB_SPEC, 10>

Bit 10 - Automatic Address Acknowledge

source

pub fn amode(&mut self) -> AMODE_W<'_, CTRLB_SPEC, 14>

Bits 14:15 - Address Mode

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