⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tw2880_def.h

📁 tw2880的初始化配置
💻 H
字号:
//define for TW2815A#define TW2815A_I2C_ADDR 0x50#define TW2815_ID 0x59//define for TW2815B#define TW2815B_I2C_ADDR 0x52#define TW2815_ID 0x59#define SERIAL_CONTROL 0x62#define SERIAL_PLAYBACK_CONTROL 0x6c/*process of bit*/#define SET_BIT(x,y)        ((x) |= (y))#define CLEAR_BIT(x,y)      ((x) &= ~(y))#define CHKBIT_SET(x,y)     (((x)&(y)) == (y))#define CHKBIT_CLR(x,y)     (((x)&(y)) == 0)//==================================================================================//==================================================================================//						TW2815 initialize table description//==================================================================================//==================================================================================//--------------------------		NTSC		------------------------------////=================================================================================unsigned char tbl_ntsc_tw2815_common[] = {        //												CH1			CH2			CH3			CH4	0x00,0x48,0x20,0xd0,		//...		0x00~0x03	0x10~0x13	0x20~0x23	0x30~0x33	0x06,0xf0,0x08,0x80,		//...		0x04~0x07	0x14~0x17	0x24~0x27	0x34~0x37	0x80,0x80,0x80,0x02,		//...		0x08~0x0b	0x18~0x1b	0x28~0x2b	0x38~0x3b	0x06,0x00,0x11				//...		0x0c~0x0e	0x1c~0x1e	0x2c~0x2e	0x3c~0x3e	};unsigned char tbl_ntsc_tw2815_sfr1[] = {	0x00,0x00,0x40,0xc0,		//...		0x40~0x43//sync code(0x42)set to 0x1	0x45,0xa0,0xd0,0x2f,		//...		0x44~0x47	0x64,0x80,0x80,0x82,		//...		0x48~0x4b	0x82,0x00,0x00,0x00		//...		0x4c~0x4f	};unsigned char tbl_ntsc_tw2815_sfr2[] = {	0x00,0x0f,0x05,0x00,		//...		0x50~0x53	0x00,0x80,0x06,0x00,		//...		0x54~0x57	0x00,0x00					//...		0x58~0x59	};//=================================================================================//--------------------------		PAL		------------------------------////=================================================================================unsigned char tbl_pal_tw2815_common[] = {        //												CH1			CH2			CH3			CH4	0x00,0x08,0x20,0xd0,		//...		0x00~0x03	0x10~0x13	0x20~0x23	0x30~0x33	0x05,0x20,0x28,0x80,		//...		0x04~0x07	0x14~0x17	0x24~0x27	0x34~0x37	0x80,0x80,0x80,0x82,		//...		0x08~0x0b	0x18~0x1b	0x28~0x2b	0x38~0x3b	0x06,0x00,0x11				//...		0x0c~0x0e	0x1c~0x1e	0x2c~0x2e	0x3c~0x3e	};unsigned char tbl_pal_tw2815_sfr1[] = {	0x00,0x00,0x40,0xc0,		//...		0x40~0x43	0x45,0xa0,0xd0,0x2f,		//...		0x44~0x47	0x64,0x80,0x80,0x82,		//...		0x48~0x4b	0x82,0x00,0x00,0x00		//...		0x4c~0x4f	};unsigned char tbl_pal_tw2815_sfr2[] = {	0x00,0x0f,0x05,0x00,		//...		0x50~0x53	0x00,0x80,0x06,0x00,		//...		0x54~0x57	0x00,0x00					//...		0x58~0x59	};//=================================================================================//=================================================================================unsigned char tbl_tw2815_audio[] = {				   0x00,0xff,		//...		0x5a~0x5b	0x2f,0x00,0x00,0x00,		//...		0x5c~0x5f	0x88,0x88,0xc2,0x00,		//...		0x60~0x63	0x10,0x32,0x54,0x76,		//...		0x64~0x67	0x98,0xba,0xdc,0xfe,		//...		0x68~0x6b	0x02,0x1f,0x88,0x88,		//...		0x6c~0x6f	0x88,0x11,0x40,0x88,		//...		0x70~0x73	0x88,0x00					//...		0x74~0x75	};//=================================================================================

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -