|
Last change
on this file since 22 was
22,
checked in by phkim, 11 years ago
|
- phkim
- newcon3sk 를 kctv 로 브랜치 함
|
-
Property svn:executable set to
*
|
|
File size:
2.0 KB
|
| Line | |
|---|
| 1 | #ifndef __S5H1411_H_ |
|---|
| 2 | #define __S5H1411_H_ |
|---|
| 3 | |
|---|
| 4 | ///////////////////define////////////////////// |
|---|
| 5 | |
|---|
| 6 | // id : s5h1411 ¿¡ ÇÒ´çµÈ FE ID?? |
|---|
| 7 | #define CHECK_s5h1411_id(id) { \ |
|---|
| 8 | } |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | /////////////////typedef////////////////////// |
|---|
| 15 | typedef unsigned char DATA08; |
|---|
| 16 | typedef unsigned short DATA16; |
|---|
| 17 | typedef unsigned int DATA32; |
|---|
| 18 | typedef int I2C_STATUS; |
|---|
| 19 | typedef double DATA_DOUBLE; |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | typedef struct { |
|---|
| 23 | DATA08 Major; |
|---|
| 24 | DATA08 Minor; |
|---|
| 25 | DATA08 Custom; |
|---|
| 26 | //SSdtTuner_t Tuner; |
|---|
| 27 | } SSdtVersion_s; |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | typedef enum{ |
|---|
| 31 | SSDT_ERR_NO = 0, |
|---|
| 32 | SSDT_ERR_I2C = 1, |
|---|
| 33 | SSDT_ERR_INIT = 2, |
|---|
| 34 | SSDT_ERR_RUN = 4, |
|---|
| 35 | SSDT_ERR_PARAM = 8, /*----- Invalid parameter check -----*/ |
|---|
| 36 | SSDT_ERR_CHECK_FUNC = 16, /*----- Error returned from LgdtCheck...() -----*/ |
|---|
| 37 | SSDT_ERR_ALTER_FUNC = 32, /*----- Error returned from LgdtAlter...() -----*/ |
|---|
| 38 | SSDT_ERR_SCAN = 64, /*----- Channel Scan -----*/ |
|---|
| 39 | SSDT_ERR_ANT = 128, /*----- Smart Antenna -----*/ |
|---|
| 40 | SSDT_ERR_TUNER = 256, /*----- Reserved for a tuner manufacturer -----*/ |
|---|
| 41 | SSDT_ERR_OTHER = 512 |
|---|
| 42 | }SSdtReturn_t; |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | typedef enum{ |
|---|
| 47 | SSDT_QAM64 = 0x00, |
|---|
| 48 | SSDT_QAM256 = 0x01, |
|---|
| 49 | SSDT_VSB = 0x03, |
|---|
| 50 | SSDT_ANTENNA= 0x05 |
|---|
| 51 | }SSdtOperMode_t; |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | typedef enum{ |
|---|
| 55 | SSDT_PARAL = 0x00, |
|---|
| 56 | SSDT_SERIAL = 0x01 |
|---|
| 57 | }SSdtMpegMode_t; |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | typedef enum{ |
|---|
| 61 | SSDT_CLOCK_LOW = 0x00, |
|---|
| 62 | SSDT_CLOCK_HIGH = 0x01 |
|---|
| 63 | }SSdtClock_t; |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | typedef enum { |
|---|
| 67 | SSDT_NOT_INVERTED = 0, |
|---|
| 68 | SSDT_INVERTED = 1 |
|---|
| 69 | } SSdtInvert_t; |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | typedef enum { |
|---|
| 73 | SSDT_LSB1ST = 0, |
|---|
| 74 | SSDT_MSB1ST = 1 |
|---|
| 75 | } SSdtData1st_t; |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | typedef enum { |
|---|
| 79 | SSDT_ERRINS_DISABLE = 0, |
|---|
| 80 | SSDT_ERRINS_ENABLE = 1 |
|---|
| 81 | } SSdtErrins_t; |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | typedef enum { |
|---|
| 85 | SSDT_GATED_CLOCK = 0, |
|---|
| 86 | SSDT_FIXED_CLOCK = 1 |
|---|
| 87 | } SSdtTpclkmod_t; |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | typedef enum { |
|---|
| 91 | SSDT_PolyPRBS15 = 0, |
|---|
| 92 | SSDT_PolyPRBS23 = 1, |
|---|
| 93 | SSDT_PolyPRBS = 2, /*----- etc -----*/ |
|---|
| 94 | } SSdtPolyPRBS_t; |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | I2C_STATUS Sec_1411xRegReset(); //All register values to have default values-> initalize register |
|---|
| 101 | I2C_STATUS Sec_1411xInitialize(); //initalize the register value, and VSB mode is set as a default |
|---|
| 102 | DATA_DOUBLE SnrLookUpTable(int SnrRead); |
|---|
| 103 | |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.