Struct zinc_hal_lpc11xx::ioregs::ADC_dr4
[−]
[src]
pub struct ADC_dr4 {
// some fields omitted
}Register DR4: A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
Methods
impl ADC_dr4
fn get(&self) -> ADC_dr4_Get
Fetch the value of the DR4 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_dr4_Update
Create new updater that ignores current value of the DR4 register.
fn set_v_vref<'a>(&'a mut self, new_value: u32) -> ADC_dr4_Update<'a>
Set value of V_VREF field.
fn set_overrun<'a>(&'a mut self, new_value: bool) -> ADC_dr4_Update<'a>
Set value of OVERRUN field.
fn set_done<'a>(&'a mut self, new_value: bool) -> ADC_dr4_Update<'a>
Set value of DONE field.