Appiko
Data Structures | Macros | Functions
SAADC Logger

Low power analog data logger with the SAADC peripheral. The image below gives the flow of how the peripherals of nRF52 is setup for this application. More...

Data Structures

struct  saadc_limit
 Configuration structure of the SAADC limit for a channel. More...
 

Macros

#define LOGGER_INTERVAL_MS   50
 Macro that defines the data sampling frequency.
 
#define SAADC_NUMBER_OF_CHANNELS   1
 Macro that defines the number of channels of ADC to sample.
 
#define APPLN_SAADC_RESOLUTION   NRF_SAADC_RESOLUTION_12BIT
 The ADC converstion resolution used in this application.
 
#define APPLN_SAADC_OVERSAMPLING   NRF_SAADC_OVERSAMPLE_DISABLED
 The number of samples used to average to get the result.
 
#define APPLN_SAADC_IRQ_PRIORITY   APP_IRQ_PRIORITY_LOW
 The interrupt priority of the SAADC peripheral.
 

Functions

void SAADC_IRQHandler (void)
 Implementation of the SAADC interrupt handler.
 
int main (void)
 Function for application main entry.
 

Macros for setting the SAADC channel configurations for this application.

#define SAADC_AMP_CHANNEL_CONFIG
 

Macros for setting the SAADC channel limits for this application.

#define PIR_RC_CHANNEL_UPPER_LIMIT   (32767)
 
#define PIR_RC_CHANNEL_LOWER_LIMIT   (-32768)
 
#define PIR_AMP_CHANNEL_UPPER_LIMIT   (100)
 
#define PIR_AMP_CHANNEL_LOWER_LIMIT   (-100)
 

Detailed Description