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

Page 18

Advertising
background image

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

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

f)

J2534_ERROR_CODE

J2534::PassThruIoctl

( unsigned long

ChannelID,

J2534_IOCTL

IoctlID,

void *

pInput,

void *

pOutput

)

This function is used to read and write all the protocol hardware and software
configuration parameters. If the function is successful, a value of STATUS_NOERROR is
returned. The structures pointed to by pInput and pOutput are determined by the
IoctlID. param[in] ChannelID The channel ID assigned by the PassThruConnect function,
except in designated Ioctls where the device ID is passed instead. (!!!) param[in] IoctlID
Ioctl ID. param[in,out] *pInput Pointer to input structure. param[in,out] *pOutput

Pointer to output structure.

Returns:

Status, see function return codes in

hdj2534.h

g)

J2534_ERROR_CODE

J2534::PassThruOpen

( void *

pName,

unsigned long *

pDeviceID

)

This function is used to establish a connection and initialize the Pass-Thru Device. This
function must be called one time before any other function with the exception of
PassThruGetLastError. Any function called before a successful call to PassThruOpen must
return ERR_INVALID_DEVICE_ID. If the function is successful, a value of
STATUS_NOERROR is returned. The Device ID returned is used as a handle to the

initialized SAE

J2534

device.

Parameters:

[in]

*pName

Used for selecting which device to use (reserved
in

J2534

spec).

[out]

*pDeviceID

Pointer to location for the device ID that is assigned by the
library.

Returns:

Status, see function return codes in

hdj2534.h

.

Advertising