Struct zinc_hal_lpc11xx::ioregs::ADC_dr2
[−]
[src]
pub struct ADC_dr2 {
// some fields omitted
}Register DR2: A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
Methods
impl ADC_dr2
fn get(&self) -> ADC_dr2_Get
Fetch the value of the DR2 register.
fn v_vref(&self) -> u32
Get value of V_VREF field.
fn overrun(&self) -> bool
Get value of OVERRUN field.
fn done(&self) -> bool
Get value of DONE field.
fn ignoring_state(&self) -> ADC_dr2_Update
Create new updater that ignores current value of the DR2 register.
fn set_v_vref<'a>(&'a mut self, new_value: u32) -> ADC_dr2_Update<'a>
Set value of V_VREF field.
fn set_overrun<'a>(&'a mut self, new_value: bool) -> ADC_dr2_Update<'a>
Set value of OVERRUN field.
fn set_done<'a>(&'a mut self, new_value: bool) -> ADC_dr2_Update<'a>
Set value of DONE field.