Struct lpc845_pac::acomp::ctrl::R[][src]

pub struct R(_);
Expand description

Register CTRL reader

Implementations

Bits 3:4 - This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below):

Bit 6 - Comparator output control

Bits 8:10 - Selects positive voltage input

Bits 11:13 - Selects negative voltage input

Bit 20 - Interrupt clear bit. To clear the COMPEDGE bit and thus negate the interrupt request, toggle the EDGECLR bit by first writing a 1 and then a 0.

Bit 21 - Comparator status. This bit reflects the state of the comparator output.

Bit 23 - Comparator edge-detect status.

Bit 24 - Must be set to generate interrupts.

Bits 25:26 - Controls the hysteresis of the comparator. When the comparator is outputting a certain state, this is the difference between the selected signals, in the opposite direction from the state being output, that will switch the output.

Methods from Deref<Target = R<CTRL_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.