Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
SAADC.h File Reference
#include "main.h"
Include dependency graph for SAADC.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ANALOG_BATTERY   (2UL)
 ADC Channel 0 - Battery measurement. More...
 
#define ANALOG_PRESSURE   (3UL)
 ADC Channel 1 - PX3 Pressure measurement. More...
 
#define SAADC_CALIBRATION_INTERVAL   10
 Determines how often the SAADC should be calibrated relative to NRF_DRV_SAADC_EVT_DONE event. More...
 
#define SAADC_SAMPLES_IN_BUFFER   2
 Number of SAADC samples in RAM before returning a SAADC event. More...
 

Functions

void saadc_init (void)
 Initialize SAADC. More...
 

Variables

bool SAADCdataReady
 Flag to signal SAADC is ready to be read. More...