| 1 | /* |
|---|
| 2 | |
|---|
| 3 | MxL201RF Source Code : V6.2.5.0 |
|---|
| 4 | |
|---|
| 5 | Copyright, Maxlinear, Inc. |
|---|
| 6 | All Rights Reserved |
|---|
| 7 | |
|---|
| 8 | File Name: MxL201RF.h |
|---|
| 9 | |
|---|
| 10 | */ |
|---|
| 11 | |
|---|
| 12 | #if defined( __cplusplus ) |
|---|
| 13 | extern "C" /* Use "C" external linkage */ |
|---|
| 14 | { |
|---|
| 15 | #endif |
|---|
| 16 | |
|---|
| 17 | #include "MxL201RF_Common.h" |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | typedef struct |
|---|
| 21 | { |
|---|
| 22 | UINT8 Num; /*Register number */ |
|---|
| 23 | UINT8 Val; /*Register value */ |
|---|
| 24 | } IRVType, *PIRVType; |
|---|
| 25 | |
|---|
| 26 | /* Initializes the registers of the chip */ |
|---|
| 27 | UINT32 MxL201RF_Init(UINT8* pArray, /* a array pointer that store the addr and data pairs for I2C write */ |
|---|
| 28 | UINT32* Array_Size, /* a integer pointer that store the number of element in above array */ |
|---|
| 29 | UINT8 Mode, /* Standard */ |
|---|
| 30 | UINT32 Xtal_Freq_Hz, /* Crystal Frequency in Hz */ |
|---|
| 31 | UINT32 IF_Freq_Hz, /* IF Frequency in Hz */ |
|---|
| 32 | UINT8 Invert_IF, /* Inverted IF Spectrum: 1, or Normal IF: 0 */ |
|---|
| 33 | UINT8 Clk_Out_Enable, /* Enable Crystal Clock out */ |
|---|
| 34 | UINT8 Clk_Out_Amp, /* Clock out amplitude: 0 min, 15 max */ |
|---|
| 35 | UINT8 Xtal_Cap /* Internal Crystal Capacitance */ |
|---|
| 36 | ); |
|---|
| 37 | /* Sets registers of the tuner based on RF freq, BW, etc. */ |
|---|
| 38 | UINT32 MxL201RF_RFTune(UINT8* pArray, UINT32* Array_Size, |
|---|
| 39 | UINT32 RF_Freq, /* RF Frequency in Hz */ |
|---|
| 40 | UINT8 BWMHz, /* Bandwidth in MHz */ |
|---|
| 41 | UINT8 Mode |
|---|
| 42 | ); |
|---|
| 43 | UINT32 SetIRVBit(PIRVType pIRV, UINT8 Num, UINT8 Mask, UINT8 Val); |
|---|
| 44 | |
|---|
| 45 | #if defined( __cplusplus ) |
|---|
| 46 | } |
|---|
| 47 | #endif |
|---|