source: svn/newcon3bcm2_21bu/magnum/portinginterface/tnr/7552ob/btnr_ob_3x7x.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: 4.4 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2012, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: btnr_ob_3x7x.h $
11 * $brcm_Revision: Hydra_Software_Devel/3 $
12 * $brcm_Date: 3/12/12 1:07p $
13 *
14 * Module Description:
15 *
16 * Revision History:  $
17 *
18 * $brcm_Log: /magnum/portinginterface/tnr/7552ob/btnr_ob_3x7x.h $
19 *
20 * Hydra_Software_Devel/3   3/12/12 1:07p farshidf
21 * SW3461-1: add the AOB to tuner callback
22 *
23 * Hydra_Software_Devel/2   1/11/12 3:44p farshidf
24 * SW7552-176: fix the header file
25 *
26 * Hydra_Software_Devel/1   12/8/11 11:28p farshidf
27 * SW7552-170: first version of OOB tuner for B0 verification
28 *
29 ***************************************************************************/
30#ifndef BTNR_OB_3x7x_H__
31#define BTNR_OB_3x7x_H__
32
33#include "bchp.h"
34#include "btnr.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40typedef struct
41{
42    unsigned short i2cAddr;             /* 7bit I2C address of Bcm7550 */
43        BTMR_Handle hTmr;
44        BMEM_Heap_Handle hHeap;
45} BTNR_Ob_3x7x_Settings;
46
47/***************************************************************************
48Summary:
49    This function returns the default settings for Bcm3x7x Tuner module.
50
51Description:
52    This function is responsible for returns the default setting for
53    BTNR module. The returning default setting should be when
54    opening the device.
55
56Returns:
57    TODO:
58
59See Also:
60    BTNR_Ob_3x7x_Open()
61
62****************************************************************************/
63BERR_Code BTNR_Ob_3x7x_GetDefaultSettings(
64    BTNR_Ob_3x7x_Settings *pDefSettings  /* [out] Returns default setting */
65    );
66
67
68/***************************************************************************
69Summary:
70    This function opens Bcm3x7x Tuner module.
71
72Description:
73    This function is responsible for opening Bcm3x7x BTNR module. When BTNR is
74    opened, it will create a module handle and configure the module based
75    on the default settings. Once the device is opened, it must be closed
76    before it can be opened again.
77
78Returns:
79    TODO:
80
81See Also:
82    BTNR_Ob_Close(), BTNR_Ob_3x7x_GetDefaultSettings()
83
84****************************************************************************/
85
86BERR_Code BTNR_Ob_3x7x_Open(BTNR_Handle *phDev, 
87                BTNR_Ob_3x7x_Settings *pSettings, 
88                BREG_Handle hRegister);
89
90
91/***************************************************************************
92Summary:
93    Function called once the event is sent to upper layer
94
95        BTNR_Ob_3x7x_ProcessInterruptEvent
96****************************************************************************/
97BERR_Code BTNR_Ob_3x7x_ProcessInterruptEvent(BTNR_Handle hDev);
98
99/***************************************************************************
100Summary:
101    Function called by upper to get the inetrrupt handle
102
103        BTNR_Ob_3x7x_GetInterruptEventHandle
104****************************************************************************/
105BERR_Code BTNR_Ob_3x7x_GetInterruptEventHandle(BTNR_Handle h, BKNI_EventHandle* hEvent);
106
107
108/***************************************************************************
109Summary:
110        BTNR_Ob_3x7x_P_TimerFunc
111****************************************************************************/
112BERR_Code BTNR_Ob_3x7x_P_TimerFunc(void *myParam1, int myParam2);
113
114
115typedef struct
116{
117        int32_t                     Total_Mix_After_ADC;    /*Sum of mixer frequencies after ADC on eRequestMode*/
118        int16_t                     PreADC_Gain_x256db ;    /*Gain in db*256 before ADC on eRequestMode: set to 0x8000 if unknown*/
119        int16_t                     PostADC_Gain_x256db;    /*Gain in db*256 after ADC on eRequestMode: set to 0x8000 if unknown*/
120        int16_t                     External_Gain_x256db;   /*Gain in db*256 external to chip (like external LNA) on eRequestMode: set to 0x8000 if unknown*/
121} BTNR_Ob_3x7x_RfStatus_t;
122
123/******************************************************************************
124  BTNR_3x7x_Ob_Get_RF_Status()
125  callback from Demod to Tuner through above layer
126 ******************************************************************************/
127BERR_Code BTNR_Ob_3x7x_Get_RF_Status(BTNR_Handle hTnrDev, BTNR_Ob_3x7x_RfStatus_t *RfCallbackStatus);
128
129
130
131#ifdef __cplusplus
132}
133#endif
134 
135#endif
136
137
138
Note: See TracBrowser for help on using the repository browser.