Owner manual
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 - mail@hatteland-display.com - 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 <string.h>
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
//#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",
};