MHEG5
15.3.0
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2005 Ocean Blue Software Ltd 00004 * Copyright © 2000 Koninklijke Philips Electronics N.V 00005 * 00006 * This file is part of a DTVKit Software Component 00007 * You are permitted to copy, modify or distribute this file subject to the terms 00008 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00009 * 00010 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00011 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00012 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00013 * 00014 * If you or your organisation is not a member of DTVKit then you have access 00015 * to this source code outside of the terms of the licence agreement 00016 * and you are expected to delete this and any associated files immediately. 00017 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00018 *******************************************************************************/ 00043 #ifndef _MHEGTIMERS_H 00044 #define _MHEGTIMERS_H 00045 00046 /*---includes for this file--------------------------------------------------*/ 00047 00048 #include <techtype.h> 00049 #include "mherrors.h" 00050 00051 /*---Constant and macro definitions for public use---------------------------*/ 00052 00053 /*---Enumerations for public use---------------------------------------------*/ 00054 00055 /*---Global type defs for public use-----------------------------------------*/ 00056 00057 typedef void *H_Timer; 00058 00059 /******************************************************************************* 00060 * NAME: F_TimerCallback 00061 * Callback called either when a timer expires or an unexpired timer is 00062 * destroyed. 00063 * 00064 * Returns : void 00065 * 00066 * Parameter Flow Description 00067 * ------------------------------------------------------------------------------ 00068 * triggered IN True when the callback is invoked because the timer has 00069 * expired, otherwise false. 00070 * callerRef IN Caller reference which was passed when the timer was 00071 * created. 00072 * timerHandle IN Handle of the timer that caused the callback to be 00073 * invoked. 00074 * 00075 *******************************************************************************/ 00076 typedef void (*F_TimerCallback)( BOOLEAN triggered, 00077 void *callerRef, 00078 H_Timer timerHandle ); 00079 00080 /*---Global variable declarations for public use-----------------------------*/ 00081 00082 /*---Global Function prototypes for public use-------------------------------*/ 00083 00084 #define mhegTimerCreate VT_TimerCreate 00085 #define mhegTimerDestroy VT_TimerDestroy 00086 00100 E_MhegErr VT_TimerCreate( U32BIT millisecs, F_TimerCallback callback, 00101 void *callerRef, H_Timer *pTimerHandle); 00102 00111 E_MhegErr VT_TimerDestroy( H_Timer timerHandle ); 00112 00113 00122 E_MhegErr VT_TimersInit(U32BIT task_priority); 00123 00131 E_MhegErr VT_TimersExit(void); 00132 00133 #endif /*_MHEGTIMERS_H*/