HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
hf_i2c_diagnostics_t Struct Reference

I2C diagnostic information. More...

#include <BaseI2c.h>

Public Member Functions

 hf_i2c_diagnostics_t () noexcept
 

Public Attributes

bool bus_healthy
 Overall bus health status.
 
bool sda_line_state
 Current SDA line state.
 
bool scl_line_state
 Current SCL line state.
 
bool bus_locked
 Bus lock status.
 
hf_i2c_err_t last_error_code
 Last error code encountered.
 
hf_u64_t last_error_timestamp_us
 Timestamp of last error.
 
hf_u32_t consecutive_errors
 Consecutive error count.
 
hf_u32_t error_recovery_attempts
 Bus recovery attempts.
 
float bus_utilization_percent
 Bus utilization percentage.
 
hf_u32_t average_response_time_us
 Average device response time.
 
hf_u32_t clock_stretching_events
 Clock stretching event count.
 
hf_u32_t active_device_count
 Number of active devices on bus.
 
hf_u32_t total_device_scans
 Total device scan operations.
 
hf_u32_t devices_found_last_scan
 Devices found in last scan.
 

Detailed Description

I2C diagnostic information.

Constructor & Destructor Documentation

◆ hf_i2c_diagnostics_t()

hf_i2c_diagnostics_t::hf_i2c_diagnostics_t ( )
inlinenoexcept

Member Data Documentation

◆ active_device_count

hf_u32_t hf_i2c_diagnostics_t::active_device_count

Number of active devices on bus.

◆ average_response_time_us

hf_u32_t hf_i2c_diagnostics_t::average_response_time_us

Average device response time.

◆ bus_healthy

bool hf_i2c_diagnostics_t::bus_healthy

Overall bus health status.

◆ bus_locked

bool hf_i2c_diagnostics_t::bus_locked

Bus lock status.

◆ bus_utilization_percent

float hf_i2c_diagnostics_t::bus_utilization_percent

Bus utilization percentage.

◆ clock_stretching_events

hf_u32_t hf_i2c_diagnostics_t::clock_stretching_events

Clock stretching event count.

◆ consecutive_errors

hf_u32_t hf_i2c_diagnostics_t::consecutive_errors

Consecutive error count.

◆ devices_found_last_scan

hf_u32_t hf_i2c_diagnostics_t::devices_found_last_scan

Devices found in last scan.

◆ error_recovery_attempts

hf_u32_t hf_i2c_diagnostics_t::error_recovery_attempts

Bus recovery attempts.

◆ last_error_code

hf_i2c_err_t hf_i2c_diagnostics_t::last_error_code

Last error code encountered.

◆ last_error_timestamp_us

hf_u64_t hf_i2c_diagnostics_t::last_error_timestamp_us

Timestamp of last error.

◆ scl_line_state

bool hf_i2c_diagnostics_t::scl_line_state

Current SCL line state.

◆ sda_line_state

bool hf_i2c_diagnostics_t::sda_line_state

Current SDA line state.

◆ total_device_scans

hf_u32_t hf_i2c_diagnostics_t::total_device_scans

Total device scan operations.


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