Type Alias atsame54n::sercom0::i2cm::ctrla::W

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

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>

Bit 0 - Software Reset

source

pub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>

Bit 1 - Enable

source

pub fn mode(&mut self) -> MODE_W<'_, CTRLA_SPEC, 2>

Bits 2:4 - Operating Mode

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, CTRLA_SPEC, 7>

Bit 7 - Run in Standby

source

pub fn pinout(&mut self) -> PINOUT_W<'_, CTRLA_SPEC, 16>

Bit 16 - Pin Usage

source

pub fn sdahold(&mut self) -> SDAHOLD_W<'_, CTRLA_SPEC, 20>

Bits 20:21 - SDA Hold Time

source

pub fn mexttoen(&mut self) -> MEXTTOEN_W<'_, CTRLA_SPEC, 22>

Bit 22 - Master SCL Low Extend Timeout

source

pub fn sexttoen(&mut self) -> SEXTTOEN_W<'_, CTRLA_SPEC, 23>

Bit 23 - Slave SCL Low Extend Timeout

source

pub fn speed(&mut self) -> SPEED_W<'_, CTRLA_SPEC, 24>

Bits 24:25 - Transfer Speed

source

pub fn sclsm(&mut self) -> SCLSM_W<'_, CTRLA_SPEC, 27>

Bit 27 - SCL Clock Stretch Mode

source

pub fn inactout(&mut self) -> INACTOUT_W<'_, CTRLA_SPEC, 28>

Bits 28:29 - Inactive Time-Out

source

pub fn lowtouten(&mut self) -> LOWTOUTEN_W<'_, CTRLA_SPEC, 30>

Bit 30 - SCL Low Timeout Enable

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