Struct zinc_hal_lpc11xx::ioregs::CT16B0_ctcr_Update [] [src]

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

Updater for CTCR register.

Methods

impl<'a> CT16B0_ctcr_Update<'a>

fn new(reg: &'a CT16B0_ctcr) -> CT16B0_ctcr_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a CT16B0_ctcr) -> CT16B0_ctcr_Update<'a>

Create a new updater that ignores current state.

fn set_ctm<'b>(&'b mut self, new_value: CT16B0_ctcr_ctm) -> &'b mut CT16B0_ctcr_Update<'a>

Set value of CTM field.

fn set_cis<'b>(&'b mut self, new_value: CT16B0_ctcr_cis) -> &'b mut CT16B0_ctcr_Update<'a>

Set value of CIS field.

fn set_encc<'b>(&'b mut self, new_value: bool) -> &'b mut CT16B0_ctcr_Update<'a>

Set value of ENCC field.

fn set_selcc<'b>(&'b mut self, new_value: CT16B0_ctcr_selcc) -> &'b mut CT16B0_ctcr_Update<'a>

Set value of SELCC field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for CT16B0_ctcr_Update<'a>

This performs the register update.

fn drop(&mut self)