Struct zinc_hal_lpc11xx::ioregs::I2C_adr2
[−]
[src]
pub struct I2C_adr2 { // some fields omitted }
Register ADR2
: I2C Slave Address Register 1. Contains the 7-bit slave address for operation of the I2C interface in slave mode, and is not used in master mode. The least significant bit determines whether a slave responds to the General Call address.
Methods
impl I2C_adr2
fn get(&self) -> I2C_adr2_Get
Fetch the value of the ADR2
register.
fn gc(&self) -> bool
Get value of GC
field.
fn address(&self) -> u32
Get value of Address
field.
fn ignoring_state(&self) -> I2C_adr2_Update
Create new updater that ignores current value of the ADR2
register.
fn set_gc<'a>(&'a mut self, new_value: bool) -> I2C_adr2_Update<'a>
Set value of GC
field.
fn set_address<'a>(&'a mut self, new_value: u32) -> I2C_adr2_Update<'a>
Set value of Address
field.