Appendix, Hd can module programmer’s guide (linux) – Hatteland Display HT B22 (Fanless) User Manual
Page 15

DOC101356-1_ - rev 2 – 2013-09-24 - Created by:6644
Page 15 of 24
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 (Linux)
All intellectual properties belongs to Hatteland Display AS
4. Appendix
a)
J2534_ERROR_CODE
J2534::PassThruClose
( unsigned long
DeviceID
)
This function is used to close the connection to a Pass-Thru Device. All periodic messages
will be stopped, filters will be cleared, and all pins will return to their default state (see
Section 6.8). This function must be called before an application exits. The libray can use
this function to de-allocate data structures and deactivate any device drivers. If the
function is successful, a value of STATUS_NOERROR is returned. After this call, all active
protocols will be disconnected, Channel IDs will no longer be valid, and any function call
other than PassThruOpen will result in the error ERR_INVALID_DEVICE_ID being
returned (with the exception of PassThruGetLastError).
Parameters:
[in]
DeviceID
DeviceID returned from PassThruOpen.
Returns:
Status, see function return codes in
hdj2534.h
.
b)
J2534_ERROR_CODE
J2534::PassThruConnect
( unsigned long
DeviceID,
J2534_PROTOCOL
ProtocolID,
unsigned long
Flags,
unsigned long
BaudRate,
unsigned long *
pChannelID
)
This function is used to establish a logical connection with a protocol channel on the
specified SAE
J2534
device. After this function is called, the value pointed to by
pChannelID is used as the logical identifier for the combination of Device ID and Protocol
ID. If the function is successful, a value of STATUS_NOERROR is returned and a valid
channel ID will be placed in pChannelID. All future interactions with the protocol channel
will be done using the pChannelID. Note that the interface will block all received
messages on this channel until a filter is set.
Parameters:
[in]
DeviceID
Device ID returned from PassThruOpen.
[in]
ProtocolID
Protocol ID.
[in]
Flags
Connection flags.
[in]
BaudRate
Initial baud rate.
[out]
*pChannelID
Pointer to location for the channel ID that is assigned by the
library.
Returns:
Connect request status, see function return codes in
hdj2534.h
.
- 26 inch - HD 26T21 MMC (Widescreen) 24 inch - HD 24T21 MMC (Widescreen) 19 inch - HD 19T21 MMC 17 inch - HD 17T21 MMC 15 inch - HD 15T21 MMC 12 inch - HD 12T21 MMC 13 inch - HD 13T21 MMC (Widescreen, Inte Cor2 Duo CPU) 13 inch - HD 13T21 MMC (Widescreen, Inte Ato CPU) 8 inch - HD 08T21 MMC (Widescreen)