12 alarm_ack, 13 io_status_return, 14 error_led_en – Hatteland Display 13 inch - HD 13T21 MMC (Widescreen, Inte Ato CPU) User Manual

Page 20: Hatteland display api

Advertising
background image

DOC101014-1_Hatteland Display API_AIPC.docx rev: 7

Created: 17.11.2011

Modified: 07.10.2013

20 of 27

Hatteland Display AS, Åmsosen, N-5578 Nedre Vats, Norway

Tel: (+47) 4814 2200 - [email protected] - www.hatteland-display.com

Hatteland Display API

All intellectual properties belongs to Hatteland Display AS

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

.ALARM_ACK,

false

, input, output,

ref

pNBytes);

4.5.13

IO_STATUS_RETURN

4.5.13.1 Write

int

errCode = -1;

byte

[] output =

new

byte

[0];

byte

[] input =

new

byte

[1]{0xFF};

//ERROR_LED=ON, K1_RELAY=ON. HS_SWITCH=ON, BUZZER=ON

byte

pNBytes =

Convert

.ToByte(output.Length);

errCode =

hwApiHatteland

.HWAPIcommandRW(

COMMANDS

.IO_STATUS_RETURN,

false

, input, output,

ref

pNBytes);

4.5.13.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

.IO_STATUS_RETURN,

true

, input, output,

ref

pNBytes);

4.5.14

ERROR_LED_EN

int

errCode = -1;

byte

[] output =

new

byte

[0];

byte

[] input =

new

byte

[0];

byte

pNBytes =

Convert

.ToByte(output.Length);

Advertising
This manual is related to the following products: