|
SatCat5
|
Helper class for sending unicast Sync messages to an L2 client.
This helper class sends unicast Sync messages on a separate timer. IEEE1588 Section 9.5.9.2 allows this rate to be as high as needed, if client and server administrators agree on the configuration.
Definition at line 242 of file ptp_client.h.
#include <ptp_client.h>
Public Member Functions | |
| SyncUnicastL2 (satcat5::ptp::Client *client) | |
| Create this object. | |
| void | connect (const satcat5::eth::MacAddr &addr) |
| Set the destination for outgoing SYNC messages. | |
| void | timer_once (unsigned msec) |
| Configure a one-time notification after X milliseconds. | |
| void | timer_every (unsigned msec) |
| Configure a repeating notification every X milliseconds. | |
| void | timer_stop () |
| Stop all future notifications. | |
| unsigned | timer_interval () const |
| Accessor for recurring timer interval, if one is set. | |
| unsigned | timer_remaining () const |
| Accessor for time to next event, if one is set. | |
Static Public Member Functions | |
| static unsigned | count_timer () |
| Count all objects of this type, including idle timers. | |
Protected Member Functions | |
| void | timer_event () |
| Child class MUST override this method. | |
Protected Attributes | |
| satcat5::ptp::Client *const | m_client |
| satcat5::eth::MacAddr | m_dstmac |
Private Member Functions | |
| void | query (unsigned elapsed_msec) |
Private Attributes | |
| satcat5::poll::Timer * | m_next |
| unsigned | m_trem |
| unsigned | m_tnext |