HardFOC Flux V1 HAL
Unified HAL API for the HardFOC Flux valve-control platform (ESP32-S3)
Loading...
Searching...
No Matches
Public Attributes | List of all members
AdcEntry Struct Reference

A single ADC channel entry in the fixed-size registry. More...

#include <AdcManager.h>

Collaboration diagram for AdcEntry:
[legend]

Public Attributes

HfFunctionalAdcChannel functional_channel {HfFunctionalAdcChannel::HF_FUNCTIONAL_ADC_COUNT}
 Functional enum for this channel.
 
std::string_view name
 Human-readable name from pincfg.
 
BaseAdc * driver {nullptr}
 ADC driver (MCU ADC in the binding, or an ADS7952 handler)
 
uint8_t adc_unit {0}
 ADC unit (0 = ADC1, 1 = ADC2)
 
uint8_t hw_channel {0}
 Hardware channel within the unit.
 
float voltage_divider {1.0f}
 Divider ratio for scaled readings.
 
bool registered {false}
 Whether this entry is active.
 
uint32_t access_count {0}
 Total successful read operations on this channel.
 
uint32_t error_count {0}
 Total failed read operations on this channel.
 

Detailed Description

A single ADC channel entry in the fixed-size registry.

Member Data Documentation

◆ access_count

uint32_t AdcEntry::access_count {0}

Total successful read operations on this channel.

◆ adc_unit

uint8_t AdcEntry::adc_unit {0}

ADC unit (0 = ADC1, 1 = ADC2)

◆ driver

BaseAdc* AdcEntry::driver {nullptr}

ADC driver (MCU ADC in the binding, or an ADS7952 handler)

◆ error_count

uint32_t AdcEntry::error_count {0}

Total failed read operations on this channel.

◆ functional_channel

HfFunctionalAdcChannel AdcEntry::functional_channel {HfFunctionalAdcChannel::HF_FUNCTIONAL_ADC_COUNT}

Functional enum for this channel.

◆ hw_channel

uint8_t AdcEntry::hw_channel {0}

Hardware channel within the unit.

◆ name

std::string_view AdcEntry::name

Human-readable name from pincfg.

◆ registered

bool AdcEntry::registered {false}

Whether this entry is active.

◆ voltage_divider

float AdcEntry::voltage_divider {1.0f}

Divider ratio for scaled readings.


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