beautypg.com

Hd can module programmer’s guide (linux) – Hatteland Display HT B22 (Fanless) User Manual

Page 8

background image

DOC101356-1_ - rev 2 – 2013-09-24 - Created by:6644

Page 8 of 24

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

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

HD CAN Module Programmer’s Guide (Linux)

All intellectual properties belongs to Hatteland Display AS

enum

passThruFuncNum

{

NO_FUNCTION

=

0

,

PASSTHRU_OPEN

,

PASSTHRU_CLOSE

,

PASSTHRU_CONNECT

,

PASSTHRU_DISCONNECT

,

PASSTHRU_READ_MSG

,

PASSTHRU_WRITE_MSG

,

PASSTHRU_START_PERIODIC_MSG

,

PASSTHRU_STOP_PERIODIC_MSG

,

PASSTHRU_START_MSG_FILTER

,

PASSTHRU_STOP_MSG_FILTER

,

PASSTHRU_SET_PROGRAMMING_VOLTAGE

,

PASSTHRU_READ_VERSION

,

PASSTHRU_GET_LAST_ERROR

,

PASSTHRU_IOCTL

,

PASSTHRU_GET_STATUS

,

PASSTHRU_RESET

,

};

static

unsigned

long

deviceId

;

static

unsigned

long

channel_1

;

static

unsigned

long

channel_2

;

static

unsigned

long

filterId

[

FILTER_NUM

];

static

unsigned

long

periodMsgId

[

PERIODIC_MSG_NUM

];

static

PASSTHRU_MSG txPassThruMsg

[

PASSTHRU_MSG_NUM

];

static

PASSTHRU_MSG rxPassThruMsg

[

PASSTHRU_MSG_NUM

];

static

PASSTHRU_MSG filterMaskPassThruMsg

;

static

PASSTHRU_MSG filterPattPassThruMsg

;


static

void

callPassThruOpen

();

static

void

callPassThruClose

();

static

void

callPassThruConnect

();

static

void

callPassThruDisconnect

();

static

void

callPassThruReadMsgs

();

static

void

callPassThruWriteMsgs

();

static

void

callPassThruStartMsgFilter

();

static

void

callPassThruStopMsgFilter

();

static

void

callPassThruReset

();

/**************************************************************************
**********//**
* @brief Function to Open device

***************************************************************************
************/

static

void

callPassThruOpen

()

{

PassThruOpen

(

0

,

&

deviceId

);

}

/**************************************************************************
**********//**
* @brief Function to Close Device

***************************************************************************
************/