Diagnostic counters for the USB subsystem. More...
#include <sifteo/usb.h>
Public Member Functions | |
void | capture () |
Update the state of all counters. | |
uint32_t | receivedBytes () |
Total received bytes. | |
uint32_t | receivedPackets () |
Total received packets. | |
void | reset () |
Reset all counters back to zero. More... | |
uint32_t | sentBytes () |
Total sent bytes. | |
uint32_t | sentPackets () |
Total sent packets. | |
uint32_t | userPacketsDropped () |
Total user-defined packets dropped. More... | |
Diagnostic counters for the USB subsystem.
This object is a container for counter values that are tracked by the USB subsystem.
The default constructor leaves UsbCounters uninitialized. Call reset() once before the event you want to measure, and call capture() to grab the latest counter values. Other accessors in this structure will compare the latest counters with the reference values read by reset().
|
inline |
Reset all counters back to zero.
This captures a baseline value for all counters. This must be called once before using the counters to measure changes.
|
inline |
Sifteo SDK v1.1.0 (see all versions)
Last updated Tue Dec 23 2014, by Doxygen