Home

KTD-00769 KT-API-V2 User Manual

image

Contents

1. CPU Fan CPU Fan RPM CPUFANO System Fan System Fan RPM SYSFAN FC Fan Fan RPM via Feature Connector AUXFAN Type Mask Internal use Type Voltage Internal use Type Temperature Type Fan Internal use Internal use 15 of 18 Gkontron KT API V2 KTD 00769 E KTUS15 _HWM_Name Last Public User Manual Internal use Date 2010 11 23 BIOS text if available VCORE Core voltage VCOREb Core voltage b VCORE VCC2_5 2 5V VCC3 3 3V 3VCC VCC5 5V 5V V12 412V 412 SB3 Standby 3 3V VSB V 12 12V SB5 Standby 5V VBATT Battery voltage VBAT VCC1 2 1 2V VCC1 8 1 8V Core 1 8V VIN Single Voltage Input Vin board supply VCC1 5 1 5V CPU Temp CPU temperature CPU temperature System Temp System temperature System temperature FC Temp Temperature via Feature Connector VTIN temperature CPU Fan CPU Fan RPM CPUFANO System Fan System Fan RPM FC Fan Fan RPM via Feature Connector AUXFAN Type Mask Internal use Type Voltage Internal use Type Temperature Type Fan Internal use Internal use Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 170f18 7 Examples Source Code The following table specifies the diff
2. Function int SetCIrGPlO unsigned char GPIO int SetClr Description This function set or clears a GPIO pin located on the feature port Make sure to set pin direction before calling this function Arguments GPIO Mask of GPIO to set or clear SetClr 0 Clears 1 Sets Return If the function succeeds the return value is API se OK otherwise its API se Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 100f18 Function _ int ReadGPlO unsigned char GPlO unsigned char Data Description This function reads a GPIO pin located on the feature port Make sure to set pin direction before calling this function Arguments GPIO Mask of GPIO to read Data Pointer to an unsigned char valued read from the GPIO Return If the function succeeds the return value is _API_se_OK otherwise its _API_se_Error Function intSetGPlODirunsigned char GPIO Description This function set the direction of the GPIO pins located on the feature port Make sure to call this function before calling ReadGPIO or SetCIrGPIO Arguments GPIO Mask of GPIO to set to output none set bits will be input Return If the function succeeds the return value is API se OK otherwise its API se Error Function intSetFanSpeed unsigned char Speed Description This function sets the fan speed in the interval between 0 127 where max speed is 127 Any a
3. gt lt 0X 0X gt lt X gt lt ox ox ox ox gt lt ox gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt x lt gt x lt gt lt x gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt x lt gt lt gt gt x lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt gt gt lt gt x lt gt x gt x x x KTUS15 gt lt x x x gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt X gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt X gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt Notes The SmBus API s are supporting the SmBus available on the Feature Connector only The greyed API function is EOL and will be removed in future KT API V2 package Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 50f18 KT API V2 package content The KT API V2 package contains the following file structure roin linux 4 ktapi bin installd
4. SetWDTimer This function sets the watchdog timer SetBKLControl Set Backlight intensity via PWM by setting the PWM frequency and duty cycle GetMac This function receives the MAC address of a specific NIC SetCPUThrottle This function set CPU throttle This function can be used to save power by slowing down the CPU speed ReadBoardHeader This function read the Inside Header Info from the Memory Area GetBoardName This function returns a pointer to a text containing the board name SmBus_RecvByte This reads a single byte from a device without specifying a device register SmBus_ReadByte This reads a single byte from a device from a designated register SmBus_ReadWord This reads a word 16 bits from a device from a designated register SmBus_ReadBlock This command reads a block of up to 32 bytes from a device SmBus_ReadBytes This reads multi bytes from a device starting from a designated register SmBus_SendByte This sends a single byte to a device without specifying a device register SmBus_WriteByte This writes a single byte to a device to a designated register SmBus_WriteWord This writes a word 16 bits to a device from a designated register SmBus_WriteBlock This command writes a block of up to 32 bytes to a device SmBus PorcessCall This command selects a device register through the Command code sends 16 bits of data to
5. environment Please notice that the API s will soon be available in a dll file for Windows and maybe something similar for Linux Not all functions are available for all boards as shown in the following table API functions 886LCD M EOL x 986LCD M KTGM45 ReadMonitor see note ReadHWMonitorltems GetHWMonitorltem SetCIrGPIO ReadGPIO SetGPlIODir SetFanSpeed EnableWD DisableWD SetWDTimer SetCPUThrottle SetBKLControl ReadBoardHeader GetBoardName A W GetSerialNumber A W GetPartNumber A W SelectFanTempTacChannel GetlntruderStatus CirintruderStatus StartThermalCruise GetMac SetFanTarget SetFanMode SmBus RecvByte SmBus ReadByte SmBus ReadWord SmBus ReadBlock SmBus ReadBytes SmBus SendByte SmBus WriteByte SmBus WriteWord SmBus WriteBlock SmBus PorcessCall X gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt gt lt gt lt gt lt x gt lt gt lt gt lt gt lt gt lt gt lt gt lt x x lt gt x lt gt x lt 0X
6. expected to cause the failure of the life support device or system or to affect its safety or effectiveness Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 30f18 Table of contents Te LMTROGUCHON m TR 4 VMMI Cum 6 cem 6 As APIOVGIVIOW e 7 5 API function detailed descriptions tree pet pne etapa Lore o e ek atc aeu pea ea oue e AREA AAAA SA Ea 8 6 ReadHWMonitorltems description of values nennen nnne enne inr rsen nnns 15 7 Examples Source Code eo tee ee m Eee ut c vae ar an Bad pae ex aude e Rey pae ydg RR vu ERR Rex RR dun 17 Appendix A How to read the III tiere e reete etant E rehab etu n Pe YE nee Fue eeu vex dn poa A 18 Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 4o0f18 1 Introduction The KT API V2 is a software API utility designed for Kontron Motherboards The final application software based on these API s will only run correctly on Kontron Motherboards supporting all the used API s see table below Using the API s makes it possible for OEM customers to design software application accessing onboard features in order to monitor and control different functionalities like Fan soeed CPU temperature GPIO s Watchdog Monitoring voltages Backlight Intensity SMBus etc The Utility can be used to implement applications in a DOS Windows Linux
7. BKLControl unsigned int Freq unsigned int Duty Description The duty cycle in value must be between 0 100 The Pwm frequency in Khz 1Khz 48Khz value must be in the range 1 48 Arguments Freq Frequency Duty Duty cycle Return If the function succeeds the return value is API se OK otherwise it s API se Error Function Int GetMac unsigned char nMac void Buffer Description This function receives the MAC address of a specified controller passed in nMac 1 1 2 2 3 3 The input buffer must be at least 6 bytes long Arguments nMac Ethernet controller number Buffer Buffer to receive the MAC address in Return If the function succeeds the return value is API se OK otherwise its API se Error Function intSetCPUThrotllunsigned char DUTY Description This function set CPU throttle an application can call this function to slow down the CPU speed lici and save power The selectable duty cycle intervals are listed in api h Arguments DUTY Duty cycle If the function succeeds the return value is API se OK otherwise its API se Error Function intReadBoardHeader void Buffer Description This function read the Integrated Info Header from the Memory Area The argument passed to the function must be a pointer to a structure of minimum 19 Bytes The more information on the returned data see appendix A for structure info Arguments Buffer Pointer to buffer to re
8. DTimer and SetWDTimerlnterval before calling this function to prevent immediately reboot Arguments None Return If the function succeeds the return value is API se OK otherwise it s API se Error Function intDisableWD void Description This function disables the watchdog timer Any attempts to modify watchdog timers after calling this function will have no effect Arguments None Return If the function succeeds the return value is API se OK otherwise it s API se Error Function intSetWDTimerlntervalunsigned char VAL Description This function set the watchdog timer interval The interval is multiplied with the WDTimer value and represents the time out period There are to selectable intervals listed in the ktapi h file _1SEC 1MIN Arguments VAL Timer interval Return If the function succeeds the return value is API se OK otherwise it s API se Error Function intSetWDTimer unsigned char Time Description This function sets the watchdog timer An application must service this function and reload the timer to prevent reboot the number of units is between 0 255 Arguments Time Value used for the next timeout watchdog period Return If the function succeeds the return value is API se OK otherwise it s API se Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 120f18 Function _ int Set
9. DevAddr unsigned char ucCommandCode unsigned char ucData Description This writes a single byte to a device to a designated register The register is specified through the Command code This is the opposite of the ReadByte command Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code ucData Data to send Return If the function succeeds the return value is API se OK otherwise it s API se Error Int SmBus WriteWord unsigned char ucDevAddr unsigned char ucCommandCode unsigned short usData Description This is the opposite operation of the ReadWord command 16 bits of data is read from a device from a designated register that is specified through the Command code Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code usData Data to send Return If the function succeeds the return value is API se OK otherwise it s API se Error Um unsigned char uoByteCatunsigned char vepDataBul unsigned char ucByteCnt unsigned char ucpDataBuf Description The opposite of the Block Read command this writes upto 32 bytes to a device toa designated register that is specified through the Command code The amount of data is specified in the ucByteCnt Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code ucByteCnt Nu
10. E 96 KT965 ATXP 98 KT690 mITX 100 KT780 ATX 104 KTUS15 mITX 108 KTG41 ATXU 110 KTGMA5 mITX 112 KTGM45 Flex 114 KTGM45 ATXU 118 KTQ45 Flex 120 KTQ45 ATXE 122 pITX SP 124 JREX DC 126 MOPSIcaLX PLX8 128 JREX 690 BlOSmijr BIOS MAJORVERSION in Hex value BlOSmnr BIOS MINORVERSION in Hex value Reserved N A S N S N in BCD P N P N in BCD Boardinfo
11. Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 1of18 KT API V2 User Manual SW utility designed for the following Motherboard families 886LCD M 986LCD M KT690 KTUS15 KT965 KTGM45 KTQ45 KTG41 KT780 Supported by DOS and Linux 32B 64B Tested on openSUSE 11 1 Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 20f18 Document revision history Revision Date By Comment Nov 23 2010 OLA MLA Revision of table page 4 Updated IHH Dec 10 2009 OLA MLA Added info on ReadHWMonitorltems values and other minor details Nov 19 2009 OLA MLA Updated support table th Updated support table API overview API function detailed Femme OL SMEA descriptions and KT API V2 package content Other minor changes Oct 30 2008 OLA MLA Info regarding available examples Layout and minor changes Oct 27 2008 OLA MLA Preliminary version Copyright Notice Copyright 2008 KONTRON Technology A S ALL RIGHTS RESERVED No part of this document may be reproduced or transmitted in any form or by any means electronically or mechanically for any purpose without the express written permission of KONTRON Technology A S Trademark Acknowledgement Brand and product names are trademarks or registered trademarks of their respective owners Disclaimer KONTRON Technology A S reserves the right to make changes without notice to any
12. ceive IIH Return If the function succeeds the return value is API se OK otherwise its API se Error Function IntGetBoardName char Name Description This function returns a pointer to a text containing the board name Arguments Name Pointer to a char pointer that will receive the BoardName Return If the function succeeds the return value is API se OK otherwise its API se Error Description This function returns a pointer to a text containing the part number Arguments Name Pointer to a char pointer that will receive the part number Return If the function succeeds the return value is API se OK otherwise its API se Error Function Int GetSerialNumber char Number Description This function returns a pointer to a text containing the serial number Arguments Name Pointer to a char pointer that will receive the serial number Return If the function succeeds the return value is API se OK otherwise it s API se Error Function int SmBus RecvByte unsigned char ucDevAddr unsigned char ucpData Description This reads a single byte from a device without specifying a device register Some devices are so simple that this interface is enough for others it is a shorthand if you want to read the same register as in the previous SMBus command Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucpDa
13. erent API s being used in the source code examples available in the KT API V2 package Apitestex c Apitest c CirintruderStatus DisableWD EnableWD GetBoardName GetlntruderStatus GetMac KT API Open KT API Close KT API GetFunction ReadBoardHeader ReadGPIO ReadMonitor SelectFanTempTacChannel SetBKL Control SetCIrGPIO SetCPUThrottle SetFanMode SetFanSpeed SetFanTarget SetGPlIODir SetWDTimer SmBus PorcessCall SmBus_ReadBlock SmBus ReadByte SmBus ReadBytes SmBus RecvByte SmBus ReadWord SmBus SendByte SmBus WriteBlock SmBus WriteByte SmBus WriteWord StartThermalCruise Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 180f18 Appendix A How to read the IIH IHH is Integrated Info Header from the BIOS of Kontron Technology SBC s contains board identification The IIH is implemented for KT Motherboards You can use DMI Desktop Management Interface or API function Readboardheader Disclaimer KONTRON Technology A S reserves the right to make changes without notice Contents Offset Magicscan SIIH 24h 49h 49h 48h Infosize Amount of info in bytes exclude header and this byte 40 886L CD M Flex 48 886LCD mITX 50 886LCD M ATX 60 786LCD mITX 90 986LCD M mITX 91 986LCD M Flex 92 986LCD M ATXP 93 986LCD M ATXE 94 KT965 Flex 95 KT965 ATX
14. hermalCruise must be called prior to this call Arguments uiStt This is the temperature or speed target Return If the function succeeds the return value is API se OK otherwise its API se Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 110f18 Function intSetFanMode UCHARucSfm Description This function set the Target Mode see modes available below Thermal Cruise Mode 01h Fan Speed Cruise Mode 02h Note StartThermalCruise must be called prior to this call Arguments ucSfm Fan mode Return If the function succeeds the return value is API se OK otherwise its API se Error Function intGetlntruderStatus unsigned int Status Description This function returns the intruder status pin The status result is returned in Status Status 0x00000001 Intruder Open case detected Status 0x00000000 Intruder Open case not detected Arguments Status Pointer to receive status Return If the function succeeds the return value is API se OK otherwise it s API se Error Function intClrintruderStatus void O Description This function clears the intruder status bit Arguments None Return If the function succeeds the return value is API se OK otherwise it s API se Error Function intEnableWD void Description This function enables the watchdog timer The user must call SetW
15. in the ucpByteCnt The actual amount of data in device is returned in ucpByteCnt Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code ucpByteCnt In size of data buffer Out numbers bytes received ucpDataBuf Pointer to data buffer Return If the function succeeds the return value is API se OK otherwise its API se Error unsigned int uiByteCnt unsigned char ucpDataBuf Description This reads multi bytes from a device starting from a designated register The register is specified through the Command Code Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code uiByteCnt Numbers bytes received ucpDataBuf Pointer to data buffer Return If the function succeeds the return value is API se OK otherwise it s API se Error Function Int SmBus SendByte unsigned char ucDevAddr unsigned char uccommandCode Description This is the reverse of RecvByte it sends a single byte to a device See Read Byte for more information Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code Return If the function succeeds the return value is API se OK otherwise its API se Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 140f18 Int SmBus_WriteByte unsigned char uc
16. is API se OK otherwise it s _APl_se_ Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 9of 18 Function int ReadHWMonitorltems _pHWM_Item Items o Description This function read the HW monitor and return a structure pointer Arguments Items return pointer to the structure typedef struct HWM ID ID float Value char Name _HWM_ltem _pHWM_ltem typedef enum See chapter ReadHWMonitorltems description of values for more info HWM Last 0x0000 HWM VCORE20x0001 _HWM_VCOREb 0x0002 _HWM_VCC2_5 0x0003 _HWM_VCC3 0x0004 _HWM_VCC5 0x0005 _HWM_V12 0x0006 _HWM_SB3 0x0007 HWM V 1220x0008 _HWM_SB5 0x0009 _HWM_VBATT 0x000a HWM VCC1 220x000b HWM VCC1 820x000c _HWM_VIN 0x000d _HWM_VCC1_5 0x000e HWM CPU Tempz0x1001 HWM System Tempz0x1002 HWM FC Tempz0x1003 HWM CPU Fanz0x2001 HWM System Fanz0x2002 HWM FC Fanz0x2003 HWM Type Mask 0xf000 HWM Type Voltage 0x0000 HWM Type Temperaturez0x1000 HWM Type Fanz0x2000 HWM ID Return If the function succeeds the return value is API se OK otherwise its API se Error int GetHWMonitorltem HWM ID ID float Value Description This function look up the HWM ID and return the value Arguments look at ReadHWMonitorltems HWM ID pointer to the returned value Return If the function succeeds the return value is API se OK otherwise its API se Error
17. it and reads 16 bits of data in return Notes APPs return API se OK logic 1 if the call succeeds otherwise it returns API se Error logic 0 The greyed API function is EOL and will be removed in future KT API V2 package G kontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 80f18 5 API function detailed descriptions Function int KT_API_Open int sf Description This function opens the device driver ktapi bin for hardware communication and must be called in order to use any other functions within this API Arguments sf Where to find ktapi bin sfNewest Check BIOS disk and internal for the newest version and load it sfBIOS Only load driver from BIOS sfDISK Only load driver from DISK sfinternal Use a internal embedded version of ktapi bin If the function succeeds the return value is API se OK otherwise it s API se Error Function intKT API Close void Description This function closes the device driver After closing the driver no attempt to communicate with the driver will be accepted Arguments None Return If the function succeeds the return value is API se OK otherwise it s API se Error Function int KT API GetFunction char Name void pFunction Description This function resolves the addressee for the named function Arguments Name Name of API function pFunction where to put function addressee Return If the function succeeds the return value
18. mbers bytes send ucpDataBuf Pointer to data buffer Return If the function succeeds the return value is API se OK otherwise its API se Error Int SmBus PorcessCall unsigned char ucDevAddr unsigned char ucCommandCode unsigned short uspData Description This command selects a device register through the Command code sends 16 bits of data to it and reads 16 bits of data in return Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code uspData In Data to send Out Data received Return If the function succeeds the return value is API se OK otherwise its API se Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 6 ReadHWMonitorltems description of values KT965 HWM Name Last Internal use BIOS text if available Page VCORE Core voltage VCORE VCOREb Core voltage b VCC2 5 2 5V VCC3 3 3V 3VCC VCC5 5V 5VIN V12 412V 12VIN SB3 Standby 3 3V VSB V 12 12V 12VIN SB5 Standby 5V VBATT Battery voltage VBAT VCC1 2 1 2V VCC1 8 1 8V Core 1 8V VIN Single Voltage Input VCC1 5 1 5V Core 1 5V CPU Temp CPU temperature CPU temperature System Temp System temperature System temperature FC Temp Temperature via Feature Connector
19. oses the device driver KT API GetFunction This function resolves the addressee for the named function ReadMonitor see note This function takes a HWMON structure and fills the structure with valid data ReadHWMonitorltems This function read the HW monitor and return a pointer to a struct GetHWMonitorltem This function return a single item from the struct used in ReadHWMonitorltems Call ReadHWMonitorltems to update the items SetCIrGPIO This function set or clears a GPIO pin located on the feature port ReadGPIO This function reads a GPIO pin located on the feature port SetGPIODir This function set the direction of the GPIO pins located on the feature port SetFanSpeed This function sets the fan speed SelectFanTempTacChannel This function selects the hardware Fan Temp and Tachometer channel StartThermalCruise This function enables Thermal Cruise Control the hardware monitor will automatically control the speed of CPU and System Fan SetFanTarget This function sets the Temperature Speed depending on the Mode selected SetFanMode This function sets the mode Thermal Cruise or Fan Speed Cruise GetlntruderStatus This function returns the intruder status pin CirintruderStatus This function clears the intruder status bit EnableWD This function enables the watchdog timer DisableWD This function disables the watchdog timer
20. product including circuits and or software described or contained in this manual in order to improve design and or performance Specifications listed in this manual are subject to change without notice KONTRON Technology assumes no responsibility or liability for the use of the described product s conveys no license or title under any patent copyright or mask work rights to these products and makes no representations or warranties that these products are free from patent copyright or mask work right infringement unless otherwise specified Applications that are described in this manual are for illustration purposes only KONTRON Technology A S makes no representation or warranty that such application will be suitable for the specified use without further testing or modification Life Support Policy KONTRON Technology s PRODUCTS ARE NOT FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT EXPRESS WRITTEN APPROVAL OF THE GENERAL MANAGER OF KONTRON Technology A S As used herein 1 Life support devices or systems are devices or systems which a are intended for surgical implant into body or b support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labelling can be reasonably expected to result in significant injury to the user 2 Acritical component is any component of a life support device or system whose failure to perform can be reasonably
21. rv uninstalldrv DOS 4 dosapi exe dosapiex exe dosrtc exe ktapi bin installdrv uninstalldrv ktapu ko rcore dos dos c linux Hdry build ktio d Makefile linux c windows win c win h os h api c api h rexamples apirtc apirtc c apitest 4 apitest c apitestex 4 apitestex c robj build MAKEFILE Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 60f18 2 Installation Depending on the OS environment the following must be noticed DOS No installation needed Linux The ktapi ko driver needs to be install in root mode be fore the application can run installdrv 3 Compiling DOS DOS examples are compiled with openwatcom tested with version 1 8 To compile run wmake in root directory Then exe will be placed in bin dos Linux To compile driver go to core os linux ldrv and run build the driver will be copied to bin linux To compile examples run build in root directory The executables will be placed in bin linux G kontron KTD 00769 E 4 API overview Public User Manual KT API V2 Date 2010 11 23 Page 7 of 18 API Function Short form description KT_API_Open This function opens the device driver ktapi bin for hardware communication and must be called in order to use any other functions within this API KT API Close This function cl
22. ta Pointer to received data Return If the function succeeds the return value is API se OK otherwise it s API se Error Gkontron KT API V2 KTD 00769 E Public User Manual Date 2010 11 23 Page 130f18 fee Int SmBus ReadByte unsigned char ucDevAddr unsigned char ucCommandCode unsigned char ucpData Description This reads a single byte from a device from a designated register The register is specified through the Command Code Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code ucpData Pointer to received data Return If the function succeeds the return value is API se OK otherwise it s API se Error int SmBus ReadWord unsigned char ucDevAddr unsigned char ucCommandCode unsigned short uspData Description This reads a word 16 bits from a device from a designated register The register is specified through the Command Code Arguments ucDevAddr Addressee of the device in 8 bit includes R W bit witch shall be set to 0 ucCommandCode Command code uspData Pointer to received data Return If the function succeeds the return value is API se OK otherwise it s API se Error Mall Lt dM unsigned char ucpByteCnt unsigned char ucpDataBuf Description This command reads a block of upto 32 bytes from a device from a designated register that is specified through the Command code The amount of data is specified by the device
23. ttempts to write values above 127 will be ignored For some boards only 16 steps are possible so that any value 120 127 generates maximum speed 112 119 generates second most highest speed and so on Please notice that the values in the range 0 47 might generate a voltage with is to low to start the Fan Arguments Speed Fan speed value between 0 and 127 Return If the function succeeds the return value is API se OK otherwise its API se Error Function intSelectFanTempTacChannel unsigned char Channel Description This function selects the hardware Fan Temp and Tachometer channel default is channel 0 Arguments Channel 0 CPU Fan Temperature 1 System Fan Temperature 2 Feature Connector Fan Temperature Return If the function succeeds the return value is API se OK otherwise its API se Error Function intStartThermalCruise VOID Description This function enables Thermal Cruise Control the hardware monitor will automatically control the speed of CPU and System Fan The target temperature of the CPU is set by using function SetFanTarget Arguments None Return If the function succeeds the return value is API se OK otherwise it s API se Error Function int SetFanTarget unsigned int uiStt Description This function sets the Target Temperature Speed depending on the Mode selected Mode selection can be set by calling function SetFanMode Note StartT

Download Pdf Manuals

image

Related Search

Related Contents

SpotCell 2500 Xl User Manual  119417073_1400867710..    A71 User Manual    コンタクトクリップクランポン取扱説明書  Intel 82557 to 82596 Compatibility Guide  Vision TC2-HDMIIPRX  

Copyright © All rights reserved.
Failed to retrieve file