|
SatCat5
|
Data structure for combined transmit and receive statistics.
Definition at line 94 of file io_counter.h.
#include <io_counter.h>
Public Member Functions | |
| TrafficStats (const TrafficStats &t)=default | |
| TrafficStats & | operator= (const TrafficStats &t)=default |
| bool | any () const |
| Nonzero activity on any of the counters? | |
Static Public Member Functions | |
| static TrafficStats | query (satcat5::io::Counter &rx, satcat5::io::Counter &tx) |
| Read updated statistics from a transmit/receive pair. More... | |
Public Attributes | |
| unsigned | sent_bytes |
| Bytes sent to remote device. | |
| unsigned | sent_frames |
| Frames sent to remote device. | |
| unsigned | rcvd_bytes |
| Bytes received from remote device. | |
| unsigned | rcvd_frames |
| Valid frames received from device. | |
| unsigned | rcvd_errors |
| Invalid frames received from device. | |
|
static |
Read updated statistics from a transmit/receive pair.
This query resets counters in the Tx and Rx objects.
Definition at line 58 of file io_counter.cc.