Struct zinc_hal_lpc11xx::ioregs::ADC_cr_Update
[−]
[src]
pub struct ADC_cr_Update<'a> { // some fields omitted }
Updater for CR
register.
Methods
impl<'a> ADC_cr_Update<'a>
fn new(reg: &'a ADC_cr) -> ADC_cr_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a ADC_cr) -> ADC_cr_Update<'a>
Create a new updater that ignores current state.
fn set_sel<'b>(&'b mut self, new_value: u32) -> &'b mut ADC_cr_Update<'a>
Set value of SEL
field.
fn set_clkdiv<'b>(&'b mut self, new_value: u32) -> &'b mut ADC_cr_Update<'a>
Set value of CLKDIV
field.
fn set_burst<'b>(&'b mut self, new_value: ADC_cr_burst) -> &'b mut ADC_cr_Update<'a>
Set value of BURST
field.
fn set_clks<'b>(&'b mut self, new_value: ADC_cr_clks) -> &'b mut ADC_cr_Update<'a>
Set value of CLKS
field.
fn set_start<'b>(&'b mut self, new_value: ADC_cr_start) -> &'b mut ADC_cr_Update<'a>
Set value of START
field.
fn set_edge<'b>(&'b mut self, new_value: ADC_cr_edge) -> &'b mut ADC_cr_Update<'a>
Set value of EDGE
field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for ADC_cr_Update<'a>
This performs the register update.