MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
dvb_misc.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2012 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
28 #ifndef _DVB_MISC_H
29 #define _DVB_MISC_H
30 
31 #include "techtype.h"
32 #include "mherrors.h"
33 
34 /*---Constant and macro definitions for public use-----------------------------*/
35 
36 /*---Enumerations for public use-----------------------------------------------*/
37 
38 /*---Global type defs for public use-------------------------------------------*/
39 
40 /* Structure for holding date and time. */
41 typedef struct s_datetime
42 {
43  /* Examples show the values that should be set to indicate the 1st February,
44  * 2003 at 45 seconds past 1:23 PM.
45  */
46 
47  /* Year, including century.
48  * e.g. 2003
49  */
50  U32BIT year;
51 
52  /* Month number from 1 to 12, representing January to December
53  * e.g. 2
54  */
55  U32BIT month;
56 
57  /* Day of the current month, from 1 to 31
58  * e.g. 1
59  */
60  U32BIT day;
61 
62  /* Hour in 24 hour format, in the range 0 to 23
63  * e.g. 13
64  */
65  U32BIT hour;
66 
67  /* Minute, in the range 0 to 59
68  * e.g. 23
69  */
70  U32BIT minute;
71 
72  /* Second in the range 0 to 59
73  * e.g. 45
74  */
75  U32BIT second;
76 } S_DateTime;
77 
78 
79 /*---Global Function prototypes for public use---------------------------------*/
80 
91 E_MhegErr DVB_MhegGetLocalTime(S_DateTime *pDateAndTime);
92 
117 void DVB_MhegPromotionalLinkControl( BOOLEAN isEnabled );
118 
127 U8BIT DVB_MhegOsdLanguageCodes(U32BIT *langcodes, U8BIT max);
128 
129 #ifdef NOTIFY_KEYPRESS_REQ
130 
137 E_MhegErr DVB_MhegSetInputRegister(S32BIT inputReg);
138 
139 #endif /* NOTIFY_KEYPRESS_REQ */
140 
141 #ifdef INCLUDE_DEBUG_PACKAGE
142 
148 E_MhegErr DVB_MhegOutputDebugString(U8BIT *debugString);
149 
150 #endif /* INCLUDE_DEBUG_PACKAGE */
151 
152 #endif /* _DVB_MISC_H */
E_MhegErr DVB_MhegGetLocalTime(S_DateTime *pDateAndTime)
Provide the current local time and date, normally from the system real time clock, with any local time conversions (if necessary). The returned time should take into account local timezone and daylight saving settings.
void DVB_MhegPromotionalLinkControl(BOOLEAN isEnabled)
This function is relevant to PVR products that support NativeApplicationExtension for broadcast-trigg...
MHEG5 engine interface error codes.
U8BIT DVB_MhegOsdLanguageCodes(U32BIT *langcodes, U8BIT max)
Return the language of the native UI (menu etc.) as a list of language codes in 32 bit integer form...
System Wide Global Technical Data Type Definitions.
Definition: dvb_misc.h:41