Struct zinc_hal_lpc11xx::ioregs::PMU_gpreg2 [] [src]

pub struct PMU_gpreg2 {
    // some fields omitted
}

Register GPREG2: General purpose register

Methods

impl PMU_gpreg2

fn get(&self) -> PMU_gpreg2_Get

Fetch the value of the GPREG2 register.

fn gpdata(&self) -> u32

Get value of GPDATA field.

fn ignoring_state(&self) -> PMU_gpreg2_Update

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

fn set_gpdata<'a>(&'a mut self, new_value: u32) -> PMU_gpreg2_Update<'a>

Set value of GPDATA field.

Trait Implementations

impl Copy for PMU_gpreg2

Derived Implementations

impl Clone for PMU_gpreg2

fn clone(&self) -> PMU_gpreg2

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