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

System-level diagnostics snapshot for motor controller health monitoring. More...

#include <MotorController.h>

Collaboration diagram for MotorSystemDiagnostics:
[legend]

Classes

struct  DeviceSnapshot
 Per-device snapshot (indexed 0..MAX_TMC9660_DEVICES-1) More...
 

Public Attributes

bool system_healthy
 true when all active devices are initialized
 
bool system_initialized
 MotorController::IsInitialized()
 
uint8_t active_device_count
 Number of active device slots.
 
uint8_t initialized_device_count
 Number of successfully initialized devices.
 
MotorError last_error
 Most recent error code.
 
DeviceSnapshot devices [kMaxDevices] {}
 

Static Public Attributes

static constexpr uint8_t kMaxDevices = 4
 

Detailed Description

System-level diagnostics snapshot for motor controller health monitoring.

Aggregates per-device and system-wide status in a single copyable struct, matching the pattern used by LedSystemDiagnostics / GpioSystemDiagnostics.

Member Data Documentation

◆ active_device_count

uint8_t MotorSystemDiagnostics::active_device_count

Number of active device slots.

◆ devices

DeviceSnapshot MotorSystemDiagnostics::devices[kMaxDevices] {}

◆ initialized_device_count

uint8_t MotorSystemDiagnostics::initialized_device_count

Number of successfully initialized devices.

◆ kMaxDevices

constexpr uint8_t MotorSystemDiagnostics::kMaxDevices = 4
staticconstexpr

◆ last_error

MotorError MotorSystemDiagnostics::last_error

Most recent error code.

◆ system_healthy

bool MotorSystemDiagnostics::system_healthy

true when all active devices are initialized

◆ system_initialized

bool MotorSystemDiagnostics::system_initialized

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