PebbleOS v4.47.0-888-g9fa910d13
Loading...
Searching...
No Matches
nRF5 SAADC

ADC driver for the SAADC of the Nordic nRF52 series. More...

Macros

#define PBL_ADC_NRF5_SAADC_DEFINE(sym, _name, _base)
 Define the SAADC.
 

Detailed Description

ADC driver for the SAADC of the Nordic nRF52 series.

Channels are the inputs of dt-bindings/iio/adc/nordic,nrf52832-saadc.h.

Macro Definition Documentation

◆ PBL_ADC_NRF5_SAADC_DEFINE

#define PBL_ADC_NRF5_SAADC_DEFINE (   sym,
  _name,
  _base 
)
Value:
PBL_ADC_STATE_DEFINE(sym); \
static int16_t sym##_saadc_result; \
PBL_DEVICE_INSTANCE(sym, struct pbl_adc_nrf5_saadc, struct pbl_adc, adc) { \
.adc = PBL_ADC_INIT(sym, _name, nullptr, &pbl_adc_nrf5_saadc_ops, \
PBL_ADC_NRF5_SAADC__NUM_CHANNELS), \
.base = (_base), .result = &sym##_saadc_result, \
}
ADC.
Definition adc.h:45

Define the SAADC.

Parameters
symSymbol of the ADC.
_nameName.
_baseRegisters.