📄 vxis1828.h
字号:
//这个文件包含了VXIS1828了内部regisiter的说明
#ifndef __VXIS1828_H_
#define __VXIS1828_H_
#define VX1828 0xDE
#define PADJ00 0x1D //Brightness
#define PADJ01 0x1E //Contrast
#define PADJ02 0x1F //Staturation
#define PADJ03 0x20 //Hue
#define PADJ04 0x21 //
#define PADJ05 0x22
#define PADJ06 0x23
#define PADJ07 0x24
#define PADJ08 0x25
#define PADJ09 0x26
#define PADJ0A 0x27
#define PEAK1 0x2E //
#define PEAK2 0x2F
#define PEAK3 0x30
#define PEAK4 0x31
//This part contains the OSD and cw of register
///#####OSD#####
/************************************************
def.(0x) 7 6 5 4 3 2 1
OSD0 04
OSD1 00
OSD2 E0 -
OSD3 08 - -
*************************************************/
#define osd0 0x50 //osd0:OSD command memory address
//def.:0x00
#define osd1 0x51 //osd1:OSD command memory data
//def.:0x00
#define osd2 0x52 //osd2:(number is bit)
//0:OSDB_EN OSD bar block display enable
//1:OSDC_EN OSD content block display enable
//2:OSDT_EN OSD title block display enable
//3:-
//4~7:OSD_ALPHA OSD alpha-blending.
// OSD Displaying Color=(Video Color*OSD_ALPHA+OSD Color*(16-OSD_ALPHA))/16
//def.:0xE0
#define osd3 0x53 //0~5:OSD_BLANK OSD blinking rate
//6~7:-
//def.:0x08
//-----------------------------------------title--------------------------------------------------
/****************************
def.(0x) 7 6
OSD4 04 - -
OSD5 00 - -
OSD6 00 - -
OSD7 00 - -
OSD8 00 - -
OSD9 28
OSD10 10
OSD11 82
OSD12 B4
****************************/
#define osd4 0x54 //OSDT_SIZEX OSD title block horizontal length in character.
//Valid settings are 01h – 26h for small fonts; 01h – 13h for large fonts.
#define osd5 0x55 //OSDT_HLSTART OSD title block highlight start position
#define osd6 0x56 //OSDT_HLSTOP OSD title block highlight stop position
#define osd7 0x57 //OSDT_BLSTART OSD title block blink start position
#define osd8 0x58 //OSDT_BLSTOP OSD title block blink stop position
#define osd9 0x59 //OSDT_POSX OSD title block horizontal initial position.
//Incrementing by 1 reflects 1 pixels shifting rightwards. Minimum value is 03h.
#define osd10 0x5a //OSDT_POSY OSD title block vertical initial position.
//Incrementing by 1 reflects 1 lines shifting downwards. Minimum value is 01h.
#define osd11 0x5b //4~7:OSDT_BGCLR OSD title block background color selection,
//0~3:OSDT_FGCLR OSD title block foreground color selection
#define osd12 0x5c //4~7:OSDT_HLBGCLR OSD title block high-lighted background color selection
//0~3:OSDT_HLFGCLR OSD title block high-lighted foreground color selection
//------------------------------------content------------------------------------------------
/**********************************************************************
def.(hex) 7 6 5
OSD13 10 - -
OSD14 08 - - -
OSD15 04
OSD16 40
OSD17 1A
OSD18 00 - - -
OSD19 00 - - -
OSD20 01 - -
OSD21 00 - -
OSD22 00 - - -
OSD23 00 - - -
OSD24 01 - -
OSD25 00 - -
OSD26 1F
OSD27 6a
*********************************************************************/
#define osd13 0x5d //0~5:OSDC_SIZEX OSD content block horizontal length in character
#define osd14 0x5e //0~4:OSDC_SIZEY OSD content block vertical length in character. Valid settings
// are 01h – 15h for small fonts; 01h – 0Ah for large fonts.
#define osd15 0x5f //OSDC_START OSD content block start address in OSD command memory
#define osd16 0x60 //OSDC_POSX OSD content block horizontal initial position. Incrementing by 1
// reflects 1 pixels shifting rightwards. Minimum value is 03h.
#define osd17 0x61 //OSDC_POSY OSD content block vertical initial position. Incrementing by 1
// reflects 1 lines shifting downwards. Minimum value is 01h.
#define osd18 0x62 //0~4:OSDC_HLY_START OSD content block highlight vertical start position
#define osd19 0x63 //0~4:OSDC_HLY_STOP OSD content block highlight vertical stop position
#define osd20 0x64 //0~5:OSDC_HLX_START OSD content block highlight horizontal start position
#define osd21 0x65 //0~5:OSDC_HLX_STOP OSD content block highlight horizontal stop position
#define osd22 0x66 //0~4:OSDC_BLY_START OSD content block blink vertical start position
#define osd23 0x67 //0~4:OSDC_BLY_STOP OSD content block blink vertical stop position
#define osd24 0x68 //0~5:OSDC_BLX_START OSD content block blink horizontal start position
#define osd25 0x69 //0~5:OSDC_BLX_STOP OSD content block blink horizontal stop position
#define osd26 0x6a //4~7:OSDC_BGCLR OSD content block background color selection
//0~3:OSDC_FGCLR OSD content block foreground color selection
#define osd27 0x6b //4~7:OSDC_HLBGCLR OSD content block high-lighted background color selection
//0~3:OSDC_HLFGCLR OSD content block high-lighted foreground color selection
//------------------------------------bar------------------------------------------------
/**********************************************************************
def.(hex) 7 6 5
OSD28 08 - -
OSD29 84
OSD30 88
OSD31 6C
OSD32 00 - -
OSD33 00 - -
OSD34 00 - -
OSD35 00 - -
OSD36 79
OSD37 3E
*********************************************************************/
#define osd28 0x6c //0~5:OSDB_SIZEX OSD bar block horizontal length in character
#define osd29 0x6d //OSDB_START OSD bar block start address in OSD command memory
#define osd30 0x6e //OSDB_POSX OSD bar block horizontal initial position. Incrementing by 1
// reflects 1 pixels shifting rightwards. Minimum value is 03h.
#define osd31 0x6f //OSDB_POSY OSD bar block vertical initial position. Incrementing by 1 reflects 1
// lines shifting downwards. Minimum value is 01h.
#define osd32 0x70 //0~5:OSDB_HLSTART OSD bar block highlight start position
#define osd33 0x71 //0~5:OSDB_HLSTOP OSD bar block highlight stop position
#define osd34 0x72 //0~5:OSDB_BLSTART OSD bar block blink start position
#define osd35 0x73 //0~5:OSDB_BLSTOP OSD bar block blink stop position
#define osd36 0x74 //4~7:OSDB_BGCLR OSD bar block background color selection
//0~3:OSDB_FGCLR OSD bar block foreground color selection
#define osd37 0x75 //4~7:OSDB_HLBGCLR OSD bar block high-lighted background color selection
//0~3:OSDB_HLFGCLR OSD bar block high-lighted
//--------------------------------Font---------------------------------------------
/**********************************************************************
def.(hex) 7 6 5 4 3 2 1 0
OSd38 00 - | - |OSD_FONT_ADDR[9:8]
OSD39 00 OSD_FONT_ADDR[7:0]
OSD40 00 OSD_FONT_DATA[15:8]
OSD41 00 OSD_FONT_DATA[7:0]
*********************************************************************/
#define osd38 0x76
#define osd39 0x77
#define osd40 0x78
#define osd41 0x79
//0~1:OSD_FONT_ADDR OSD FONT RAM address (default = 00h)
//OSD_FONT_DATA Data to be written into OSD control sequence RAM whose
// location indicated by OSD_FONT_ADDR (default = 00h)
/*~~~~~~from 1828B sheet (by hibernate)---start~~~~~~~~~~
#define osd38 0xDC
#define osd39 0xDD
#define osd40 0xDE
#define osd41 0xDF
//~~~~~~from 1828B sheet (by hibernate)----end~~~~~~~~~~*/
//#######cw#############
/**********************************************************************
def.(hex) 7 6 5 4 3 2 1 0
cw1 00 - CW_DEST[2:0] - - CW_INIT_ADDR [9:8]
cw2 00 CW_INIT_ADDR [7:0]
cw3 00 CW_DATA
*********************************************************************/
#define cw1 0xfd //4~6:CW_DEST Continuous write destination selection
//0 None
//1 OSD command memory
//2 OSD font memory
//3 CLUT R / Pr
//4 CLUT G / Y
//5 CLUT B / Pb
//6 CLUT all
//7 OSD command memory
//0~1:CW_INIT_ADDR Continuous write initial address
#define cw2 0xfe //CW_INIT_ADDR Continuous write initial address
#define cw3 0xff //CW_DATA Continuous write data
//++++++++++++++++++++excursus+++++++++++++++++++++++
/*****************************************************
code details Table
Color Bits Bits Color
0000 Black 1000 Transparent
0001 Blue 1001 Royal Blue
0010 Green 1010 Medium Aquamarine
0011 Aqua 1011 Light Green
0100 Red 1100 Orange
0101 Fuchsia 1101 Hot Pink
0110 Yellow 1110 Silver
0111 White 1111 Gray
****************************************************/
#define Black 0x00
#define Blue 0x01
#define Green 0x02
#define Cyan 0x03
#define Red 0x04
#define Fuchsia 0x05
#define Yellow 0x06
#define White 0x07
#define Transparent 0x08
#define RoyalBlue 0x09
#define MediumAquamarine 0x0a
#define LightGreen 0x0b
#define Orange 0x0c
#define HotPink 0x0d
#define Silver 0x0e
#define Gray 0x0f
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -