Type Alias R

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

Register sub_address reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn byte(&self, n: u8) -> BYTE_R

I2C sub-address byte (0-3)

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

Source

pub fn byte_iter(&self) -> impl Iterator<Item = BYTE_R> + '_

Iterator for array of: I2C sub-address byte (0-3)

Source

pub fn byte0(&self) -> BYTE_R

Bits 0:7 - I2C sub-address byte 0

Source

pub fn byte1(&self) -> BYTE_R

Bits 8:15 - I2C sub-address byte 1

Source

pub fn byte2(&self) -> BYTE_R

Bits 16:23 - I2C sub-address byte 2

Source

pub fn byte3(&self) -> BYTE_R

Bits 24:31 - I2C sub-address byte 3