Struct zinc_hal_lpc11xx::ioregs::I2C_adr0 [] [src]

pub struct I2C_adr0 {
    // some fields omitted
}

Register 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

fn get(&self) -> I2C_adr0_Get

Fetch the value of the ADR0 register.

fn gc(&self) -> bool

Get value of GC field.

fn address(&self) -> u32

Get value of Address field.

fn ignoring_state(&self) -> I2C_adr0_Update

Create new updater that ignores current value of the ADR0 register.

fn set_gc<'a>(&'a mut self, new_value: bool) -> I2C_adr0_Update<'a>

Set value of GC field.

fn set_address<'a>(&'a mut self, new_value: u32) -> I2C_adr0_Update<'a>

Set value of Address field.

Trait Implementations

impl Copy for I2C_adr0

Derived Implementations

impl Clone for I2C_adr0

fn clone(&self) -> I2C_adr0

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