Struct zinc_hal_lpc11xx::ioregs::I2C_mmctrl_Update [] [src]

pub struct I2C_mmctrl_Update<'a> {
    // some fields omitted
}

Updater for MMCTRL register.

Methods

impl<'a> I2C_mmctrl_Update<'a>

fn new(reg: &'a I2C_mmctrl) -> I2C_mmctrl_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a I2C_mmctrl) -> I2C_mmctrl_Update<'a>

Create a new updater that ignores current state.

fn set_mm_ena<'b>(&'b mut self, new_value: I2C_mmctrl_mm_ena) -> &'b mut I2C_mmctrl_Update<'a>

Set value of MM_ENA field.

fn set_ena_scl<'b>(&'b mut self, new_value: I2C_mmctrl_ena_scl) -> &'b mut I2C_mmctrl_Update<'a>

Set value of ENA_SCL field.

fn set_match_all<'b>(&'b mut self, new_value: I2C_mmctrl_match_all) -> &'b mut I2C_mmctrl_Update<'a>

Set value of MATCH_ALL field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for I2C_mmctrl_Update<'a>

This performs the register update.

fn drop(&mut self)