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

Page 9

Advertising
background image

DOC101357-1_ - rev 2 – 2013-09-23 - Created by:6644

Page 9 of 25

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 (Windows)

All intellectual properties belongs to Hatteland Display AS

PassThruSetProgrammingVoltage

=

(

PassThruSetProgrammingVoltage_t

)

GetProcAddress

(

dllLib

,

"PassThruSetProgramm

ingVoltage"

);

PassThruReadVersion

=

(

PassThruReadVersion_t

)

GetProcAddress

(

dllLib

,

"PassThruReadVersion"

);

PassThruGetStatus

=

(

PassThruGetStatus_t

)

GetProcAddress

(

dllLib

,

"PassThruGetStatus"

);

PassThruReset

=

(

PassThruReset_t

)

GetProcAddress

(

dllLib

,

"PassThruReset"

);


if

((

PassThruOpen

==

NULL

)

||

(

PassThruClose

==

NULL

)

||

(

PassThruConnect

==

NULL

)

||

(

PassThruDisconnect

==

NULL

)

||

(

PassThruReadMsgs

==

NULL

)

||

(

PassThruWriteMsgs

==

NULL

)

||

(

PassThruGetLastError

==

NULL

)

||

(

PassThruStartPeriodicMsg

==

NULL

)

||

(

PassThruStopPeriodicMsg

==

NULL

)

||

(

PassThruStartMsgFilter

==

NULL

)

||

(

PassThruStopMsgFilter

==

NULL

)

||

(

PassThruReset

==

NULL

))

{

cout

<<

"Unable to find DLL function!"

<<

endl

;

if

(

false

==

freeLib

())

{

cout

<<

"Unable to free DLL!"

<<

endl

;

}

return

false

;

}

return

true

;

}

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

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

static

void

callPassThruOpen

()

{

PassThruOpen

(

0

,

&

deviceId

);

}

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

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

static

void

callPassThruClose

()

{

PassThruClose

(

deviceId

);

}

/**************************************************************************
**********//**
* @brief Function to Connect Channel

Advertising