S2OPC OPCUA Toolkit
|
Go to the source code of this file.
Enumerations | |
enum | SOPC_Time_TimeSource { SOPC_TIME_TIMESOURCE_INTERNAL , SOPC_TIME_TIMESOURCE_PTP_SLAVE , SOPC_TIME_TIMESOURCE_PTP_MASTER } |
This file provides time related ZEPHYR-specific implementations which are defined in "sopc_time_reference.h". More... | |
Functions | |
SOPC_Time_TimeSource | SOPC_Time_GetTimeSource (void) |
returns the current time source used for time-related operations (including timestamping) | |
float | SOPC_Time_GetClockPrecision (void) |
returns an evaluation of the system clock precision (relatively to a remote PtP MASTER) This value can be used to check that PtP clock is sufficiently synchronized before allowing some time-related events, typically like sending Publisher messages with PublishOffset constraints. The threshold value may clearly be determined experimentally depending on expected precision. | |
float | SOPC_Time_GetClockCorrection (void) |
Provides the information about clock discrepancy towards a PtP master. | |
enum SOPC_Time_TimeSource |
This file provides time related ZEPHYR-specific implementations which are defined in "sopc_time_reference.h".
Possible time sources
SOPC_Time_TimeSource SOPC_Time_GetTimeSource | ( | void | ) |
returns the current time source used for time-related operations (including timestamping)
float SOPC_Time_GetClockPrecision | ( | void | ) |
returns an evaluation of the system clock precision (relatively to a remote PtP MASTER) This value can be used to check that PtP clock is sufficiently synchronized before allowing some time-related events, typically like sending Publisher messages with PublishOffset constraints. The threshold value may clearly be determined experimentally depending on expected precision.
float SOPC_Time_GetClockCorrection | ( | void | ) |
Provides the information about clock discrepancy towards a PtP master.
1.0 when local clock is slower than actual (PtP) time