Go to the documentation of this file.
65 #ifndef __PACKETERRORRATEESTIMATOR_H
66 #define __PACKETERRORRATEESTIMATOR_H
uint8_t m_packetErrorRate
uint16_t m_receivedPacketCount
Thread to periodically estimate packet error rate based on expected packet rate.
int32_t m_expectedPacketsPerSecond
virtual int32_t innerFunction(void)
Updates the packet error rate estimate periodically.
PacketErrorRateEstimator()
Constructor.
void setExpectedPacketsPerSecond(int16_t packetsPerSecond)
Set the expected packet reception rate in packets per second.
virtual ~PacketErrorRateEstimator()
Destructor.
uint8_t packetErrorRate(void) const
Return the currently estimated packet error rate.
A class for a standard thread that has to perform the same action repeatedly.
void packetReceived(void)
Indicate that a packet has been received.
virtual void initFunction(void)
Initializes the estimation parameters.
int64_t m_previousUpdateTime