Struct zinc_hal_lpc11xx::ioregs::I2C_adr1 [] [src]

pub struct I2C_adr1 {
    // some fields omitted
}

Register 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

fn get(&self) -> I2C_adr1_Get

Fetch the value of the ADR1 register.

fn gc(&self) -> bool

Get value of GC field.

fn address(&self) -> u32

Get value of Address field.

fn ignoring_state(&self) -> I2C_adr1_Update

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

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

Set value of GC field.

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

Set value of Address field.

Trait Implementations

impl Copy for I2C_adr1

Derived Implementations

impl Clone for I2C_adr1

fn clone(&self) -> I2C_adr1

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