![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
This module implements the Best Master Clock Algorithm. More...
#include "ptp_types.h"Go to the source code of this file.
Functions | |
| int | ptp_select_better_master (PtpMasterProperties *pMP1, PtpMasterProperties *pMP2) |
| void | ptp_handle_announce_msg (PtpAnnounceBody *pAnn, PtpHeader *pHeader) |
| void | ptp_bmca_init () |
| void | ptp_bmca_destroy () |
| void | ptp_bmca_reset () |
| void | ptp_bmca_tick () |
This module implements the Best Master Clock Algorithm.
Definition in file bmca.h.
| void ptp_bmca_tick | ( | ) |
| void ptp_handle_announce_msg | ( | PtpAnnounceBody * | pAnn, |
| PtpHeader * | pHeader | ||
| ) |
Handle announce messages.
| pAnn | pointer to PtpAnnounceBody object |
| pHeader | pointer to Announce message header |
| int ptp_select_better_master | ( | PtpMasterProperties * | pMP1, |
| PtpMasterProperties * | pMP2 | ||
| ) |