pub struct RegisterBlock {
Show 17 fields pub tasks_start: Reg<TASKS_START_SPEC>, pub tasks_stop: Reg<TASKS_STOP_SPEC>, pub tasks_sample: Reg<TASKS_SAMPLE_SPEC>, pub events_ready: Reg<EVENTS_READY_SPEC>, pub events_down: Reg<EVENTS_DOWN_SPEC>, pub events_up: Reg<EVENTS_UP_SPEC>, pub events_cross: Reg<EVENTS_CROSS_SPEC>, pub shorts: Reg<SHORTS_SPEC>, pub intenset: Reg<INTENSET_SPEC>, pub intenclr: Reg<INTENCLR_SPEC>, pub result: Reg<RESULT_SPEC>, pub enable: Reg<ENABLE_SPEC>, pub psel: Reg<PSEL_SPEC>, pub refsel: Reg<REFSEL_SPEC>, pub extrefsel: Reg<EXTREFSEL_SPEC>, pub anadetect: Reg<ANADETECT_SPEC>, pub hyst: Reg<HYST_SPEC>, /* private fields */
}
Expand description

Register block

Fields

tasks_start: Reg<TASKS_START_SPEC>

0x00 - Start comparator

tasks_stop: Reg<TASKS_STOP_SPEC>

0x04 - Stop comparator

tasks_sample: Reg<TASKS_SAMPLE_SPEC>

0x08 - Sample comparator value

events_ready: Reg<EVENTS_READY_SPEC>

0x100 - LPCOMP is ready and output is valid

events_down: Reg<EVENTS_DOWN_SPEC>

0x104 - Downward crossing

events_up: Reg<EVENTS_UP_SPEC>

0x108 - Upward crossing

events_cross: Reg<EVENTS_CROSS_SPEC>

0x10c - Downward or upward crossing

shorts: Reg<SHORTS_SPEC>

0x200 - Shortcut register

intenset: Reg<INTENSET_SPEC>

0x304 - Enable interrupt

intenclr: Reg<INTENCLR_SPEC>

0x308 - Disable interrupt

result: Reg<RESULT_SPEC>

0x400 - Compare result

enable: Reg<ENABLE_SPEC>

0x500 - Enable LPCOMP

psel: Reg<PSEL_SPEC>

0x504 - Input pin select

refsel: Reg<REFSEL_SPEC>

0x508 - Reference select

extrefsel: Reg<EXTREFSEL_SPEC>

0x50c - External reference select

anadetect: Reg<ANADETECT_SPEC>

0x520 - Analog detect configuration

hyst: Reg<HYST_SPEC>

0x538 - Comparator hysteresis enable

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Should always be Self
Casts the value.
Casts the value.
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.
Casts the value.
Casts the value.
Casts the value.
Casts the value.