📄 tvtb1307.h.svn-base
字号:
#ifndef _TB1307_H_
#define _TB1307_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,
DDP_VBTMBLK2,
RGB_BLEND,
RGB_OSDCONTRAST,
RGB_RDRIVE,
RGB_GDRIVE,
RGB_BDRIVE,
RGB_RCUT,
RGB_GCUT,
RGB_BCUT,
RGB_SVMPHASE,
RGB_SVMGAIN,
RGB_SVMMUTE,
RGB_RGBCLP,
RGB_ACBMODE,
RGB_OSDACL,
RGB_PMODE,
RGB_ABLGAIN,
RGB_ABLPOINT,
RGB_OSDBRT,
RGB_OSDABL,
RGB_WPS,
RGB_UNICOLOR,
RGB_BRIGHTNESS,
RGB_INPUTMODE,
RGB_COLOR,
RBG_LTIMODE,
RGB_SHARP_F0,
RGB_SHARPNESS,
RGB_WHITEPEAKBLUE,
RGB_TINT,
RGB_CDE,
RGB_CORING,
RGB_SRT,
RGB_TEST1,
RGB_TEST2,
DDP_STATUS
};
#define BIT_POR 0x80
#define BIT_IKIN 0x40
#define BIT_RGB_H 0x20
#define BIT_FBPIN 0x10
#define BIT_VGUARD_V 0x08
#define BIT_VGUARD_H 0x04
struct TB1307Regs
{
/*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 ucVLin : 5;
Byte ucBlend: 1;
Byte ucOSDContrast: 2;
/*Reg 0x0b*/
Byte ucVSCorrection: 4;
Byte ucShootBalance: 4;
/*Reg 0x0c*/
Byte ucACBPos: 4;
Byte ucParallel: 4;
/*Reg 0x0d*/
Byte ucVBTMBLK: 4;
Byte ucBow: 4;
/*Reg 0x0e*/
Byte ucVEHT: 4;
Byte ucHEHT: 4;
/*Reg 0x0f*/
Byte ucVTopBlk: 6;
Byte ucVBTMBLK2: 2;
/*Reg 0x10*/
Byte ucRDrive: 7;
Byte ucBLKOFF: 1;
/*Reg 0x11*/
Byte ucGDrive: 7;
Byte ucVGUARD: 1;
/*Reg 0x12*/
Byte ucBDrive: 7;
Byte ucFixedR11B7: 1;
/*Reg 0x13*/
Byte ucRCut;
/*Reg 0x14*/
Byte ucGCut;
/*Reg 0x15*/
Byte ucBCut;
/*Reg 0x16*/
Byte ucACBMode: 2;
Byte ucRGBCLP: 1;
Byte ucSVMMute: 1;
Byte ucSVMGain: 2;
Byte ucSVMPhase: 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 ucOSDACL: 1;
/*Reg 0x19*/
Byte ucBrightness: 7;
Byte ucACBADJ: 1;
/*Reg 0x1A*/
Byte ucColor: 6;
Byte ucInputMode: 2;
/*Reg 0x1B*/
Byte ucSharpness:6;
Byte ucSharpF0:1;
Byte ucLTIMode:1;
/*Reg 0x1C*/
Byte ucTint:6;
Byte ucWhitePeakBlue:2;
/*Reg 0x1D*/
Byte ucSRT:4;
Byte ucCoring:2;
Byte ucCDE:2;
/*Reg 0x1E*/
Byte ucTest1;
/*Reg 0x1F*/
Byte ucTest2;
};
#ifdef _cplusplus
extern "C" {
#endif
Bool tdInitTB1307(RPByte pData);
Bool tdSetTB1307Attr(Byte attr, Byte ucVal);
Byte tdGetTB1307Attr(Byte attr);
Bool tdTB1307BusError(Void);
#define SLAVE_ADDRESS_TB1307 0x8C
#ifdef _cplusplus
};
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -