| 1 | /******************************************************************** |
|---|
| 2 | * SemcoMxL601.h |
|---|
| 3 | * MxL601 Header Files |
|---|
| 4 | * By WillowAndi 2011/11/14 |
|---|
| 5 | *********************************************************************/ |
|---|
| 6 | |
|---|
| 7 | #ifndef _SEMCO_MXL601_H |
|---|
| 8 | #define _SEMCO_MXL601_H |
|---|
| 9 | |
|---|
| 10 | #include <stdio.h> |
|---|
| 11 | #include "MxL601_TunerApi.h" |
|---|
| 12 | #include "MxL601_OEM_Drv.h" |
|---|
| 13 | |
|---|
| 14 | #if defined( __cplusplus ) |
|---|
| 15 | extern "C" /* Use "C" external linkage */ |
|---|
| 16 | { |
|---|
| 17 | #endif |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | /* Initialize MxL601 */ |
|---|
| 22 | int SemcoMxL601_Init(int nUnit, int nMode, int nXtalCap, int nIF, int nGainLevel); |
|---|
| 23 | /* Soft Reset */ |
|---|
| 24 | void SemcoMxL601_SoftReset(int nUnit); |
|---|
| 25 | /* Set IF */ |
|---|
| 26 | int SemcoMxL601_SetIF(int nUnit, int nSelIF, int nGainLevel); |
|---|
| 27 | int SemcoMxL601_SelIF(int nSelIF); |
|---|
| 28 | /* Set AGC */ |
|---|
| 29 | int SemcoMxL601_SetAGC(int nUnit, int nType, int nMode); |
|---|
| 30 | /* Set Application Mode */ |
|---|
| 31 | int SemcoMxL601_SetMode(int nUnit, int nMode); |
|---|
| 32 | |
|---|
| 33 | /* Set Frequency */ |
|---|
| 34 | int SemcoMxL601_SetFrequency(int nUnit, unsigned int nFreq_Hz, int nBandWidth); |
|---|
| 35 | /* Get Lock Status */ |
|---|
| 36 | unsigned char SemcoMxL601_GetLock(int nUnit); |
|---|
| 37 | /* Get Power Level */ |
|---|
| 38 | float SemcoMxL601_GetPowerLevel(int nUnit); |
|---|
| 39 | /* Get Chip Information */ |
|---|
| 40 | void SemcoMxL601_GetChipInfo(int nUnit, int *lpChipId, int *lpChipVer); |
|---|
| 41 | |
|---|
| 42 | #if defined( __cplusplus ) |
|---|
| 43 | } |
|---|
| 44 | #endif |
|---|
| 45 | |
|---|
| 46 | #endif |
|---|