Type Alias W

Source
pub type W = W<SUB_ADDRESS_SPEC>;
Expand description

Register sub_address writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn byte(&mut self, n: u8) -> BYTE_W<'_, SUB_ADDRESS_SPEC>

I2C sub-address byte (0-3)

NOTE: n is number of field in register. n == 0 corresponds to byte0 field

Source

pub fn byte0(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>

Bits 0:7 - I2C sub-address byte 0

Source

pub fn byte1(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>

Bits 8:15 - I2C sub-address byte 1

Source

pub fn byte2(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>

Bits 16:23 - I2C sub-address byte 2

Source

pub fn byte3(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>

Bits 24:31 - I2C sub-address byte 3

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