Struct zinc_hal_lpc11xx::ioregs::I2C_conset
[−]
[src]
pub struct I2C_conset {
// some fields omitted
}Register CONSET: I2C Control Set Register. When a one is written to a bit of this register, the corresponding bit in the I2C control register is set. Writing a zero has no effect on the corresponding bit in the I2C control register.
Methods
impl I2C_conset
fn get(&self) -> I2C_conset_Get
Fetch the value of the CONSET register.
fn aa(&self) -> bool
Get value of AA field.
fn si(&self) -> bool
Get value of SI field.
fn sto(&self) -> bool
Get value of STO field.
fn sta(&self) -> bool
Get value of STA field.
fn i2en(&self) -> bool
Get value of I2EN field.
fn ignoring_state(&self) -> I2C_conset_Update
Create new updater that ignores current value of the CONSET register.
fn set_aa<'a>(&'a mut self, new_value: bool) -> I2C_conset_Update<'a>
Set value of AA field.
fn set_si<'a>(&'a mut self, new_value: bool) -> I2C_conset_Update<'a>
Set value of SI field.
fn set_sto<'a>(&'a mut self, new_value: bool) -> I2C_conset_Update<'a>
Set value of STO field.
fn set_sta<'a>(&'a mut self, new_value: bool) -> I2C_conset_Update<'a>
Set value of STA field.
fn set_i2en<'a>(&'a mut self, new_value: bool) -> I2C_conset_Update<'a>
Set value of I2EN field.