Struct zinc_hal_lpc11xx::ioregs::PMU_pcon_Update [] [src]

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

Updater for PCON register.

Methods

impl<'a> PMU_pcon_Update<'a>

fn new(reg: &'a PMU_pcon) -> PMU_pcon_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a PMU_pcon) -> PMU_pcon_Update<'a>

Create a new updater that ignores current state.

fn set_dpden<'b>(&'b mut self, new_value: PMU_pcon_dpden) -> &'b mut PMU_pcon_Update<'a>

Set value of DPDEN field.

fn set_sleepflag<'b>(&'b mut self, new_value: PMU_pcon_sleepflag) -> &'b mut PMU_pcon_Update<'a>

Set value of SLEEPFLAG field.

fn set_dpdflag<'b>(&'b mut self, new_value: PMU_pcon_dpdflag) -> &'b mut PMU_pcon_Update<'a>

Set value of DPDFLAG field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for PMU_pcon_Update<'a>

This performs the register update.

fn drop(&mut self)