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

Struct communicated from the ADC class when it's done sampling a buffer. More...

#include <cs_PacketsInternal.h>

Collaboration diagram for adc_buffer_t:

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_tsamples = nullptr
 Pointer to the samples. More...
 

Detailed Description

Struct communicated from the ADC class when it's done sampling a buffer.

Member Data Documentation

◆ config

The ADC config that was used to sample this buffer.

◆ samples

adc_sample_value_t* adc_buffer_t::samples = nullptr

Pointer to the samples.

◆ seqNr

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.

◆ valid

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.


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