Struct zinc_hal_lpc11xx::ioregs::ADC_inten_Get [] [src]

pub struct ADC_inten_Get {
    // some fields omitted
}

INTEN: A/D Interrupt Enable Register. This register contains enable bits that allow the DONE flag of each A/D channel to be included or excluded from contributing to the generation of an A/D interrupt.

Methods

impl ADC_inten_Get

fn new(reg: &ADC_inten) -> ADC_inten_Get

Create a getter reflecting the current value of the given register.

fn raw(&self) -> u32

Get the raw value of the register.

fn adintenn(&self) -> u32

Get value of ADINTENn field: These bits allow control over which A/D channels generate interrupts for conversion completion. When bit 0 is one, completion of a conversion on A/D channel 0 will generate an interrupt, when bit 1 is one, completion of a conversion on A/D channel 1 will generate an interrupt, etc.

fn adginten(&self) -> bool

Get value of ADGINTEN field: When 1, enables the global DONE flag in ADDR to generate an interrupt. When 0, only the individual A/D channels enabled by ADINTEN 7:0 will generate interrupts.

Trait Implementations

impl Copy for ADC_inten_Get

Derived Implementations

impl Clone for ADC_inten_Get

fn clone(&self) -> ADC_inten_Get

fn clone_from(&mut self, source: &Self)