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