Type Alias atsame54n::sercom0::i2cm::intflag::W

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

Register INTFLAG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn mb(&mut self) -> MB_W<'_, INTFLAG_SPEC, 0>

Bit 0 - Master On Bus Interrupt

source

pub fn sb(&mut self) -> SB_W<'_, INTFLAG_SPEC, 1>

Bit 1 - Slave On Bus Interrupt

source

pub fn error(&mut self) -> ERROR_W<'_, INTFLAG_SPEC, 7>

Bit 7 - Combined Error Interrupt

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual