Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

NRF_LPCOMP_Type Struct Reference

NRF_LPCOMP_Type Struct Reference
[Device_Peripheral_Registers]

Low power comparator. More...

#include <nrf51.h>

Data Fields

__O uint32_t TASKS_START
__O uint32_t TASKS_STOP
__O uint32_t TASKS_SAMPLE
__IO uint32_t EVENTS_READY
__IO uint32_t EVENTS_DOWN
__IO uint32_t EVENTS_UP
__IO uint32_t EVENTS_CROSS
__IO uint32_t SHORTS
__IO uint32_t INTENSET
__IO uint32_t INTENCLR
__I uint32_t RESULT
__IO uint32_t ENABLE
__IO uint32_t PSEL
__IO uint32_t REFSEL
__IO uint32_t EXTREFSEL
__IO uint32_t ANADETECT
__IO uint32_t POWER

Detailed Description

Low power comparator.

(LPCOMP)

Definition at line 1035 of file nrf51.h.


Field Documentation

__IO uint32_t ANADETECT

Analog detect configuration.

Definition at line 1057 of file nrf51.h.

__IO uint32_t ENABLE

Enable the LPCOMP.

Definition at line 1052 of file nrf51.h.

__IO uint32_t EVENTS_CROSS

Input voltage crossed the threshold in any direction.

Definition at line 1043 of file nrf51.h.

__IO uint32_t EVENTS_DOWN

Input voltage crossed the threshold going down.

Definition at line 1041 of file nrf51.h.

__IO uint32_t EVENTS_READY

LPCOMP is ready and output is valid.

Definition at line 1040 of file nrf51.h.

__IO uint32_t EVENTS_UP

Input voltage crossed the threshold going up.

Definition at line 1042 of file nrf51.h.

__IO uint32_t EXTREFSEL

External reference select.

Definition at line 1055 of file nrf51.h.

__IO uint32_t INTENCLR

Interrupt enable clear register.

Definition at line 1048 of file nrf51.h.

__IO uint32_t INTENSET

Interrupt enable set register.

Definition at line 1047 of file nrf51.h.

__IO uint32_t POWER

Peripheral power control.

Definition at line 1059 of file nrf51.h.

__IO uint32_t PSEL

Input pin select.

Definition at line 1053 of file nrf51.h.

__IO uint32_t REFSEL

Reference select.

Definition at line 1054 of file nrf51.h.

__I uint32_t RESULT

Result of last compare.

Definition at line 1050 of file nrf51.h.

__IO uint32_t SHORTS

Shortcuts for the LPCOMP.

Definition at line 1045 of file nrf51.h.

__O uint32_t TASKS_SAMPLE

Sample comparator value.

Definition at line 1038 of file nrf51.h.

__O uint32_t TASKS_START

< LPCOMP Structure Start the comparator.

Definition at line 1036 of file nrf51.h.

__O uint32_t TASKS_STOP

Stop the comparator.

Definition at line 1037 of file nrf51.h.