Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
adc_channel_config_result_t Struct Reference

Result struct after configuring an ADC channel. More...

#include <cs_PacketsInternal.h>

Public Attributes

adc_pin_id_t pin
 The AIN pin of this channel. More...
 
adc_pin_id_t referencePin
 The AIN pin of which its voltage will be subtracted from the voltage measured on adc_channel_config_result_t::pin. More...
 
uint16_t samplingIntervalUs
 The sampling interval in μs. More...
 
int16_t minValueMilliVolt
 Minimum of the measured voltage (Vpin - Vpinref) range, in mV. More...
 
int16_t maxValueMilliVolt
 Maximum of the measured voltage (Vpin - Vpinref) range, in mV. More...
 
adc_sample_value_t minSampleValue
 Minimum of the sample value range. More...
 
adc_sample_value_t maxSampleValue
 Maximum of the sample value range. More...
 

Detailed Description

Result struct after configuring an ADC channel.

Has all the info to put the sample values in context.

Usage: Vpin = sampleVal / maxSampleValue * maxValueMilliVolt * 1000 + Vpinref

Member Data Documentation

◆ maxSampleValue

adc_channel_config_result_t::maxSampleValue

Maximum of the sample value range.

◆ maxValueMilliVolt

adc_channel_config_result_t::maxValueMilliVolt

Maximum of the measured voltage (Vpin - Vpinref) range, in mV.

◆ minSampleValue

adc_channel_config_result_t::minSampleValue

Minimum of the sample value range.

◆ minValueMilliVolt

adc_channel_config_result_t::minValueMilliVolt

Minimum of the measured voltage (Vpin - Vpinref) range, in mV.

◆ pin

adc_channel_config_result_t::pin

The AIN pin of this channel.

◆ referencePin

adc_channel_config_result_t::referencePin

The AIN pin of which its voltage will be subtracted from the voltage measured on adc_channel_config_result_t::pin.

◆ samplingIntervalUs

adc_channel_config_result_t::samplingIntervalUs

The sampling interval in μs.


The documentation for this struct was generated from the following file: