beautypg.com

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

Page 6

background image

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

Page 6 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

3. Example Application



/**************************************************************************
**********//**
* @file

test_demo_CAN.cpp

* @brief

Demo application for HD CAN Module

* @date

2013-09-24

* @copyright

Hatteland Display AS


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

#include "hdj2534Handler.h"
#include
#include
#include
#include
#include

//#include "hdj2534.h"

#define FAKE_CHANNEL_ID

123

#define FAKE_DEVICE_ID

0

#define FAKE_PTR

0

#define FAKE_FLAGS

0xFFFFFF

#define PERIODIC_MSG_NUM

15

#define FILTER_NUM

15

#define PASSTHRU_MSG_NUM

256

#define ID_BYTES_NUM

4

#define INITIAL_MSG_ID

0xFFFFFF

#define INITIAL_FILTER_ID

0xFFFFFF

using

namespace

std

;

using

namespace

J2534

;

/** @brief J2534 PassThru function name strings */

const

char

*

passThruFuncNames

[

16

]

=

{

"PassThruOpen()"

,

"PassThruClose()"

,

"PassThruConnect()"

,

"PassThruDisconnect()"

,

"PassThruReadMsgs()"

,

"PassThruWriteMsgs()"

,

"PassThruStartPeriodicMsg()"

,

"PassThruStopPeriodicMsg()"

,

"PassThruStartMsgFilter()"

,

"PassThruStopMsgFilter()"

,

"PassThruSetProgrammingVoltage()"

,

"PassThruReadVersion()"

,

"PassThruGetLastError()"

,

"PassThruIoctl()"

,

"PassThruGetStatus()"

,

"PassThruReset()"

,

"\0"

,

};