43 #include <hal/nrf_saadc.h> 87 uint32_t *IntegratedValue;
112 ADC_MEASURE_NETWORK_OFF,
113 ADC_MEASURE_NETWORK_ON
135 uint32_t NumberOfChannels : 7;
136 uint32_t AddressPinCount : 3;
137 uint32_t FirstChannel : 6;
138 uint32_t AddressPinLsb : 5;
151 uint32_t ResistorP : 2;
153 uint32_t ResistorN : 2;
155 uint32_t Reference : 1;
156 uint32_t AcquistionTime : 3;
166 uint32_t Resolution : 2;
167 uint32_t Oversampling : 4;
200 void *SampleBuffer[2];
214 uint16_t NumberOfChannels;
402 #endif //DRIVER_ADC0_H void Adc0ChannelDisable(const struct adc_channel_t *Adc)
Name: Adc0ChannelDisable Disables one ADC channel scheduler based on input parameters. When all channels are disabled, the scheduler is stopped.
uint16_t SampleBufferSize
static uint16_t Adc0GetValue(const struct adc_channel_t *Adc)
Name: Adc0GetValue Starts ADC for selected ADC channel.
adc_streamer_callback_t Callback
static uint16_t Adc0GetLastValue(const struct adc_channel_t *Adc)
Name: Adc0GetLastValue Returns last converted ADC value for selected ADC channel. ...
uint32_t Adc0GetIntegratedMuxValue(const struct adc_channel_t *Adc, uint8_t MuxChannel, uint16_t *Count)
Name: Adc0GetIntegratedMuxValue Returns integrated ADC value for selected ADC channel and mux input...
static uint16_t Adc0GetMeanValue(const struct adc_channel_t *Adc)
Name: Adc0GetMeanValue Returns mean ADC value for selected ADC channel.
void(* adc_callback_t)(enum adc_cb_parameter_t AdcCbParameter)
void Adc0ChannelDisableAll(void)
Name: Adc0ChannelDisableAll Disables all ADC channel schedulers and stops the scheduler.
uint16_t Adc0GetMeanMuxValue(const struct adc_channel_t *Adc, uint8_t MuxChannel)
Name: Adc0GetMeanMuxValue Returns mean ADC value for selected ADC channel and mux input...
uint8_t InterruptPriority
uint16_t Adc0GetMuxValue(const struct adc_channel_t *Adc, uint8_t MuxChannel)
Name: Adc0GetMuxValue Starts ADC for selected ADC channel and mux input.
Header file for the EVE clock management framework.
void(* adc_streamer_callback_t)(const struct adc_streamer_t *Adc, uint8_t SampleBufIndex)
bool Adc0StreamerStart(const struct adc_streamer_t *Adc)
Name: Adc0StreamerStart Starts continous sampling and streaming of data.
uint16_t Adc0GetLastMuxValue(const struct adc_channel_t *Adc, uint8_t MuxChannel)
Name: Adc0GetLastMuxValue Returns last converted ADC value for selected ADC channel and mux input...
bool Adc0ChannelStart(const struct adc_channel_t *Adc, uint32_t TimeRef)
Name: Adc0ChannelStart Starts one ADC channel scheduler based on input parameters.
bool OversamlingInBurstMode
void Adc0ManualScheduler(const struct adc_channel_t *Adc)
Name: Adc0ManualScheduler Called by application for manual data scheduling.
void Adc0Init(const struct adc_schedule_t *AdcSchedule)
Name: Adc0Init Initializes pointers used by ADC scheduler. Called from main program level...
bool Adc0ChannelConfig(const struct adc_channel_t *Adc, int Index, const struct adc_analog_config_t *Config)
Name: Adc0ChannelConfig Configures an analog channel in scan mode.
void Adc0StreamerDisable(const struct adc_streamer_t *Adc)
Name: Adc0StreamerDisable Stops continous sampling and streaming of data.
static uint32_t Adc0GetIntegratedValue(const struct adc_channel_t *Adc, uint16_t *Count)
Name: Adc0GetIntegratedValue Returns integrated ADC value for selected ADC channel.