S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
p_sopc_zephyr_time.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
32#ifndef SOPC_ZEPHYR_TIME_H_
33#define SOPC_ZEPHYR_TIME_H_
34
35#include <stdbool.h>
36#include <stdint.h>
37
38#include "sopc_time_reference.h"
39
49
55
67
75
76#endif /* SOPC_ZEPHYR_TIME_H_ */
float SOPC_Time_GetClockPrecision(void)
returns an evaluation of the system clock precision (relatively to a remote PtP MASTER) This value ca...
SOPC_Time_TimeSource SOPC_Time_GetTimeSource(void)
returns the current time source used for time-related operations (including timestamping)
float SOPC_Time_GetClockCorrection(void)
Provides the information about clock discrepancy towards a PtP master.
SOPC_Time_TimeSource
This file provides time related ZEPHYR-specific implementations which are defined in "sopc_time_refer...
Definition p_sopc_zephyr_time.h:44
@ SOPC_TIME_TIMESOURCE_INTERNAL
Definition p_sopc_zephyr_time.h:45
@ SOPC_TIME_TIMESOURCE_PTP_MASTER
Definition p_sopc_zephyr_time.h:47
@ SOPC_TIME_TIMESOURCE_PTP_SLAVE
Definition p_sopc_zephyr_time.h:46
A platform independent API to handle time reference management.