Struct zinc_hal_lpc11xx::ioregs::I2C_conset_Update
[−]
[src]
pub struct I2C_conset_Update<'a> {
// some fields omitted
}Updater for CONSET register.
Methods
impl<'a> I2C_conset_Update<'a>
fn new(reg: &'a I2C_conset) -> I2C_conset_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a I2C_conset) -> I2C_conset_Update<'a>
Create a new updater that ignores current state.
fn set_aa<'b>(&'b mut self, new_value: bool) -> &'b mut I2C_conset_Update<'a>
Set value of AA field.
fn set_si<'b>(&'b mut self, new_value: bool) -> &'b mut I2C_conset_Update<'a>
Set value of SI field.
fn set_sto<'b>(&'b mut self, new_value: bool) -> &'b mut I2C_conset_Update<'a>
Set value of STO field.
fn set_sta<'b>(&'b mut self, new_value: bool) -> &'b mut I2C_conset_Update<'a>
Set value of STA field.
fn set_i2en<'b>(&'b mut self, new_value: bool) -> &'b mut I2C_conset_Update<'a>
Set value of I2EN field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for I2C_conset_Update<'a>
This performs the register update.