Owner manual
DOC101357-1_ - rev 2 – 2013-09-23 - Created by:6644
Page 7 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
/** @brief J2534 PassThru function numbers */
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();
HINSTANCE dllLib;
PassThruOpen_t PassThruOpen;
PassThruClose_t PassThruClose;
PassThruConnect_t PassThruConnect;
PassThruDisconnect_t PassThruDisconnect;
PassThruReadMsgs_t PassThruReadMsgs;
PassThruWriteMsgs_t PassThruWriteMsgs;
PassThruGetLastError_t PassThruGetLastError;
PassThruStartPeriodicMsg_t PassThruStartPeriodicMsg;
PassThruStopPeriodicMsg_t PassThruStopPeriodicMsg;
PassThruStartMsgFilter_t PassThruStartMsgFilter;
PassThruStopMsgFilter_t PassThruStopMsgFilter;
PassThruIoctl_t PassThruIoctl;
PassThruSetProgrammingVoltage_t PassThruSetProgrammingVoltage;
PassThruReadVersion_t PassThruReadVersion;