HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
Loading...
Searching...
No Matches
Public Attributes | List of all members
AdcSystemDiagnostics Struct Reference

ADC system diagnostics (compatible with example code). More...

#include <AdcManager.h>

Public Attributes

bool system_healthy {false}
 True when all registered channels are operational.
 
uint32_t total_channels_registered {0}
 Number of channels currently registered.
 
uint32_t channels_by_chip [2] {}
 [0]=ESP32, [1]=TMC9660
 
uint32_t total_operations {0}
 Cumulative read attempts across all channels.
 
uint32_t successful_operations {0}
 Cumulative successful reads.
 
uint32_t failed_operations {0}
 Cumulative failed reads.
 
uint32_t communication_errors {0}
 Errors attributed to bus communication failures.
 
uint32_t hardware_errors {0}
 Errors attributed to hardware faults.
 
uint64_t system_uptime_ms {0}
 Milliseconds since ADC subsystem initialisation.
 
hf_adc_err_t last_error {hf_adc_err_t::ADC_SUCCESS}
 Most recent error code from any operation.
 

Detailed Description

ADC system diagnostics (compatible with example code).

Member Data Documentation

◆ channels_by_chip

uint32_t AdcSystemDiagnostics::channels_by_chip[2] {}

[0]=ESP32, [1]=TMC9660

◆ communication_errors

uint32_t AdcSystemDiagnostics::communication_errors {0}

Errors attributed to bus communication failures.

◆ failed_operations

uint32_t AdcSystemDiagnostics::failed_operations {0}

Cumulative failed reads.

◆ hardware_errors

uint32_t AdcSystemDiagnostics::hardware_errors {0}

Errors attributed to hardware faults.

◆ last_error

hf_adc_err_t AdcSystemDiagnostics::last_error {hf_adc_err_t::ADC_SUCCESS}

Most recent error code from any operation.

◆ successful_operations

uint32_t AdcSystemDiagnostics::successful_operations {0}

Cumulative successful reads.

◆ system_healthy

bool AdcSystemDiagnostics::system_healthy {false}

True when all registered channels are operational.

◆ system_uptime_ms

uint64_t AdcSystemDiagnostics::system_uptime_ms {0}

Milliseconds since ADC subsystem initialisation.

◆ total_channels_registered

uint32_t AdcSystemDiagnostics::total_channels_registered {0}

Number of channels currently registered.

◆ total_operations

uint32_t AdcSystemDiagnostics::total_operations {0}

Cumulative read attempts across all channels.


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