Type Alias atsamd51p::sercom0::i2cs::status::W

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

Register STATUS writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn buserr(&mut self) -> BUSERR_W<'_, STATUS_SPEC, 0>

Bit 0 - Bus Error

source

pub fn coll(&mut self) -> COLL_W<'_, STATUS_SPEC, 1>

Bit 1 - Transmit Collision

source

pub fn rxnack(&mut self) -> RXNACK_W<'_, STATUS_SPEC, 2>

Bit 2 - Received Not Acknowledge

source

pub fn dir(&mut self) -> DIR_W<'_, STATUS_SPEC, 3>

Bit 3 - Read/Write Direction

source

pub fn sr(&mut self) -> SR_W<'_, STATUS_SPEC, 4>

Bit 4 - Repeated Start

source

pub fn lowtout(&mut self) -> LOWTOUT_W<'_, STATUS_SPEC, 6>

Bit 6 - SCL Low Timeout

source

pub fn clkhold(&mut self) -> CLKHOLD_W<'_, STATUS_SPEC, 7>

Bit 7 - Clock Hold

source

pub fn sexttout(&mut self) -> SEXTTOUT_W<'_, STATUS_SPEC, 9>

Bit 9 - Slave SCL Low Extend Timeout

source

pub fn hs(&mut self) -> HS_W<'_, STATUS_SPEC, 10>

Bit 10 - High Speed

source

pub fn lenerr(&mut self) -> LENERR_W<'_, STATUS_SPEC, 11>

Bit 11 - Transaction Length Error

source

pub unsafe fn bits(&mut self, bits: u16) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual