Struct zinc_hal_lpc11xx::ioregs::I2C_adr0_Get
[−]
[src]
pub struct I2C_adr0_Get { // some fields omitted }
ADR0
: I2C Slave Address Register 0. 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_adr0_Get
fn new(reg: &I2C_adr0) -> I2C_adr0_Get
Create a getter reflecting the current value of the given register.
fn raw(&self) -> u32
Get the raw value of the register.
fn gc(&self) -> bool
Get value of GC
field: General Call enable bit.
fn address(&self) -> u32
Get value of Address
field: The I2C device address for slave mode.