SatCat5
satcat5::test::CountPtpCallback Class Referencefinal

Detailed Description

Count calls to ptp_ready().

See also
ptp::Callback

Definition at line 173 of file sim_utils.h.

#include <sim_utils.h>

Inheritance diagram for satcat5::test::CountPtpCallback:
[legend]
Collaboration diagram for satcat5::test::CountPtpCallback:
[legend]

Public Member Functions

 CountPtpCallback (satcat5::ptp::Source *src)
 
void ptp_ready (const satcat5::ptp::Measurement &data) override
 The child class MUST override this method.
 
unsigned count () const
 Returns the current counter value.
 
void count_reset ()
 Reset the counter to zero.
 

Protected Attributes

unsigned m_count
 
satcat5::ptp::Source *const m_source
 

Private Attributes

satcat5::ptp::Callbackm_next
 

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