Struct zinc_hal_lpc11xx::ioregs::I2C_adr3_Get [] [src]

pub struct I2C_adr3_Get {
    // some fields omitted
}

ADR3: 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_adr3_Get

fn new(reg: &I2C_adr3) -> I2C_adr3_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.

Trait Implementations

impl Copy for I2C_adr3_Get

Derived Implementations

impl Clone for I2C_adr3_Get

fn clone(&self) -> I2C_adr3_Get

fn clone_from(&mut self, source: &Self)