Struct zinc_hal_lpc11xx::ioregs::I2C_adr1_Get
[−]
[src]
pub struct I2C_adr1_Get { // some fields omitted }
ADR1
: 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_adr1_Get
fn new(reg: &I2C_adr1) -> I2C_adr1_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.