Struct zinc_hal_lpc11xx::ioregs::IOCON_iocon_pio1_5_Update [] [src]

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

Updater for IOCON_PIO1_5 register.

Methods

impl<'a> IOCON_iocon_pio1_5_Update<'a>

fn new(reg: &'a IOCON_iocon_pio1_5) -> IOCON_iocon_pio1_5_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a IOCON_iocon_pio1_5) -> IOCON_iocon_pio1_5_Update<'a>

Create a new updater that ignores current state.

fn set_func<'b>(&'b mut self, new_value: IOCON_iocon_pio1_5_func) -> &'b mut IOCON_iocon_pio1_5_Update<'a>

Set value of FUNC field.

fn set_mode<'b>(&'b mut self, new_value: IOCON_iocon_pio1_5_mode) -> &'b mut IOCON_iocon_pio1_5_Update<'a>

Set value of MODE field.

fn set_hys<'b>(&'b mut self, new_value: IOCON_iocon_pio1_5_hys) -> &'b mut IOCON_iocon_pio1_5_Update<'a>

Set value of HYS field.

fn set_od<'b>(&'b mut self, new_value: IOCON_iocon_pio1_5_od) -> &'b mut IOCON_iocon_pio1_5_Update<'a>

Set value of OD field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for IOCON_iocon_pio1_5_Update<'a>

This performs the register update.

fn drop(&mut self)