Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
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... | |
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
adc_channel_config_result_t::maxSampleValue |
Maximum of the sample value range.
adc_channel_config_result_t::maxValueMilliVolt |
Maximum of the measured voltage (Vpin - Vpinref) range, in mV.
adc_channel_config_result_t::minSampleValue |
Minimum of the sample value range.
adc_channel_config_result_t::minValueMilliVolt |
Minimum of the measured voltage (Vpin - Vpinref) range, in mV.
adc_channel_config_result_t::pin |
The AIN pin of this channel.
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.
adc_channel_config_result_t::samplingIntervalUs |
The sampling interval in μs.