Mistake on this page? Email us
pal_plat_time.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright 2016-2018 ARM Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *******************************************************************************/
16 
17 #ifndef _PAL_PLAT_TIME_H
18 #define _PAL_PLAT_TIME_H
19 
20 #include <stdint.h>
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
45 
55 uint64_t pal_plat_osGetTime(void);
56 
64 palStatus_t pal_plat_osSetTime(uint64_t seconds);
65 
88 palStatus_t pal_plat_osSetWeakTime(uint64_t setTimeInSeconds);
89 
105 palStatus_t pal_plat_osSetStrongTime(uint64_t setTimeInSeconds);
106 
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 #endif //_PAL_PLAT_TIME_H
palStatus_t pal_plat_osSetStrongTime(uint64_t setTimeInSeconds)
Set the strong time. This function will be called when receiving time from a server that is completel...
palStatus_t pal_plat_osSetTime(uint64_t seconds)
Set the current system time by accepting seconds since January 1st 1970 UTC+0.
palStatus_t pal_plat_initTime(void)
Initialize the time module After boot, the time in RAM will be initialized with the higher value of R...
palStatus_t pal_plat_osSetWeakTime(uint64_t setTimeInSeconds)
Set the weak time.
int32_t palStatus_t
Definition: pal_types.h:49
uint64_t pal_plat_osGetTime(void)
Get the system time.