summaryrefslogtreecommitdiffstats
path: root/api/TDA18271_C2.h
blob: 1a532ab5f8710a7d3399dbcb38899e2d6df3d8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
//-----------------------------------------------------------------------------
// $Header: 
// (C) Copyright 2001 NXP Semiconductors, All rights reserved
//
// This source code and any compilation or derivative thereof is the sole
// property of NXP Corporation and is provided pursuant to a Software
// License Agreement.  This code is the proprietary information of NXP
// Corporation and is confidential in nature.  Its use and dissemination by
// any party other than NXP Corporation is strictly limited by the
// confidential information provisions of the Agreement referenced above.
//-----------------------------------------------------------------------------
// FILE NAME:    tmbslTDA18271_C2.h
//
// DESCRIPTION:  define the object for the TDA18271_C2
//
// DOCUMENT REF: DVP Software Coding Guidelines v1.14
//               DVP Board Support Library Architecture Specification v0.5
//
// NOTES:        
//-----------------------------------------------------------------------------
//
#ifndef _TMBSL_TDA18271_C2_H //-----------------
#define _TMBSL_TDA18271_C2_H

//-----------------------------------------------------------------------------
// Standard include files:
//-----------------------------------------------------------------------------
//

//-----------------------------------------------------------------------------
// Project include files:
//-----------------------------------------------------------------------------
//
//#ifndef NXPFE
#ifdef __cplusplus
extern "C"
{
#endif
//#endif // NXPFE

//-----------------------------------------------------------------------------
// Types and defines:
//-----------------------------------------------------------------------------
//
tmErrorCode_t
TDA18271Init_C2 (
			  tmUnitSelect_t			TunerUnit	// I: Tuner Object
			  );
Bool_ 
TDA18271InitTick_C2(
			  ptmTDA18271Object_t_C2	pObj,	    // I: Tuner unit number
			  UInt16					wTime		// I: time to wait forTDA18271Init
			  );
Bool_ 
TDA18271WaitTick_C2(
			  ptmTDA18271Object_t_C2	pObj		// I: Tuner unit number
			  );
Bool_ 
TDA18271Write_C2(
			  ptmTDA18271Object_t_C2	pObj,		// I: Tuner unit number
			  UInt8					    uSubAddress,// I: sub address
			  UInt8					    uNbData		// I: nb of data
			  );
Bool_ 
TDA18271Read_C2(
			 ptmTDA18271Object_t_C2		pObj,		// I: Tuner unit number
			 UInt8					    uSubAddress,// I: sub address
			 UInt8					    uNbData		// I: nb of data
			 );
Bool_ 
TDA18271Wait_C2(
			 ptmTDA18271Object_t_C2		pObj,		//  I: Tuner unit number
			 UInt16					    wTime		//  I: time to wait for
			 );
Bool_ 
TDA18271ShiftLog_C2(
			 ptmTDA18271Object_t_C2	    pObj, 	    // I: Tuner unit number
			 UInt32					    uNbRows	    // I: nb of lines
			 );
tmErrorCode_t
TDA18271SetStandardMode_C2(
			 ptmTDA18271Object_t_C2		pObj,		// I: tuner Object
			 tmTDA18271StandardMode_t_C2	StandardMode// I: Standard mode of this device
			 );
tmErrorCode_t
TDA18271GetStandardMode_C2(
			 ptmTDA18271Object_t_C2			pObj,			// I: tuner Object
			 tmTDA18271StandardMode_t_C2	*pStandardMode	// I: Standard mode of this device
			 );
tmErrorCode_t
TDA18271SetPowerState_C2(
			 ptmTDA18271Object_t_C2		pObj,		// I: tuner Object
			 tmTDA18271PowerState_t_C2	powerState	// I: Power state of this device
			 );
tmErrorCode_t
TDA18271GetPowerState_C2(
			 ptmTDA18271Object_t_C2 	pObj,		// I: tuner Object
			 tmTDA18271PowerState_t_C2	*pPowerState// I: Power state of this device
			 );
Bool_
TDA18271CalcMAINPLL_C2 (
			 ptmTDA18271Object_t_C2	    pObj,		// I: tuner Object
			 UInt32					    uLO			// I: local oscillator frequency in hertz
			 );
Bool_
TDA18271CalcCALPLL_C2 (
			 ptmTDA18271Object_t_C2		pObj,		// I: tuner Object
			 UInt32					    uLO			// I: local oscillator frequency in hertz
			 );
tmErrorCode_t
TDA18271CalcRFFilterCurve_C2 (
			 ptmTDA18271Object_t_C2		pObj		// I: tuner Object
			 );
tmErrorCode_t
TDA18271RFTrackingFiltersInit_C2 (
			 ptmTDA18271Object_t_C2			pObj,			// I: tuner Object
			 ptmTDA18271_RF_BAND_Map_t_C2	pRF_BAND_Map	// I: address of RF band map
			 );
tmErrorCode_t
TDA18271CalibrateRF_C2 (
			 ptmTDA18271Object_t_C2		pObj,		// I: tuner Object
			 UInt32					    uRF,		// I: RF frequency in hertz
			 UInt8*					    puCprog     // I: Address of the variable to output the Cprog value
			 );
tmErrorCode_t
TDA18271PowerScan_C2 (
			 ptmTDA18271Object_t_C2		pObj,		// I: Tuner unit number
			 UInt32*					puRF,		// I/O: RF frequency in hertz
			 Bool_*					    pCal		// O: Calibration allowed if pCal = True
			 );
tmErrorCode_t
TDA18271PowerScanInit_C2 (
			 ptmTDA18271Object_t_C2		pObj		// I: Tuner unit number
			 );
tmErrorCode_t
TDA18271ThermometerRead_C2 (
			 ptmTDA18271Object_t_C2		pObj,		// I: Tuner unit number
			 UInt32*					puValue		// O: Read thermometer value
			 );
tmErrorCode_t
allocInstance_C2 (
			 UInt32					    DeviceUnit,	// I: Tuner unit number
			 pptmTDA18271Object_t_C2	ppDrvObject	// I: Tuner Object
			 );
tmErrorCode_t
deAllocInstance_C2 (		
			 UInt32					    DeviceUnit	// I: Tuner unit number
			 );
tmErrorCode_t
getInstance_C2 (
			 tmUnitSelect_t			    DeviceUnit,	// I: Tuner unit number
			 pptmTDA18271Object_t_C2	ppDrvObject	// I: Tuner Object
			 );
tmErrorCode_t
             tmbslTDA18271Init_C2(
             tmUnitSelect_t		        TunerUnit,    //  I: Tuner unit number
             tmbslTuParam_t_C2		    Param         //  I: setup parameters
             );
tmErrorCode_t
    tmbslTDA18271SetConfig_C2(
    tmUnitSelect_t		TunerUnit,  //  I: TunerUnit number
    UInt32				uItemId,    //  I: Identifier of the item to modify
    UInt32				uValue      //  I: Value to set for the config item
    );
tmErrorCode_t
    tmbslTDA18271SetRf_C2(
    tmUnitSelect_t		TunerUnit,  //  I: Tuner unit number
    UInt32				uRF			//  I: RF frequency in hertz
    );

//#ifndef NXPFE
#ifdef __cplusplus
}
#endif
//#endif // NXPFE

#endif // TM<MODULE>_H //---------------