Diagnostic counters for the Bluetooth subsystem. More...
#include <sifteo/bluetooth.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 Bluetooth subsystem.
This object is a container for counter values that are tracked by the Bluetooth subsystem.
The default constructor leaves BluetoothCounters 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 |
Total user-defined packets dropped.
This measures the number of received packets that have been dropped due to either having no BluetoothPipe attached, or having a BluetoothPipe with a full receive buffer.
Sifteo SDK v1.1.0 (see all versions)
Last updated Tue Dec 23 2014, by Doxygen