User guide

DOC101014-1_Hatteland Display API_AIPC.docx rev: 7
Created: 17.11.2011 Modified: 07.10.2013 18 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
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.HWAPIcommandRW(COMMANDS.BACK_LIGHT_ADJUSTMENT, true, input, output, ref pNBytes);
4.5.5 BACK_LIGHT_PWM
int errCode = -1;
byte[] output = new byte[0];
byte[] input = new byte[2]{0x75,0x30};//50 % backlight.
byte pNBytes = Convert.ToByte(output.Length);
errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.BACK_LIGHT_PWM, false, input, output, ref pNBytes);
4.5.6 WATCHDOG_MONITOR_ENABLE
int errCode = -1;
byte[] output = new byte[0];
byte[] input = new byte[0];
byte pNBytes = Convert.ToByte(output.Length);
errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.WATCHDOG_MONITOR_ENABLE, false, input, output, ref pNBytes);
4.5.7 WATCHDOG_MONITOR_ENABLE_WAIT
4.5.7.1 Write
int errCode = -1;
byte[] output = new byte[0];
byte[] input = new byte[2] { 0x00, 0x0A };//10 seconds wait before watchdog is enabled
byte pNBytes = Convert.ToByte(output.Length);
errCode = hwApiHatteland.HWAPIcommandRW(COMMANDS.WATCHDOG_MONITOR_ENABLE_WAIT, false, input, output, ref pNBytes);