Callbacks¶
|
Details¶
- GstNet.PtpStatisticsCallback(domain, stats, *user_data)¶
- Parameters:
domain (
int) – PTP domain identifierstats (
Gst.Structure) – New statisticsuser_data (
objectorNone) – Data passed toGstNet.ptp_statistics_callback_add()
- Return type:
The statistics can be the following structures:
GstNet.PTP_STATISTICS_NEW_DOMAIN_FOUND: “domain”GObject.TYPE_UINTThe domain identifier of the domain “clock” GST_TYPE_CLOCK The internal clock that is slaved to the PTP domainGstNet.PTP_STATISTICS_BEST_MASTER_CLOCK_SELECTED: “domain”GObject.TYPE_UINTThe domain identifier of the domain “master-clock-id”GObject.TYPE_UINT64PTP clock identifier of the selected master clock “master-clock-port”GObject.TYPE_UINTPTP port number of the selected master clock “grandmaster-clock-id”GObject.TYPE_UINT64PTP clock identifier of the grandmaster clockGstNet.PTP_STATISTICS_PATH_DELAY_MEASURED: “domain”GObject.TYPE_UINTThe domain identifier of the domain “mean-path-delay-avg” GST_TYPE_CLOCK_TIME Average mean path delay “mean-path-delay” GST_TYPE_CLOCK_TIME Latest mean path delay “delay-request-delay” GST_TYPE_CLOCK_TIME Delay of DELAY_REQ / DELAY_RESP messagesGstNet.PTP_STATISTICS_TIME_UPDATED: “domain”GObject.TYPE_UINTThe domain identifier of the domain “mean-path-delay-avg” GST_TYPE_CLOCK_TIME Average mean path delay “local-time” GST_TYPE_CLOCK_TIME Local time that corresponds to ptp-time “ptp-time” GST_TYPE_CLOCK_TIME Newly measured PTP time at local-time “estimated-ptp-time” GST_TYPE_CLOCK_TIME Estimated PTP time based on previous measurements “discontinuity”GObject.TYPE_INT64Difference between estimated and measured PTP time “synced”GObject.TYPE_BOOLEANCurrently synced to the remote clock “r-squared”GObject.TYPE_DOUBLER² of clock estimation regression “internal-time” GST_TYPE_CLOCK_TIME Internal time clock parameter “external-time” GST_TYPE_CLOCK_TIME External time clock parameter “rate-num”GObject.TYPE_UINT64Internal/external rate numerator “rate-den”GObject.TYPE_UINT64Internal/external rate denominator “rate”GObject.TYPE_DOUBLEInternal/external rateIf
Falseis returned, the callback is removed and never called again.