My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
otz_tee_timer.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * TIMER implementation
25  *
26  */
27 #ifndef __OTZ_TEE_TIMER_H_
28 #define __OTZ_TEE_TIMER_H_
29 
33 typedef struct {
36  }TEE_Time;
37 
38 
44 void TEE_GetSystemTime( TEE_Time* time );
45 
53 TEE_Result TEE_Wait( u32 timeout );
54 
63 
72 
78 void TEE_GetREETime( TEE_Time* time);
Definition: otz_tee_timer.h:33
unsigned int uint32_t
Definition: otz_api.h:35
uint32_t seconds
Definition: otz_tee_timer.h:34
void TEE_GetREETime(TEE_Time *time)
Retrieves the current REE system time.
Definition: otz_tee_timer.c:105
TEE_Result TEE_SetTAPersistentTime(TEE_Time *time)
Sets the Persistent time of the current Trusted Apllication.
Definition: otz_tee_timer.c:66
TEE_Result TEE_GetTAPersistentTime(TEE_Time *time)
Retrieves the persistent time of the Trusted Application.
Definition: otz_tee_timer.c:80
uint32_t milli_seconds
Definition: otz_tee_timer.h:35
TEE_Result TEE_Wait(u32 timeout)
Waits for specified number of milli seconds given in timeout.
Definition: otz_tee_timer.c:54
uint32_t TEE_Result
Definition: otz_tee_api.h:87
void TEE_GetSystemTime(TEE_Time *time)
This function is called to retrieve current system time.
Definition: otz_tee_timer.c:38