User guide

DOC101014-1_Hatteland Display API_AIPC.docx rev: 7
Created: 17.11.2011 Modified: 07.10.2013 3 of 27
Hatteland Display AS, Åmsosen, N-5578 Nedre Vats, Norway
Tel: (+47) 4814 2200 - mail@hatteland-display.com - www.hatteland-display.com
Hatteland Display API
All intellectual properties belongs to Hatteland Display AS
Table of Contents
Summary ................................................................................................................................. 2
Table of Contents ...................................................................................................................... 3
Revision History ........................................................................................................................ 5
2 Technical Requirements ..................................................................................................... 6
2.1 Windows .................................................................................................................... 6
2.1.1 Installation procedure ........................................................................................... 6
2.2 Linux ......................................................................................................................... 6
2.2.1 32-bit API ........................................................................................................... 6
2.2.2 64-bit API ........................................................................................................... 6
2.2.3 Installation procedure ........................................................................................... 7
3 AIPC ................................................................................................................................ 7
3.1 PCA 9555 Functions .................................................................................................... 7
3.2 Watch Dog functions ................................................................................................... 8
4 Appendix ........................................................................................................................ 13
4.1 HWAPIcommandRW from hwapihatteland.h ................................................................. 13
4.1.1 C# example of hwapihatteland.dll import .............................................................. 13
4.2 Error codes implemented in hwapi.errcodes.h .............................................................. 13
4.3 Available commands implemented in hwapi.cmds.h ...................................................... 13
4.4 C# implementations of AIPC commands ...................................................................... 15
4.4.1 AIPC_CFG0_W ................................................................................................... 15
4.4.2 AIPC_CFG1_W ................................................................................................... 15
4.4.3 AIPC_Read_GPI ................................................................................................. 15
4.4.4 AIPC_K2_EN ...................................................................................................... 15
4.4.5 AIPC_K2_DIS .................................................................................................... 16
4.4.6 AIPC_HS1_EN.................................................................................................... 16
4.4.7 AIPC_HS1_DIS .................................................................................................. 16
4.4.8 AIPC_HS2_EN.................................................................................................... 16
4.4.9 AIPC_HS2_DIS .................................................................................................. 16
4.5 C# implementations of Watchdog commands ............................................................... 17
4.5.1 FIRMWARE_VERSION ......................................................................................... 17
4.5.2 FIRMWARE_MODEL_NAME ................................................................................. 17
4.5.3 HARDWARE_VERSION ........................................................................................ 17
4.5.4 BACK_LIGHT_ADJUSTMENT ................................................................................ 17
4.5.5 BACK_LIGHT_PWM ............................................................................................ 18
4.5.6 WATCHDOG_MONITOR_ENABLE ......................................................................... 18
4.5.7 WATCHDOG_MONITOR_ENABLE_WAIT ................................................................ 18
4.5.8 WATCHDOG_MONITOR_COUNT_RESET ............................................................... 19
4.5.9 ALARM_RESET................................................................................................... 19
4.5.10 ALARM_FAULT_TEST .......................................................................................... 19
4.5.11 ALARM_SOUND_OFF .......................................................................................... 19
4.5.12 ALARM_ACK ...................................................................................................... 20
4.5.13 IO_STATUS_RETURN ......................................................................................... 20
4.5.14 ERROR_LED_EN ................................................................................................ 20
4.5.15 ERROR_LED_DIS ............................................................................................... 21
4.5.16 K1_EN .............................................................................................................. 21
4.5.17 K1_DIS ............................................................................................................. 21
4.5.18 HS_EN .............................................................................................................. 21
4.5.19 HS_DIS ............................................................................................................. 21
4.5.20 BUZZER_EN ...................................................................................................... 22
4.5.21 BUZZER_DIS ..................................................................................................... 22
4.5.22 PAD_LED_LIGHT................................................................................................ 22
4.5.23 PAD_LED_LIGHT_ON ......................................................................................... 22
4.5.24 PAD_LED_LIGHT_OFF ........................................................................................ 23