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

📄 tvtb1306.h.svn-base

📁 最新火热的CX32 源代码
💻 SVN-BASE
字号:

#ifndef _TB1306_H_
#define _TB1306_H_

typedef enum 
{
	DDP_VAGC = 0 ,
	DDP_VFREQLINE,
	DDP_CPPHS,
	DDP_HPOSITION,
	DDP_CPSW,
	DDP_HSTOP,
	DDP_HSIZE,
	DDP_VSTOP1,  
	DDP_HDUTY,
	DDP_PARABOLA,
	DDP_VSTOP2,
	DDP_BSSW,
	DDP_TRAPEZIUM,
	DDP_BSPOINT,
	DDP_TOPCORNER,
	DDP_DCREST,
	DDP_BTMCORNER,
	DDP_RGBOUTMODE,
	DDP_VPOSITION,
	DDP_VJUMP,
	DDP_VSIZE,
	DDP_VPHASE,   
	DDP_VRAMPPHASE,
	DDP_VLIN,
	DDP_VSCORRECTION,
	DDP_PARALLEL,
	DDP_ACBPOSITION,
	DDP_BOW,
	DDP_VBTMBLK,  
	DDP_HEHT,
	DDP_VEHT,
	DDP_VTOPBLK,
	
	RGB_RDRIVE,
	RGB_GDRIVE,
	RGB_BDRIVE,
	RGB_RCUT,
	RGB_GCUT,
	RGB_BCUT,
	RGB_SVMPHASE,
	RGB_SVMGAIN,
	RGB_SVMMUTE,
	RGB_RGBCLP,
	RGB_ACBMODE,
	RGB_WHITEPEAKBLUE,
	RGB_BLEND,
	RGB_OSDCONTRAST,
	RGB_OSDACL,
	RGB_PMODE,
	RGB_ABLGAIN,
	RGB_ABLPOINT,
	RGB_OSDBRT,
	RGB_OSDABL,
	RGB_WPS,
	RGB_UNICOLOR,
	RGB_BRIGHTNESS,
	RGB_INPUTMODE,
	RGB_COLOR,   
	RGB_TEST1,
	RGB_TEST2,
	
	DDP_STATUS
};   

#define BIT_POR             0x80
#define BIT_IKIN            0x40
#define BIT_FBPIN           0x20

struct TB1306Regs
{
/*Reg 0x00*/	
	Byte ucVFreqLine: 6;
	Byte ucVAGC: 1;
	Byte ucFixedR00B7: 1;
/*Reg 0x01*/	
	Byte ucHPosition: 7;
	Byte ucCPPHS: 1;
/*Reg 0x02*/
	Byte ucHSize: 6;
	Byte ucHStop: 1;
	Byte ucCPSW: 1;
/*Reg 0x03*/
	Byte ucEWParabola: 6;
	Byte ucHDuty: 1;
	Byte ucVStop1: 1;
/*Reg 0x04*/
	Byte ucTrapezium: 6;
	Byte ucBSSW: 1;
	Byte ucVStop2: 1;
/*Reg 0x05*/
	Byte ucTopCorner: 6;
	Byte ucBSPoint: 2;
/*Reg 0x06*/
	Byte ucBtmCorner: 6;
	Byte ucDCRest: 2;
/*Reg 0x07*/
	Byte ucVPosition: 6;
	Byte ucRGBOutMode: 2;
/*Reg 0x08*/
	Byte ucVSize: 7;
	Byte ucVJump: 1;
/*Reg 0x09*/
	Byte ucVRampPhase: 6;
	Byte ucVPhase: 1;
	Byte ucFixedR09B7: 1;
/*Reg 0x0a*/
	Byte ucVSCorrection: 4;
	Byte ucVLin : 4;
/*Reg 0x0b*/
	Byte ucACBPos: 4;
	Byte ucParallel: 4;
/*Reg 0x0c*/
	Byte ucVBTMBLK: 4;
	Byte ucBow: 4;
/*Reg 0x0d*/
	Byte ucVEHT: 4;
	Byte ucHEHT: 4;
/*Reg 0x0e*/
	Byte ucVTopBlk: 6;
	Byte ucFixedR0eB76: 2;
/*Reg 0x0f*/
	Byte ucRDrive: 7;
	Byte ucTest3: 1;
/*Reg 0x10*/
	Byte ucGDrive: 7;
	Byte ucFixedR10B7: 1;
/*Reg 0x11*/
	Byte ucBDrive: 7;
	Byte ucFixedR11B7: 1;
/*Reg 0x12*/
	Byte ucRCut;
/*Reg 0x13*/
	Byte ucGCut;
/*Reg 0x14*/
	Byte ucBCut;
/*Reg 0x15*/
	Byte ucACBMode: 2;
	Byte ucRGBCLP: 1;
	Byte ucSVMMute: 1;
	Byte ucSVMGain: 2;
	Byte ucSVMPhase: 2;
/*Reg 0x16*/
	Byte ucOSDACL: 1;
	Byte ucFixedR16B21: 2;
	Byte ucOSDContrast: 2;
	Byte ucBlend: 1;
	Byte ucWhitePeakBlue: 2;
/*Reg 0x17*/
	Byte ucOSDABL: 1;
	Byte ucOSDBRT: 1;	
	Byte ucABLPoint: 2;
	Byte ucABLGain: 2;
	Byte ucPMode: 2;
/*Reg 0x18*/
	Byte ucUniColor: 6;
	Byte ucWPS: 1;
	Byte ucFixedR18B7: 1;
/*Reg 0x19*/
	Byte ucBrightness: 7;
	Byte ucFixedR19B7: 1;
/*Reg 0x1A*/
	Byte ucColor: 6;
	Byte ucInputMode: 2;
/*Reg 0x1B*/
	Byte ucTest1;
/*Reg 0x1C*/
	Byte ucTest2;
};

#ifdef _cplusplus
extern "C" {
#endif

Bool tdInitTB1306(RPByte pData);
Bool tdSetTB1306Attr(Byte attr, Byte ucVal);
Byte tdGetTB1306Attr(Byte attr);
Bool tdTB1306BusError(Void);

#define SLAVE_ADDRESS_TB1306	0x8C

#ifdef _cplusplus
};
#endif

#endif

⌨️ 快捷键说明

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