DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
stbhwfp.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 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  *******************************************************************************/
24 // pre-processor mechanism so multiple inclusions don't cause compilation error
25 
26 #ifndef _STBHWFP_H
27 #define _STBHWFP_H
28 
29 #include "techtype.h"
30 
31 //---Constant and macro definitions for public use-----------------------------
32 
33 //---Enumerations for public use-----------------------------------------------
34 typedef enum
35 {
36  WAKEUP_UNKNOWN = 0,
37  WAKEUP_TIMER,
38  WAKEUP_USER
39 } E_FRONTPANEL_WAKEUP_TYPE;
40 
41 typedef enum
42 {
43  LED_OFF = 0,
44  LED_ON,
45  LED_BLINKING
46 } E_LED_STATE;
47 
48 //---Global type defs for public use-------------------------------------------
49 
50 //---Global Function prototypes for public use---------------------------------
54 void STB_FPInitialise(void);
55 
60 void STB_FPKeyEnable(BOOLEAN enable);
61 
66 void STB_FPRemoteEnable(BOOLEAN enable);
67 
72 void STB_FPSetHandsetCode(U16BIT hset_code);
73 
80 void STB_FPDisplayString(const char *string, U8BIT scrollstep, U16BIT scrollrate);
81 
92 void STB_FPSetClock(U16BIT mjd, U16BIT year, U8BIT month, U8BIT day, U8BIT hours, U8BIT minutes, U8BIT seconds);
93 
98 void STB_FPShowClock(BOOLEAN show);
99 
113 void STB_FPSetWakeUpTime(U16BIT mjd, U16BIT year, U8BIT month, U8BIT day, U8BIT hours, U8BIT minutes,
114  U32BIT time_in_mins);
115 
122 void STB_FPSetStandby(BOOLEAN standby);
123 
133 E_FRONTPANEL_WAKEUP_TYPE STB_FPGetWakeUpType(void);
134 
140 void STB_FPSetLedState(U8BIT led_id, E_LED_STATE led_state, U16BIT period, U8BIT duty_cycle);
141 
142 void STB_FPWaitForUserInput(void);
143 U8BIT STB_FPGetDisplaySize(void);
144 void STB_FPAnimation(U8BIT anim_type, U8BIT frame_rate);
145 void STB_FPRefreshWatchdog(void);
146 void STB_FPSetWdogPeriod(U16BIT watchdog_period);
147 void STB_FPSetAutoStandby(BOOLEAN auto_standby);
148 void STB_FPSetAutoStandbyTime(U8BIT minute);
149 
150 #endif // _STBHWFP_H
void STB_FPShowClock(BOOLEAN show)
Instructs the front panel to show/hide the time.
void STB_FPSetWakeUpTime(U16BIT mjd, U16BIT year, U8BIT month, U8BIT day, U8BIT hours, U8BIT minutes, U32BIT time_in_mins)
Sets the local time when the front panel should come out of standby. The date is passed as mjd and as...
void STB_FPSetClock(U16BIT mjd, U16BIT year, U8BIT month, U8BIT day, U8BIT hours, U8BIT minutes, U8BIT seconds)
Set the current date on the front panel.
void STB_FPKeyEnable(BOOLEAN enable)
Globally enables the front panel keys.
void STB_FPSetLedState(U8BIT led_id, E_LED_STATE led_state, U16BIT period, U8BIT duty_cycle)
Turns front panel LEDs on or off.
void STB_FPSetHandsetCode(U16BIT hset_code)
Sets the handset code/id of the remote control.
void STB_FPDisplayString(const char *string, U8BIT scrollstep, U16BIT scrollrate)
Show a static or scrolling text string on the front panel.
void STB_FPInitialise(void)
Initialise the Front Panel and Remote Control components.
System Wide Global Technical Data Type Definitions.
void STB_FPSetStandby(BOOLEAN standby)
Controls the box low power standby status.
void STB_FPRemoteEnable(BOOLEAN enable)
Globally enables the remote control keys.
E_FRONTPANEL_WAKEUP_TYPE STB_FPGetWakeUpType(void)
Returns the wake up type.