source: svn/newcon3bcm2_21bu/dst/app/src/Function/App_Fnc_Power.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 3.4 KB
Line 
1/****************************************************************************
2* NAME: App_Fnc_Power.h
3*----------------------------------------------------------------------------
4* Copyright (c) DIGITAL STREAM Technology Inc.
5*----------------------------------------------------------------------------
6* CREATED_BY: Do Gon Lee
7* CREATION_DATE: 2009/07/08
8* $Author: foxhunt $
9* $Revision: 1.0 $
10* $Date: 2009/07/08 15:08:26 $
11*----------------------------------------------------------------------------
12* PURPOSE:
13*       - This is template file as a reference of application function module.
14*****************************************************************************/
15
16#ifndef __APP_FNC_POWER_H__
17#define __APP_FNC_POWER_H__
18
19/*_____ I N C L U D E __________________________________________*/
20
21
22
23#if COMMENT
24____Overview____(){}
25#endif
26
27
28
29
30
31/*_____ D E F I N I T I O N ____________________________________*/
32
33#if COMMENT
34____Config____(){}
35#endif
36
37
38
39
40
41#if COMMENT
42____Types____(){}
43#endif
44
45/*
46        Power State:
47       
48        - ¸¹Àº platform ¿¡¼­´Â Active Standby ¸ðµå¸¦ Áö¿øÇÏÁö ¾ÊÀ» ¼ö ÀÖ´Ù.
49        - ÀϺΠplatform ¿¡¼­´Â ´õ »ó¼¼ÇÑ ´Ü°èÀÇ power levelÀ» Áö¿øÇÒ ¼öµµ ÀÖ´Ù.
50          ±×·¯ÇÑ °ÍµéÀº ÀÌ ±â´É ¸ðµâ¿¡¼­ Áö¿øÇÏÁö ¾Ê´Â´Ù.
51          ¿¹) ƯÁ¤ ¸ðµå¿¡¼­ ƯÁ¤ component Àü¿øÀ» Á¦¾î
52         
53        - µðÆúÆ® ¸ðµå´Â product ¸¶´Ù ´Ù¸£´Ù.
54*/
55typedef enum
56{
57        eAPP_PS_INIT = -1,        /* ÀÌ ¸ðµå·Î ¼³Á¤µÇ¾î¼­´Â ¾ÈµÊ */
58        eAPP_PS_DEEP_STANDBY = 0, /* ÃÖ¼ÒÇÑÀÇ Àü¿ø »ç¿ë ¸ðµå */
59        eAPP_PS_ACTIVE_STANDBY,   /* »ç¿ëÀÚ ÀÔÀå¿¡¼­ÀÇ Standby ÀÌÁö¸¸ ³»ºÎ µ¿ÀÛ ÇÏ´Â ¸ðµå */
60        eAPP_PS_NORMAL,           /* full power mode */
61       
62        eAPP_PS_MAX,
63       
64} APP_POWER_STATE;
65
66#define APP_POWER_STATE_STR(p) (\
67        (p)==eAPP_PS_DEEP_STANDBY ? "Deep-Stdby" : \
68        (p)==eAPP_PS_ACTIVE_STANDBY ? "Active-Stdby" : \
69        (p)==eAPP_PS_NORMAL ? "Normal" : \
70        (p)==eAPP_PS_INIT ? "Init" : \
71        "??")
72
73
74#if SUPPORT_POD
75
76/*
77  Operation State:
78   - Card ¹× OOB µ¿ÀÛ»óŸ¦ Á¤ÀÇ
79*/
80typedef enum
81{
82        eAPP_OP_INIT = -1,      /* ÀÌ ¸ðµå·Î ¼³Á¤µÇ¾î¼­´Â ¾ÈµÊ */
83        eAPP_OP_CABLE_INB = 0,
84        eAPP_OP_CARD_INB,      /* Ä«µå´Â ÀåÂø µÇ¾úÀ¸³ª OOB½ÅÈ£°¡ ¾ÆÁ÷ */
85        eAPP_OP_OOB_WAITING,   /* QPSK lock µÇ¾ú°í, OOB SI ä³ÎÀÌ ¸¸µé¾îÁú ¶§±îÁö ´ë±âÇÏ´Â ¸ðµå */
86        eAPP_OP_OOB_ACTIVE,    /* OOB SI ä³Î ¸ÊÀÌ ¿Ï¼º. ä³Î Æ©´× °¡´É */
87       
88        eAPP_OP_MAX,
89       
90} APP_OP_STATE;
91
92#define APP_OP_STATE_STR(p) (\
93        (p)==eAPP_OP_CABLE_INB ? "Cable-Inband" : \
94        (p)==eAPP_OP_CARD_INB ? "Card-Inband" : \
95        (p)==eAPP_OP_OOB_WAITING ? "OOB-Waiting" : \
96        (p)==eAPP_OP_OOB_ACTIVE ? "OOB-Active" : \
97        (p)==eAPP_OP_INIT ? "Init mode" : \
98        "??")
99
100
101#define App_Op_IsCardMode() (App_Op_GetOperationState()>=eAPP_OP_CARD_INB)
102#define App_Op_IsOobMode()  (App_Op_GetOperationState()>=eAPP_OP_OOB_WAITING)
103
104#endif /* SUPPORT_POD */
105
106
107
108
109
110#if COMMENT
111____Variables____(){}
112#endif
113
114
115
116
117/*_____ F U N C T I O N ________________________________________*/
118
119#if COMMENT
120____Function____(){}
121#endif
122
123void App_Pwr_ChangePowerState(APP_POWER_STATE state);
124APP_POWER_STATE App_Pwr_GetPowerState(void);
125void App_Pwr_Ready(void);
126
127#if SUPPORT_POD
128void App_Op_CheckOperationState(void);
129void App_Op_ChangeOperationState(APP_OP_STATE state);
130APP_OP_STATE App_Op_GetOperationState(void);
131void App_Op_Start(void);
132#endif
133
134// this is for backward compatibility..
135void App_Pwr_Exit(void);
136void App_Pwr_Reset(void);
137void App_Pwr_Init(void);
138
139
140#endif  /* __APP_FNC_POWER_H__ */
Note: See TracBrowser for help on using the repository browser.