readme

来自「針對最新的Intel ATOM N270主機板透過SMBus存取GPIO埠範例(」· 代码 · 共 45 行

TXT
45
字号
Quanmax SMBus Driver for Intel Chipset

1. File list:
	a. winio.h
	b. winio.dll
	c. winio.lib
	d. winio.sys
	e .winio.vxd

2. How to use the driver under VC++

	a. Put the winio.h, winio.lib and winio.dll in the code directory
	b. Include following line in the code file where the SMBUS will be used

		#include "winio.h" 
		#pragma comment(lib,"WinIo.lib") 
		
	c. Start coding the program with following guidelines:
		
		i. Initialize the SMBUS driver by calling the InitializeSMBUS function.
		ii. Calling SMBUS_Read_Byte and SMBUS_Write_Byte to work with the SMBUS device
		iii. Shutdown the SMBUS driver by calling ShutdownSMBUS function.
		
	d. After program compiled, please add the winio.sys and winio.vxd files into the program directory to include the driver.

3. SMBUS driver funuction list 

	
	a. bool InitializeSMBUS();
		This function is use to start the SMBUS driver.

	b. void ShutdownSMBUS();
		This function is use to start the SMBUS driver.

	c. BYTE SMBUS_Read_Byte(BYTE offset,BYTE DEVID);
		This function is use to read from the SMBUS.
		The "DEVID" parameter is the SMBUS address of the device.
		The "offset" parameter is the target address or registar on the device where you wish to access

	d. void SMBUS_Write_Byte(int Dev_id,int Reg_index,int Value);
		This function is use to read from the SMBUS.
		The "Dev_id" parameter is the SMBUS address of the device.
		The "Reg_index" parameter is the target address or registar on the device where you wish to access.
		The "Value" parameter is the value which you wish to write in.

⌨️ 快捷键说明

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