|
MAX22200 Driver
API reference
|
Driver runtime statistics. More...
#include <max22200_types.hpp>
Public Member Functions | |
| DriverStatistics () | |
| float | getSuccessRate () const |
| bool | hasFailures () const |
| true if failed_transfers > 0 | |
| bool | isHealthy () const |
| true if failed_transfers == 0 | |
| uint32_t | getTotalTransfers () const |
| Total SPI transfer attempts. | |
| uint32_t | getFailedTransfers () const |
| Failed SPI or validation operations. | |
| uint32_t | getFaultEvents () const |
| Fault event counter (reserved, always 0 in current driver) | |
| uint32_t | getStateChanges () const |
| State change counter (reserved, always 0 in current driver) | |
| uint32_t | getUptimeMs () const |
| Uptime counter in ms (reserved, always 0 in current driver) | |
Public Attributes | |
| uint32_t | total_transfers |
| Total SPI operations attempted. | |
| uint32_t | failed_transfers |
| SPI or parameter failures counted by updateStatistics() | |
| uint32_t | fault_events |
| Reserved (not incremented by current driver) | |
| uint32_t | state_changes |
| Reserved (not incremented by current driver) | |
| uint32_t | uptime_ms |
| Reserved (not incremented by current driver) | |
Driver runtime statistics.
Counters updated by the driver during SPI operations. As of the current implementation, only total_transfers and failed_transfers are incremented; fault_events, state_changes, and uptime_ms remain at zero.
|
inline |
|
inline |
Failed SPI or validation operations.
|
inline |
Fault event counter (reserved, always 0 in current driver)
|
inline |
State change counter (reserved, always 0 in current driver)
|
inline |
|
inline |
Total SPI transfer attempts.
|
inline |
Uptime counter in ms (reserved, always 0 in current driver)
|
inline |
true if failed_transfers > 0
|
inline |
true if failed_transfers == 0
| uint32_t max22200::DriverStatistics::failed_transfers |
SPI or parameter failures counted by updateStatistics()
| uint32_t max22200::DriverStatistics::fault_events |
Reserved (not incremented by current driver)
| uint32_t max22200::DriverStatistics::state_changes |
Reserved (not incremented by current driver)
| uint32_t max22200::DriverStatistics::total_transfers |
Total SPI operations attempted.
| uint32_t max22200::DriverStatistics::uptime_ms |
Reserved (not incremented by current driver)