Struct zinc_hal_lpc11xx::ioregs::ADC_gdr
[−]
[src]
pub struct ADC_gdr {
// some fields omitted
}Register GDR: A/D Global Data Register. Contains the result of the most recent A/D conversion.
Methods
impl ADC_gdr
fn get(&self) -> ADC_gdr_Get
Fetch the value of the GDR register.
fn v_vref(&self) -> u32
Get value of V_VREF field.
fn chn(&self) -> u32
Get value of CHN field.
fn overrun(&self) -> bool
Get value of OVERRUN field.
fn done(&self) -> bool
Get value of DONE field.
fn ignoring_state(&self) -> ADC_gdr_Update
Create new updater that ignores current value of the GDR register.
fn set_v_vref<'a>(&'a mut self, new_value: u32) -> ADC_gdr_Update<'a>
Set value of V_VREF field.
fn set_chn<'a>(&'a mut self, new_value: u32) -> ADC_gdr_Update<'a>
Set value of CHN field.
fn set_overrun<'a>(&'a mut self, new_value: bool) -> ADC_gdr_Update<'a>
Set value of OVERRUN field.
fn set_done<'a>(&'a mut self, new_value: bool) -> ADC_gdr_Update<'a>
Set value of DONE field.