|
Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Struct communicated from the ADC class when it's done sampling a buffer. More...
#include <cs_PacketsInternal.h>

Public Attributes | |
| bool | valid = false |
| Whether this buffer has valid data. More... | |
| adc_buffer_seq_nr_t | seqNr = 0 |
| Sequence number. More... | |
| adc_channel_config_result_t | config [CS_ADC_NUM_CHANNELS] |
| The ADC config that was used to sample this buffer. More... | |
| adc_sample_value_t * | samples = nullptr |
| Pointer to the samples. More... | |
Struct communicated from the ADC class when it's done sampling a buffer.
| adc_channel_config_result_t adc_buffer_t::config[CS_ADC_NUM_CHANNELS] |
The ADC config that was used to sample this buffer.
| adc_sample_value_t* adc_buffer_t::samples = nullptr |
Pointer to the samples.
| adc_buffer_seq_nr_t adc_buffer_t::seqNr = 0 |
Sequence number.
Increased by 1 for each consecutive buffer. Can be used to check if you missed a buffer.
| bool adc_buffer_t::valid = false |
Whether this buffer has valid data.
This may change at any moment, so make sure to check it after calculations and be ready to revert.