Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 DOC101014-1_Hatteland Display API_AIPC.docx (2013-03-21) / Revision 7) Distribution Statement: All information contained in this specification is proprietary to Hatteland Display AS The details connected with this specification shall NOT be published or disclosed to any third party without prior written permission from Hatteland Display AS Created: 17.11.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 Summary The API is created to make it easier for users to access the many functions available through software interaction. This document will give an overview of these functions and explain how to interact with them. The document also contains code examples for all available functions. The API is available for Linux(Fedora 15, OpenSuSE 11.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 Table of Contents Summary ................................................................................................................................. 2 Table of Contents...................................................................................................................... 3 Revision History ................................................................
Hatteland Display API All intellectual properties belongs to Hatteland Display AS 4.5.25 4.5.26 4.5.27 4.5.28 4.5.29 4.5.30 4.5.31 4.5.32 4.5.33 4.5.34 4.5.35 4.5.36 4.5.37 4.5.38 4.5.39 4.5.40 4.5.41 4.5.42 4.5.43 DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 PAD_LED_DIMMING ........................................................................................... 23 PAD_LED_DIMMING_FOLLOW............................................................................. 23 PAD_LED_DIMMING_FOLLOW_EN ...
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 Revision History Created Rev Date By Description 1 2011-11-21 André Kråkenes Updated with information on AIPC and watchdog. 2 2012-01-03 André Kråkenes Added install location for kernel driver hwapi.sys. Added command for Firmware version, Firmware name. Updated commands PAD_LED_ON to PAD_LED_LIGHT_ON and PAD_LED_OFF to PAD_LED_LIGHT_OFF.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 2 Technical Requirements The API is available for both 32bits and 64 bits systems. The API is available in Windows XP, Windows 7 and Linux distributions; Fedora 15 and OpenSUSE 11.4. 2.1 Windows Windows systems can access the API functions by making a reference to a dynamic-link library file; hwapihatteland.dll.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS • DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 hatteland-hwapi-devel-1.3-334.x86_64.rpm – add-on for developers that contains header files and static API library. 2.2.4 Installation procedure In command prompt navigate to the folder where installation packages are located. For 32bit system, use _x86 files, for 64 bit system x86_64. For most users first three packages should be installed in this order: 1.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 Functions AIPC_CFG0_W R/W WO Input 0xXX Output - AIPC_CFG1_W WO 0xXX - AIPC_Read_GPI RO - 1 byte AIPC_K2_EN WO - - AIPC_K2_DIS WO - - AIPC_HS1_EN WO - - AIPC_HS1_DIS WO - - AIPC_HS2_EN WO - - AIPC_HS2_DIS WO - - Functionality Will write input data to the configuration register 6 of PCA9555.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS Custom models ID Model 0x0700 Hatteland Model 0x0701 Reserved 0x0702 Reserved 0x0703 Reserved 0x0704 Reserved 0x0705 Reserved 0x0706 Reserved 0x0707 Reserved 0x0708 Reserved 0x0709 Reserved 0x070A Reserved 0x0702 0x0706 0x0707 0x0708 0x0708 0x070A Reserved Reserved Reserved Reserved Reserved Reserved HD Models ID Model 0x070B HTD0850CI-AMO(HD) 0x070C HTD1350CI-AMO(HD) 0x070D HTD0850CI-DTC(HD) 0x070E HTD1350CI-DTC(HD) 0x070F
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 BACK_LIGHT_ADJUSTMENT function. 3.3.1.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 PAD_LED_LIGHT_ON PAD_LED_LIGHT_OFF PAD_LED_DIMMING WO WO RW 0xXX 1 byte PAD_LED DIMMING_FOLLOW RO - 1 byte PAD_LED DIMMING_FOLLOW_EN PAD_LED DIMMING_FOLLOW_DIS AMBIENT_LIGHT_SENSOR WO AMBIENT_LIGHT_SENSOR_ RANGE - WO - - RO - 2 bytes RW 0xXX [0-4] 1 byte command will read the status of the PAD LED register.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS STATE_IO_GUARDING_NOT_OK STATE_POWER_ON_2_OFF WO WO DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 - - Set state “I/O guarding not OK”. Set state “Power on -> Off”. The watchdog will check its state with regular intervals and update the register according to its state.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 4 Appendix When created, the API was specified to support user applications created in C#. When showing code examples, this document will show C# implementations. 4.1 HWAPIcommandRW from hwapihatteland.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS #define AIPC_K2_EN #define AIPC_K2_DIS #define AIPC_HS1_EN #define AIPC_HS1_DIS #define AIPC_HS2_EN #define AIPC_HS2_DIS // Watchdog PCB #define FIRMWARE_VERSION #define FIRMWARE_MODEL_NAME #define HARDWARE_VERSION #define BACK_LIGHT_INVERTER #define BACK_LIGHT_INVERTER_ON #define BACK_LIGHT_INVERTER_OFF #define BACK_LIGHT_ADJUSTMENT #define BACK_LIGHT_PWM #define WATCHDOG_MONITOR_ENABLE #define WATCHDOG_MONITOR_ENABLE_WAIT #d
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 4.4 C# implementations of AIPC commands 4.4.1 AIPC_CFG0_W int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[1]{0xFF}; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.AIPC_CFG0_W, false, input, output, ref pNBytes); 4.4.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 4.4.5 AIPC_K2_DIS int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.AIPC_K2_DIS, false, input, output, ref pNBytes); 4.4.6 AIPC_HS1_EN int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.AIPC_HS2_DIS, false, input, output, ref pNBytes); 4.5 C# implementations of Watchdog commands 4.5.1 FIRMWARE_VERSION int errCode = -1; byte[] output = new byte[11]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 byte[] input = new byte[1]{0xFF};//0xFF = 100% backlight. byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.BACK_LIGHT_ADJUSTMENT, false, input, output, ref pNBytes); 4.5.4.2 Read int errCode = -1; byte[] output = new byte[1]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 4.5.7.2 Read int errCode = -1; byte[] output = new byte[2]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.WATCHDOG_MONITOR_ENABLE_WAIT, true, input, output, ref pNBytes); 4.5.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.ALARM_SOUND_OFF, false, input, output, ref pNBytes); 4.5.12 ALARM_ACK int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.ERROR_LED_EN, false, input, output, ref pNBytes); 4.5.15 ERROR_LED_DIS int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.ERROR_LED_DIS, false, input, output, ref pNBytes); 4.5.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.HS_DIS, false, input, output, ref pNBytes); 4.5.20 BUZZER_EN int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS 4.5.24 DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 PAD_LED_LIGHT_OFF int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.PAD_LED_LIGHT_OFF, false, input, output, ref pNBytes); 4.5.25 PAD_LED_DIMMING 4.5.25.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS 4.5.27 DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 PAD_LED_DIMMING_FOLLOW_EN int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.PAD_LED_DIMMING_FOLLOW_EN, false, input, output, ref pNBytes); 4.5.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 byte[] output = new byte[1]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.AMBIENT_LIGHT_SENSOR_RANGE, true, input, output, ref pNBytes); 4.5.31 STATE_POWER_OFF_2_ON int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS 4.5.35 DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 STATE_MAINTENANCE int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.STATE_MAINTENANCE, false, input, output, ref pNBytes); 4.5.
Hatteland Display API All intellectual properties belongs to Hatteland Display AS DOC101014-1_Hatteland Display API_AIPC.docx rev: 7 byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.STATE _RESTART, false, input, output, ref pNBytes); 4.5.40 STATE_SLEEP_MODE int errCode = -1; byte[] output = new byte[0]; byte[] input = new byte[0]; byte pNBytes = Convert.ToByte(output.Length); errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.