/** * @brief Sets the clock source time interface (802.1AS 9.2) * @param fup Follow up message * @return void */ void setClockSourceTime(FollowUpTLV *fup) { tlv.setGMTimeBaseIndicator(fup->getGMTimeBaseIndicator()); tlv.setScaledLastGmFreqChange(fup->getScaledLastGmFreqChange()); tlv.setScaledLastGmPhaseChange(fup->getScaledLastGmPhaseChange()); }
/** * @brief Updates the follow up info internal object with the current clock source time * status values. This method should be called whenever the clockSource entity time * base changes (IEEE 802.1AS-2011 Clause 9.2) * @return void */ void updateFUPInfo(void) { fup_info->incrementGMTimeBaseIndicator(); fup_info->setScaledLastGmFreqChange(fup_status->getScaledLastGmFreqChange()); fup_info->setScaledLastGmPhaseChange(fup_status->getScaledLastGmPhaseChange()); }