Struct lpc845_pac::adc0::flags::R[][src]

pub struct R(_);
Expand description

Register FLAGS reader

Implementations

Bit 0 - Threshold comparison event on Channel 0. Set to 1 upon either an out-of-range result or a threshold-crossing result if enabled to do so in the INTEN register. This bit is cleared by writing a 1.

Bit 1 - Threshold comparison event on Channel 1. See description for channel 0.

Bit 2 - Threshold comparison event on Channel 2. See description for channel 0.

Bit 3 - Threshold comparison event on Channel 3. See description for channel 0.

Bit 4 - Threshold comparison event on Channel 4. See description for channel 0.

Bit 5 - Threshold comparison event on Channel 5. See description for channel 0.

Bit 6 - Threshold comparison event on Channel 6. See description for channel 0.

Bit 7 - Threshold comparison event on Channel 7. See description for channel 0.

Bit 8 - Threshold comparison event on Channel 8. See description for channel 0.

Bit 9 - Threshold comparison event on Channel 9. See description for channel 0.

Bit 10 - Threshold comparison event on Channel 10. See description for channel 0.

Bit 11 - Threshold comparison event on Channel 11. See description for channel 0.

Bit 12 - Mirrors the OVERRRUN status flag from the result register for ADC channel 0

Bit 13 - Mirrors the OVERRRUN status flag from the result register for ADC channel 1

Bit 14 - Mirrors the OVERRRUN status flag from the result register for ADC channel 2

Bit 15 - Mirrors the OVERRRUN status flag from the result register for ADC channel 3

Bit 16 - Mirrors the OVERRRUN status flag from the result register for ADC channel 4

Bit 17 - Mirrors the OVERRRUN status flag from the result register for ADC channel 5

Bit 18 - Mirrors the OVERRRUN status flag from the result register for ADC channel 6

Bit 19 - Mirrors the OVERRRUN status flag from the result register for ADC channel 7

Bit 20 - Mirrors the OVERRRUN status flag from the result register for ADC channel 8

Bit 21 - Mirrors the OVERRRUN status flag from the result register for ADC channel 9

Bit 22 - Mirrors the OVERRRUN status flag from the result register for ADC channel 10

Bit 23 - Mirrors the OVERRRUN status flag from the result register for ADC channel 11

Bit 24 - Mirrors the global OVERRUN status flag in the SEQA_GDAT register

Bit 25 - Mirrors the global OVERRUN status flag in the SEQB_GDAT register

Bit 28 - Sequence A interrupt/DMA trigger. If the MODE bit in the SEQA_CTRL register is 0, this flag will mirror the DATAVALID bit in the sequence A global data register (SEQA_GDAT), which is set at the end of every ADC conversion performed as part of sequence A. It will be cleared automatically when the SEQA_GDAT register is read. If the MODE bit in the SEQA_CTRL register is 1, this flag will be set upon completion of an entire A sequence. In this case it must be cleared by writing a 1 to this SEQA_INT bit. This interrupt must be enabled in the INTEN register.

Bit 29 - Sequence A interrupt/DMA trigger. If the MODE bit in the SEQB_CTRL register is 0, this flag will mirror the DATAVALID bit in the sequence A global data register (SEQB_GDAT), which is set at the end of every ADC conversion performed as part of sequence B. It will be cleared automatically when the SEQB_GDAT register is read. If the MODE bit in the SEQB_CTRL register is 1, this flag will be set upon completion of an entire B sequence. In this case it must be cleared by writing a 1 to this SEQB_INT bit. This interrupt must be enabled in the INTEN register.

Bit 30 - Threshold Comparison Interrupt. This bit will be set if any of the THCMP flags in the lower bits of this register are set to 1 (due to an enabled out-of-range or threshold-crossing event on any channel). Each type of threshold comparison interrupt on each channel must be individually enabled in the INTEN register to cause this interrupt. This bit will be cleared when all of the individual threshold flags are cleared via writing 1s to those bits.

Bit 31 - Overrun Interrupt flag. Any overrun bit in any of the individual channel data registers will cause this interrupt. In addition, if the MODE bit in either of the SEQn_CTRL registers is 0 then the OVERRUN bit in the corresponding SEQn_GDAT register will also cause this interrupt. This interrupt must be enabled in the INTEN register. This bit will be cleared when all of the individual overrun bits have been cleared via reading the corresponding data registers.

Methods from Deref<Target = R<FLAGS_SPEC>>

Reads raw bits from register.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.