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

📄 ns2501_lfp_3364.bsf

📁 用DEPHI制作的有关于图书管理系统的文件
💻 BSF
📖 第 1 页 / 共 3 页
字号:
// BMP Script File for NS2501 VBT

/**************************************************************************
	Structure definition section
**************************************************************************/
StructDef
	Find "BMP_NSLVDS_Start"

// Skip to General Info
	Find "BMP_NSLVDS_GEN"
	$SetPanelType	1 byte
	$PanelType	1 byte
	$I2CAddr	1 byte

// Skip to DTD's
	Find "BMP_NSLVDS_DTD"

//	VGA
//	$DTD_00		18 bytes
	$DTD_00_DClk	2 bytes
	$DTD_00_HAL	1 byte
	$DTD_00_HBL	1 byte
	$DTD_00_HAHBU	1 byte
	$DTD_00_VAL	1 byte
	$DTD_00_VBL	1 byte
	$DTD_00_VAVBU	1 byte
	$DTD_00_HSO	1 byte
	$DTD_00_HPW	1 byte
	$DTD_00_VSOPW	1 byte
	$DTD_00_HVSOPW	1 byte
	$DTD_00_HSIZE	1 byte
	$DTD_00_VSIZE	1 byte
	$DTD_00_HVSIZEU	1 byte
	$DTD_00_HBOR	1 byte
	$DTD_00_VBOR	1 byte
	$DTD_00_Flags	1 byte

//	SVGA
//	$DTD_01		18 bytes
	$DTD_01_DClk	2 bytes
	$DTD_01_HAL	1 byte
	$DTD_01_HBL	1 byte
	$DTD_01_HAHBU	1 byte
	$DTD_01_VAL	1 byte
	$DTD_01_VBL	1 byte
	$DTD_01_VAVBU	1 byte
	$DTD_01_HSO	1 byte
	$DTD_01_HPW	1 byte
	$DTD_01_VSOPW	1 byte
	$DTD_01_HVSOPW	1 byte
	$DTD_01_HSIZE	1 byte
	$DTD_01_VSIZE	1 byte
	$DTD_01_HVSIZEU	1 byte
	$DTD_01_HBOR	1 byte
	$DTD_01_VBOR	1 byte
	$DTD_01_Flags	1 byte

//	XGA
//	$DTD_02		18 bytes
	$DTD_02_DClk	2 bytes
	$DTD_02_HAL	1 byte
	$DTD_02_HBL	1 byte
	$DTD_02_HAHBU	1 byte
	$DTD_02_VAL	1 byte
	$DTD_02_VBL	1 byte
	$DTD_02_VAVBU	1 byte
	$DTD_02_HSO	1 byte
	$DTD_02_HPW	1 byte
	$DTD_02_VSOPW	1 byte
	$DTD_02_HVSOPW	1 byte
	$DTD_02_HSIZE	1 byte
	$DTD_02_VSIZE	1 byte
	$DTD_02_HVSIZEU	1 byte
	$DTD_02_HBOR	1 byte
	$DTD_02_VBOR	1 byte
	$DTD_02_Flags	1 byte

//	SXGA
//	$DTD_03		18 bytes
	$DTD_03_DClk	2 bytes
	$DTD_03_HAL	1 byte
	$DTD_03_HBL	1 byte
	$DTD_03_HAHBU	1 byte
	$DTD_03_VAL	1 byte
	$DTD_03_VBL	1 byte
	$DTD_03_VAVBU	1 byte
	$DTD_03_HSO	1 byte
	$DTD_03_HPW	1 byte
	$DTD_03_VSOPW	1 byte
	$DTD_03_HVSOPW	1 byte
	$DTD_03_HSIZE	1 byte
	$DTD_03_VSIZE	1 byte
	$DTD_03_HVSIZEU	1 byte
	$DTD_03_HBOR	1 byte
	$DTD_03_VBOR	1 byte
	$DTD_03_Flags	1 byte

//	SXGA+
//	$DTD_04		18 bytes
	$DTD_04_DClk	2 bytes
	$DTD_04_HAL	1 byte
	$DTD_04_HBL	1 byte
	$DTD_04_HAHBU	1 byte
	$DTD_04_VAL	1 byte
	$DTD_04_VBL	1 byte
	$DTD_04_VAVBU	1 byte
	$DTD_04_HSO	1 byte
	$DTD_04_HPW	1 byte
	$DTD_04_VSOPW	1 byte
	$DTD_04_HVSOPW	1 byte
	$DTD_04_HSIZE	1 byte
	$DTD_04_VSIZE	1 byte
	$DTD_04_HVSIZEU	1 byte
	$DTD_04_HBOR	1 byte
	$DTD_04_VBOR	1 byte
	$DTD_04_Flags	1 byte

//	Skip to FP specific Data
	Find "BMP_NSLVDS_FPDATA"

//	Panel 0
	$Panel_00_XRes		2 bytes
	$Panel_00_YRes		2 bytes
	$Panel_00_Num		1 byte
	$Panel_00_MaxXRes	2 bytes
	$Panel_00_MaxYRes	2 bytes

//	Panel 1
	$Panel_01_XRes		2 bytes
	$Panel_01_YRes		2 bytes
	$Panel_01_Num		1 byte
	$Panel_01_MaxXRes	2 bytes
	$Panel_01_MaxYRes	2 bytes

//	Panel 2
	$Panel_02_XRes		2 bytes
	$Panel_02_YRes		2 bytes
	$Panel_02_Num		1 byte
	$Panel_02_MaxXRes	2 bytes
	$Panel_02_MaxYRes	2 bytes

//	Panel 3
	$Panel_03_XRes		2 bytes
	$Panel_03_YRes		2 bytes
	$Panel_03_Num		1 byte
	$Panel_03_MaxXRes	2 bytes
	$Panel_03_MaxYRes	2 bytes

//	Skip to 2501 Register List
	Find "BMP_NSLVDS_REGS"

	$RegList			86 bytes

//	Skip to 2501 Scaling Data
	Find "BMP_NSLVDS_SCALING"

	$Scaling_00_XRes	2 bytes
	$Scaling_00_YRes	2 bytes
	$Scaling_00_DTDNum	1 byte
	$Scaling_00_Regs	86 bytes
	
	$Scaling_01_XRes	2 bytes
	$Scaling_01_YRes	2 bytes
	$Scaling_01_DTDNum	1 byte
	$Scaling_01_Regs	86 bytes

	$Scaling_02_XRes	2 bytes
	$Scaling_02_YRes	2 bytes
	$Scaling_02_DTDNum	1 byte
	$Scaling_02_Regs	86 bytes

	$Scaling_03_XRes	2 bytes
	$Scaling_03_YRes	2 bytes
	$Scaling_03_DTDNum	1 byte
	$Scaling_03_Regs	86 bytes
	
	$Scaling_04_XRes	2 bytes
	$Scaling_04_YRes	2 bytes
	$Scaling_04_DTDNum	1 byte
	$Scaling_04_Regs	86 bytes

	SKIP	4 bytes

	$Scaling_05_XRes	2 bytes
	$Scaling_05_YRes	2 bytes
	$Scaling_05_DTDNum	1 byte
	$Scaling_05_Regs	86 bytes
	
	$Scaling_06_XRes	2 bytes
	$Scaling_06_YRes	2 bytes
	$Scaling_06_DTDNum	1 byte
	$Scaling_06_Regs	86 bytes

	$Scaling_07_XRes	2 bytes
	$Scaling_07_YRes	2 bytes
	$Scaling_07_DTDNum	1 byte
	$Scaling_07_Regs	86 bytes

	$Scaling_08_XRes	2 bytes
	$Scaling_08_YRes	2 bytes
	$Scaling_08_DTDNum	1 byte
	$Scaling_08_Regs	86 bytes
	
	$Scaling_09_XRes	2 bytes
	$Scaling_09_YRes	2 bytes
	$Scaling_09_DTDNum	1 byte
	$Scaling_09_Regs	86 bytes

	SKIP	4 bytes

	$Scaling_0A_XRes	2 bytes
	$Scaling_0A_YRes	2 bytes
	$Scaling_0A_DTDNum	1 byte
	$Scaling_0A_Regs	86 bytes
	
	$Scaling_0B_XRes	2 bytes
	$Scaling_0B_YRes	2 bytes
	$Scaling_0B_DTDNum	1 byte
	$Scaling_0B_Regs	86 bytes

	$Scaling_0C_XRes	2 bytes
	$Scaling_0C_YRes	2 bytes
	$Scaling_0C_DTDNum	1 byte
	$Scaling_0C_Regs	86 bytes

	$Scaling_0D_XRes	2 bytes
	$Scaling_0D_YRes	2 bytes
	$Scaling_0D_DTDNum	1 byte
	$Scaling_0D_Regs	86 bytes
	
	$Scaling_0E_XRes	2 bytes
	$Scaling_0E_YRes	2 bytes
	$Scaling_0E_DTDNum	1 byte
	$Scaling_0E_Regs	86 bytes

	SKIP	4 bytes

	$Scaling_0F_XRes	2 bytes
	$Scaling_0F_YRes	2 bytes
	$Scaling_0F_DTDNum	1 byte
	$Scaling_0F_Regs	86 bytes
	
	$Scaling_10_XRes	2 bytes
	$Scaling_10_YRes	2 bytes
	$Scaling_10_DTDNum	1 byte
	$Scaling_10_Regs	86 bytes

	$Scaling_11_XRes	2 bytes
	$Scaling_11_YRes	2 bytes
	$Scaling_11_DTDNum	1 byte
	$Scaling_11_Regs	86 bytes

	$Scaling_12_XRes	2 bytes
	$Scaling_12_YRes	2 bytes
	$Scaling_12_DTDNum	1 byte
	$Scaling_12_Regs	86 bytes
	
	$Scaling_13_XRes	2 bytes
	$Scaling_13_YRes	2 bytes
	$Scaling_13_DTDNum	1 byte
	$Scaling_13_Regs	86 bytes

	SKIP	4 bytes

	$power_preON		1 byte
	$power_PL			1 byte
	$power_LB			1 byte
	$power_BL			1 byte
	$power_LP			1 byte
	$power_postOFF		1 byte

	$power_Win_preON	1 byte
	$power_Win_PL		1 byte
	$power_Win_LB		1 byte
	$power_Win_BL		1 byte
	$power_Win_LP		1 byte
	$power_Win_postOFF	1 byte



EndStruct


/**************************************************************************
	List definition section
**************************************************************************/
List	&EnabledList
			Selection 00h, "Disabled"
			Selection 01h, "Enabled"
EndList

List	&YesList
			Selection 00h, "No"
			Selection 01h, "Yes"
EndList

List	&DefaultPanelList
			Selection 00h, "Panel 00"
			Selection 01h, "Panel 01"
			Selection 02h, "Panel 02"
			Selection 03h, "Panel 03"
EndList

List	&PanelList
			Selection 00h, " 1:640x480   LVDS"
			Selection 01h, " 2:800x600   LVDS"
			Selection 02h, " 3:1024x768  LVDS"
			Selection 03h, " 4:1280x1024 LVDS"
			Selection 04h, " 5:1400x1050 LVDS"
			Selection 05h, " 6:Reserved"
			Selection 06h, " 7:Reserved"
			Selection 07h, " 8:Reserved"
			Selection 08h, " 9:640x480   CMOS"
			Selection 09h, "10:800x600   CMOS"
			Selection 0Ah, "11:1024x768  CMOS"
			Selection 0Bh, "12:1280x1024 CMOS"
			Selection 0Ch, "13:1400x1050 CMOS"
			Selection 0Dh, "14:Reserved"
			Selection 0Eh, "15:Reserved"
			Selection 0Fh, "16:Reserved"
EndList


/***************************************************************************************
	BMP Info Block
***************************************************************************************/
BeginInfoBlock
	PPVer 1				// version
	Image 0 Thru EOF At EOF		// checksum
EndInfoBlock


/***************************************************************************************
	Page Definition Section
***************************************************************************************/

Page "2501 General Setup"

	Combo $SetPanelType, "Use BIOS Hook to Set Panel Type", &EnabledList,
		Help	"Enabled = Use BIOS Hook\r\n"
			"Disabled = Don't use BIOS Hook.  Use Default Panel."

//	Combo $PanelType, "Default Panel Type (00 or 01)", &DefaultPanelList,
//		Help	"Default panel to use if not using BIOS hook or if BIOS hook fails."

	EditNum $I2CAddr, "NS2501 I2C Address", EHEX,
		Help	"Default = 70h"

EndPage

Page "2501 DTDs"

	Link "00 DTD", "00 DTD"
	Link "01 DTD", "01 DTD"
	Link "02 DTD", "02 DTD"
	Link "03 DTD", "03 DTD"
	Link "04 DTD", "04 DTD"


	Page "00 DTD"

		Title "18 Btye DTD ---------------------------------"

		EditNum $DTD_00_DClk, "Pixel Clock / 10,000", DEC,
			Help	"Example: 25.18 MHz = 2518"
		EditNum $DTD_00_HAL, "H. Active", EHEX,
			Help	"Horizontal Active Pixels, lower 8 bits"
		EditNum $DTD_00_HBL, "H. Blanking", EHEX,
			Help	"Horizontal Blanking Pixels, lower 8 bits"
		EditNum $DTD_00_HAHBU, "H. Active : H. Blanking", EHEX,
			Help	"Upper nibble: upper 4 bits of Horizontal Active\r\n"
					"Lower nibble: upper 4 bits of Horiznotal Blanking"
		EditNum $DTD_00_VAL, "V. Active", EHEX,
			Help	"Vertical Active Lines, lower 8 bits"
		EditNum $DTD_00_VBL, "V. Blanking", EHEX,
			Help	"Vertical Blanking Lines, lower 8 bits"
		EditNum $DTD_00_VAVBU, "V. Active : V. Blanking", EHEX,
			Help	"Upper nibble: upper 4 bits of Vertical Active\r\n"
					"Lower nibble: upper 4 bits of Vertical Blanking"
		EditNum $DTD_00_HSO, "Horizontal Sync. Offset", EHEX,
			Help	"Horizontal Sync. Offset pixels from Blanking Start, lower 8 bits"
		EditNum $DTD_00_HPW, "Horixontal Sync. Pulse Width", EHEX,
			Help	"Horizontal Sync. Pulse Width pixels, lower 8 bits"
		EditNum $DTD_00_VSOPW, "V. Sync. Offset : V. Snyc. Pulse Width", EHEX,
			Help	"Upper nibble: Vertical Sync. Offset lines, lower 4 bits\r\n"
					"Lower nibble: Vertical Sync. Pulse Width lines, lower 4 bits"
		EditNum $DTD_00_HVSOPW, "H. Sync. : H. PW : V. Sync. : V. PW", EHEX,
			Help	"Bits 7,6: Horizontal Sync. Offset, upper 2 bits\r\n"
					"Bits 5,4: Horizontal Sync. Pulse Width, upper 2 bits\r\n"
					"Bits 3,2: Vertical Sync. Offset, upper 2 bits\r\n"
					"Bits 1,0: Vertical Sync. Pulse Width, upper 2 bits"
		EditNum $DTD_00_HSIZE, "H. Image Size", EHEX,
			Help	"Horizontal Image Size in mm, lower 8 bits"
		EditNum $DTD_00_VSIZE, "V. Image Size", EHEX,
			Help	"Vertical Image Size in mm, lower 8 bits"
		EditNum $DTD_00_HVSIZEU, "H. Image Size : V. Image Size", EHEX,
			Help	"Upper nibble: Horizontal Image Size, upper 4 bits\r\n"
					"Lower nibble: Vertical Image Size, upper 4 bits"
		EditNum $DTD_00_HBOR, "H. Border", EHEX,
			Help	"Horizontal Border pixels"

⌨️ 快捷键说明

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