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
|
/*****************************************************************************
Copyright(c) 2009 FCI Inc. All Rights Reserved
File name : tuner.h
Description : tuner control driver header
History :
----------------------------------------------------------------------
2009/08/29 jason initial
*******************************************************************************/
#ifndef __TUNER_H__
#define __TUNER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "fci_types.h"
#include "bbm.h"
typedef enum {
FCI_I2C_TYPE = 0,
ADI_I2C_TYPE
} i2c_type;
typedef enum {
BAND3_TYPE = 0,
LBAND_TYPE,
ISDBT_1_SEG_TYPE,
FM_TYPE
} band_type;
typedef enum {
FC8000_TUNER = 0,
FC2507_TUNER,
FC2580_TUNER,
FC8100_TUNER
} product_type;
extern int tuner_i2c_init(HANDLE hDevice, int speed, int slaveaddr);
extern int tuner_i2c_read(HANDLE hDevice, u8 addr, u8 alen, u8 *data, u8 len);
extern int tuner_i2c_write(HANDLE hDevice, u8 addr, u8 alen, u8 *data, u8 len);
extern int tuner_select(HANDLE hDevice, u32 product, u32 band);
extern int tuner_deselect(HANDLE hDevice);
extern int tuner_set_freq(HANDLE hDevice, u8 ch_num);
extern int tuner_get_rssi(HANDLE hDevice, s32 *rssi);
#ifdef __cplusplus
}
#endif
#endif
|