pub type W = W<SUB_ADDRESS_SPEC>;
Expand description
Register sub_address
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
Source§impl W
impl W
Sourcepub fn byte(&mut self, n: u8) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
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
Sourcepub fn byte0(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
pub fn byte0(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
Bits 0:7 - I2C sub-address byte 0
Sourcepub fn byte1(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
pub fn byte1(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
Bits 8:15 - I2C sub-address byte 1
Sourcepub fn byte2(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
pub fn byte2(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
Bits 16:23 - I2C sub-address byte 2
Sourcepub fn byte3(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
pub fn byte3(&mut self) -> BYTE_W<'_, SUB_ADDRESS_SPEC>
Bits 24:31 - I2C sub-address byte 3