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

CAN bus statistics structure for performance monitoring. More...

#include <BaseCan.h>

Public Member Functions

 hf_can_statistics_t () noexcept=default
 

Public Attributes

std::atomic< hf_u64_tmessages_sent {0}
 Total messages successfully sent.
 
std::atomic< hf_u64_tmessages_received {0}
 Total messages successfully received.
 
std::atomic< hf_u64_tbytes_transmitted {0}
 Total bytes transmitted.
 
std::atomic< hf_u64_tbytes_received {0}
 Total bytes received.
 
std::atomic< hf_u32_tsend_failures {0}
 Failed send operations.
 
std::atomic< hf_u32_treceive_failures {0}
 Failed receive operations.
 
std::atomic< hf_u32_tbus_error_count {0}
 Total bus errors.
 
std::atomic< hf_u32_tarbitration_lost_count {0}
 Arbitration lost events.
 
std::atomic< hf_u32_ttx_failed_count {0}
 Transmission failures.
 
std::atomic< hf_u32_tbus_off_events {0}
 Bus-off occurrences.
 
std::atomic< hf_u32_terror_warning_events {0}
 Error warning events.
 
std::atomic< hf_u64_tuptime_seconds {0}
 Total uptime in seconds.
 
std::atomic< hf_u32_tlast_activity_timestamp {0}
 Last activity timestamp.
 
std::atomic< hf_can_err_tlast_error {hf_can_err_t::CAN_SUCCESS}
 Last error encountered.
 
std::atomic< hf_u32_ttx_queue_peak {0}
 Peak TX queue usage.
 
std::atomic< hf_u32_trx_queue_peak {0}
 Peak RX queue usage.
 
std::atomic< hf_u32_ttx_queue_overflows {0}
 TX queue overflow count.
 
std::atomic< hf_u32_trx_queue_overflows {0}
 RX queue overflow count.
 

Detailed Description

CAN bus statistics structure for performance monitoring.

Provides comprehensive statistics for monitoring CAN bus performance and identifying potential issues.

Constructor & Destructor Documentation

◆ hf_can_statistics_t()

hf_can_statistics_t::hf_can_statistics_t ( )
defaultnoexcept

Member Data Documentation

◆ arbitration_lost_count

std::atomic<hf_u32_t> hf_can_statistics_t::arbitration_lost_count {0}

Arbitration lost events.

◆ bus_error_count

std::atomic<hf_u32_t> hf_can_statistics_t::bus_error_count {0}

Total bus errors.

◆ bus_off_events

std::atomic<hf_u32_t> hf_can_statistics_t::bus_off_events {0}

Bus-off occurrences.

◆ bytes_received

std::atomic<hf_u64_t> hf_can_statistics_t::bytes_received {0}

Total bytes received.

◆ bytes_transmitted

std::atomic<hf_u64_t> hf_can_statistics_t::bytes_transmitted {0}

Total bytes transmitted.

◆ error_warning_events

std::atomic<hf_u32_t> hf_can_statistics_t::error_warning_events {0}

Error warning events.

◆ last_activity_timestamp

std::atomic<hf_u32_t> hf_can_statistics_t::last_activity_timestamp {0}

Last activity timestamp.

◆ last_error

std::atomic<hf_can_err_t> hf_can_statistics_t::last_error {hf_can_err_t::CAN_SUCCESS}

Last error encountered.

◆ messages_received

std::atomic<hf_u64_t> hf_can_statistics_t::messages_received {0}

Total messages successfully received.

◆ messages_sent

std::atomic<hf_u64_t> hf_can_statistics_t::messages_sent {0}

Total messages successfully sent.

◆ receive_failures

std::atomic<hf_u32_t> hf_can_statistics_t::receive_failures {0}

Failed receive operations.

◆ rx_queue_overflows

std::atomic<hf_u32_t> hf_can_statistics_t::rx_queue_overflows {0}

RX queue overflow count.

◆ rx_queue_peak

std::atomic<hf_u32_t> hf_can_statistics_t::rx_queue_peak {0}

Peak RX queue usage.

◆ send_failures

std::atomic<hf_u32_t> hf_can_statistics_t::send_failures {0}

Failed send operations.

◆ tx_failed_count

std::atomic<hf_u32_t> hf_can_statistics_t::tx_failed_count {0}

Transmission failures.

◆ tx_queue_overflows

std::atomic<hf_u32_t> hf_can_statistics_t::tx_queue_overflows {0}

TX queue overflow count.

◆ tx_queue_peak

std::atomic<hf_u32_t> hf_can_statistics_t::tx_queue_peak {0}

Peak TX queue usage.

◆ uptime_seconds

std::atomic<hf_u64_t> hf_can_statistics_t::uptime_seconds {0}

Total uptime in seconds.


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