📄 eeprom_24c02.h
字号:
/***************************************************************************
Project : TDA7540 Jig board
Compiler : ST7 HiCross C (HiWARE)
Module : eeprom_24C02.h
Version : V 1.0
Created : Jan.24th,2005
Author : Jerry HE / ST-ShenZhen
Description
- EEPROM read write file
Modified
-
***************************************************************************/
EXTR UByteField EEPROMFlag;
#define F_BoardEEPEmpty EEPROMFlag.field.B0
#define BoardEEPWriteOK EEPROMFlag.field.B1
#define F_TunerEEPEmpty EEPROMFlag.field.B2
#define TunerEEPWriteOK EEPROMFlag.field.B3
#define BoardEEPReadReq EEPROMFlag.field.B4
#define BoardEEPWriteReq EEPROMFlag.field.B5
#define TunerEEPReadReq EEPROMFlag.field.B6
#define TunerEEPWriteReq EEPROMFlag.field.B7
#if TDA7540_IC
//#define EEPROM_SIZE 56
#define EEPROM_SIZE 56 //jerry June6-20 testing eeprom value first.
EXTR unsigned char I2c_EepBuff[EEPROM_SIZE];
#define Eep_validflag I2c_EepBuff[0] /*Validation Flag for tuner module */
#define Eep_Year I2c_EepBuff[1] /*Year data */
#define Eep_Month I2c_EepBuff[2] /*Month data */
#define Eep_Date I2c_EepBuff[3] /*Date date */
#define Eep_SiliconVer I2c_EepBuff[4] /*silicon version */
#define Eep_TunerVer I2c_EepBuff[5] /*Module version */
#define Eep_GUIVer I2c_EepBuff[6] /*GUI version */
#define Eep_MCUsoftVer I2c_EepBuff[7] /*Embeded software version */
#define Eep_Reserved1 I2c_EepBuff[8] /*Reserved area 1 */
#define Eep_Reserved2 I2c_EepBuff[9] /*Reserved area 2 */
#define Eep_pll_cpump I2c_EepBuff[10] /*Pll charge pump high and low current*/
#define Eep_pll_pcl I2c_EepBuff[11] /*Pll program counter low byte*/
#define Eep_pll_pch I2c_EepBuff[12] /*Pll program counter high byte*/
#define Eep_tun_tunvolt1 I2c_EepBuff[13] /*Tuning Voltage 1*/
#define Eep_tun_tunvolt2 I2c_EepBuff[14] /*Tuning Voltage 2*/
#define Eep_pll_sampletime I2c_EepBuff[15] /* Lock detect;IF counter status;Mute&AGC;Tsample*/
#define Eep_pll_ewcentre I2c_EepBuff[16] /*Error window; center freqency*/
#define Eep_tun_amcontrol I2c_EepBuff[17] /*AM seek stop constant; multipath pin; AM prescaler; weather band
TV offset; TV tracking in pll; local mode; */
#define Eep_tun_qualityiss I2c_EepBuff[18] /*ISS filter;ISS filter bandwidth;weather band ISS filter
charge/discharge current*/
#define Eep_tun_qualdetAdj I2c_EepBuff[19] /*AC high pass; AC gain; AC narrow band; AC wide band */
#define Eep_tun_qualdetMul I2c_EepBuff[20] /*Multipath thereshold;Multipath gain;Multipath bandpass freq*/
#define Eep_tun_qualdetDev I2c_EepBuff[21] /*ISS fixed bandwidth 80K; dev ratio; dev theres bandwidth
dev charge current xxuA, xuA*/
#define Eep_tun_softmute I2c_EepBuff[22] /*Mute enable; Mute depth; Mute start point */
#define Eep_tun_adjmute I2c_EepBuff[23] /*AC mute filter bandwidth; AC mute theres; AC mute depth*/
#define Eep_tun_vcoplldiv I2c_EepBuff[24] /* PLL for FM/AM; PLL reference freq; VCO 0 degree/180 degree VCO divider */
#define Eep_tun_fmagc I2c_EepBuff[25] /* KAGC thereshold; IF AGC thereshold;RF thereshold */
#define Eep_tun_amagc I2c_EepBuff[26] /* DAGC th; WAGC th */
#define Eep_tun_fmdem I2c_EepBuff[27] /*spike cancelation; demo adjust */
#define Eep_tun_smeter I2c_EepBuff[28] /*S meter offset; slope; overdeviation current */
#define Eep_tun_ifgainXtal I2c_EepBuff[29] /* IF Gain; Xtal adjust; Xtal limitation*/
#define Eep_tun_ift1ift2 I2c_EepBuff[30] /*IFT1; IFT2*/
#define Eep_tun_IQmixer I2c_EepBuff[31] /*IQ mixer; softmute refer offset */
#define Eep_tun_amifNB I2c_EepBuff[32] /*Int xus; detection; thereshold */
#define Eep_tun_sstop I2c_EepBuff[33] /* SStop */
#define Eep_str_amnoise I2c_EepBuff[34] /*Stereo VCO adjust; Audio noise blanker; audio AM noise blanker */
#define Eep_str_stringain I2c_EepBuff[35] /* In gain; de-emphasis; noise blanker peak charge; mono-stereo */
#define Eep_str_nb I2c_EepBuff[36] /* Deviation adjust; audio noise blanker */
#define Eep_str_HiCut I2c_EepBuff[37] /* hiCut depth;VHCH; VHCL;*/
#define Eep_str_blend I2c_EepBuff[38] /* Quality detect; audio noise field strength; stereo blend*/
#define Eep_str_multipath I2c_EepBuff[39] /* Multipath detector gain; charge current; band pass gain; */
#define Eep_str_rolloff I2c_EepBuff[40] /* Level gain; roll off */
#define Eep_str_afs I2c_EepBuff[41] /* AFS control ablility, AM audio noise blanker setting */
#define Eep_str_amcornerfreq I2c_EepBuff[42] /* Deemphasis, am corner freq */
#define Eep_test1 I2c_EepBuff[43] /* Testing 1 */
#define Eep_test2 I2c_EepBuff[44] /* Testing 2 */
#define Eep_test3 I2c_EepBuff[45] /* Testing 3 */
#define Eep_test4 I2c_EepBuff[46] /* Testing 4 */
#define Eep_test5 I2c_EepBuff[47] /* Testing 5 */
#define Eep_test6 I2c_EepBuff[48] /* Testing 6 */
#define Eep_str_spike I2c_EepBuff[49] /* Spike canceler */
#define Eep_TV2_Point1 I2c_EepBuff[50] /* Tuning voltage for point 1*/
#define Eep_TV2_Point2 I2c_EepBuff[51] /* Tuning voltage for point 2*/
#define Eep_TV2_Point3 I2c_EepBuff[52] /* Tuning voltage for point 3*/
#define Eep_TV2_Point4 I2c_EepBuff[53] /* Tuning voltage for point 4*/
#define Eep_TV2_Point5 I2c_EepBuff[54] /* Tuning voltage for point 5*/
#define Eep_TV2_Point6 I2c_EepBuff[55] /* Tuning voltage for point 6*/
#define BoardEEP_ADR 0xA2
#define TunerEEP_ADR 0xA0
#endif
extern void TestEEPROM(void);
extern void ReadTunerEEPROM(unsigned char start,unsigned char end,unsigned char *p );
extern void ReadBoardEEPROM(unsigned char start,unsigned char end,unsigned char *p );
extern void WriteTunerEEPROM(unsigned char start,unsigned char end,unsigned char *p );
extern void WriteBoardEEPROM(unsigned char start,unsigned char end,unsigned char *p );
/*** (c) 2005 STMicroelectronics ****************** END OF FILE ***/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -