Module comp

Source
Expand description

Comparator

Modules§

enable
COMP enable
events_cross
Downward or upward crossing
events_down
Downward crossing
events_ready
COMP is ready and output is valid
events_up
Upward crossing
extrefsel
External reference select
hyst
Comparator hysteresis enable
inten
Enable or disable interrupt
intenclr
Disable interrupt
intenset
Enable interrupt
mode
Mode configuration
psel
Pin select
refsel
Reference source select for single-ended mode
result
Compare result
shorts
Shortcut register
tasks_sample
Sample comparator value
tasks_start
Start comparator
tasks_stop
Stop comparator
th
Threshold configuration for hysteresis unit

Structs§

RegisterBlock
Register block

Type Aliases§

ENABLE
ENABLE (rw) register accessor: an alias for Reg<ENABLE_SPEC>
EVENTS_CROSS
EVENTS_CROSS (rw) register accessor: an alias for Reg<EVENTS_CROSS_SPEC>
EVENTS_DOWN
EVENTS_DOWN (rw) register accessor: an alias for Reg<EVENTS_DOWN_SPEC>
EVENTS_READY
EVENTS_READY (rw) register accessor: an alias for Reg<EVENTS_READY_SPEC>
EVENTS_UP
EVENTS_UP (rw) register accessor: an alias for Reg<EVENTS_UP_SPEC>
EXTREFSEL
EXTREFSEL (rw) register accessor: an alias for Reg<EXTREFSEL_SPEC>
HYST
HYST (rw) register accessor: an alias for Reg<HYST_SPEC>
INTEN
INTEN (rw) register accessor: an alias for Reg<INTEN_SPEC>
INTENCLR
INTENCLR (rw) register accessor: an alias for Reg<INTENCLR_SPEC>
INTENSET
INTENSET (rw) register accessor: an alias for Reg<INTENSET_SPEC>
MODE
MODE (rw) register accessor: an alias for Reg<MODE_SPEC>
PSEL
PSEL (rw) register accessor: an alias for Reg<PSEL_SPEC>
REFSEL
REFSEL (rw) register accessor: an alias for Reg<REFSEL_SPEC>
RESULT
RESULT (r) register accessor: an alias for Reg<RESULT_SPEC>
SHORTS
SHORTS (rw) register accessor: an alias for Reg<SHORTS_SPEC>
TASKS_SAMPLE
TASKS_SAMPLE (w) register accessor: an alias for Reg<TASKS_SAMPLE_SPEC>
TASKS_START
TASKS_START (w) register accessor: an alias for Reg<TASKS_START_SPEC>
TASKS_STOP
TASKS_STOP (w) register accessor: an alias for Reg<TASKS_STOP_SPEC>
TH
TH (rw) register accessor: an alias for Reg<TH_SPEC>