Skip to content

Analog and temperature

Handlers for the ADS7952 and ADS9324 ADCs and for NTC and MCP9700 temperature sensors read through any BaseAdc.

Ads7952Handler

Unified handler for ADS7952 12-channel 12-bit SAR ADC with SPI integration.

Ads7952Handler(
    BaseSpi& spi_interface,
    const Ads7952HandlerConfig& config = GetDefaultAds7952Config());
Group Public methods
All Initialize(), Deinitialize(), GetMaxChannels(), IsChannelAvailable(), ReadChannelV(), ReadChannelCount(), ReadChannel(), ReadMultipleChannels(), ReadAllChannels(), ReadAuto1Channels(), RawManualFrames(), ProgramAlarm(), ProgramAlarmVoltage(), SetRange(), GetActiveVref(), GetDriver(), visitDriver(), GetDescription(), GetHandlerDiagnostics(), DumpDiagnostics(), GetDeviceIndex()

Ads9324Handler

hf-core handler for ADS9324 (16-ch 16-bit simultaneous SAR + PGA AFE).

Ads9324Handler(
    BaseSpi& spi,
    BaseGpio* convst,
    BaseGpio* drdy = nullptr,
    const Ads9324HandlerConfig& config = GetDefaultAds9324Config());
Group Public methods
All Initialize(), Deinitialize(), GetMaxChannels(), IsChannelAvailable(), ReadChannelV(), ReadChannelCount(), ReadChannel(), ReadMultipleChannels(), ConfigureChannel(), SetChannelOffset(), SetChannelGain(), ReadSnapshot(), GetDriver(), visitDriver(), GetDescription(), GetHandlerDiagnostics(), DumpDiagnostics(), GetDeviceIndex()

NtcTemperatureHandler

NTC temperature sensor handler for the HardFOC system.

NtcTemperatureHandler(NtcType ntc_type, BaseAdc* adc_interface, const char* sensor_name = nullptr);
NtcTemperatureHandler(BaseAdc* adc_interface, const ntc_temp_handler_config_t& config);
Group Public methods
All Initialize(), Deinitialize(), ReadTemperatureCelsiusImpl(), GetSensorInfo(), GetCapabilities(), SetRange(), GetRange(), GetResolution(), SetThresholds(), GetThresholds(), EnableThresholdMonitoring(), DisableThresholdMonitoring(), StartContinuousMonitoring(), StopContinuousMonitoring(), IsMonitoringActive(), SetCalibrationOffset(), GetCalibrationOffset(), ResetCalibration(), EnterSleepMode(), ExitSleepMode(), IsSleeping(), SelfTest(), CheckHealth(), GetStatistics(), GetDiagnostics(), ResetStatistics(), ResetDiagnostics(), GetNtcThermistor(), GetNtcReading(), GetNtcConfiguration(), SetNtcConfiguration(), GetResistance(), GetVoltage(), GetRawAdcValue(), Calibrate(), SetConversionMethod(), SetVoltageDivider(), SetReferenceVoltage(), SetBetaValue(), SetAdcChannel(), SetSamplingParameters(), SetFiltering(), GetSensorName(), GetSensorDescription(), GetDriver()

Mcp9700TemperatureHandler

MCP9700 linear active thermistor handler (ADC voltage to °C).

Mcp9700TemperatureHandler(
    BaseAdc* adc_interface,
    uint8_t adc_channel,
    const char* sensor_name = "MCP9700");
Group Public methods
All GetSensorName()