Manual
DOC101356-1_ - rev 2 – 2013-09-24 - Created by:6644
Page 16 of 24
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 (Linux)
All intellectual properties belongs to Hatteland Display AS
c) J2534_ERROR_CODE J2534::PassThruDisconne
ct
(
unsigned
long
ChannelI
D
)
This function is used to terminate a logical connection with a protocol channel. If the
function is successful, a value of STATUS_NOERROR is returned. After this call, all filters
associated with the channel will be cleared, all periodic messages associated with the
channel will be stopped, the associated pins will return to their default state (see Section
6.8) and the Channel ID will no longer be valid.
Parameters:
[in]
ChannelID
The channel ID assigned by the PassThruConnect function.
Returns:
Status Disconnect request status, see function return codes in hdj2534.h.
d) J2534_ERROR_CODE J2534::PassThruGetLastError
(
char
*
pErrorDescriptio
n
)
This function returns the text string description for an error detected during the last
function call (except PassThruGetLastError). The error string must be retrieved before
calling any other function. The buffer pointed to by pErrorDescription is allocated by the
application and must be at least eighty (80) characters.
Parameters:
[in]
*pErrorDescription
Pointer to buffer for error description string.
Returns:
Status, see function return codes in hdj2534.h.
e) J2534_ERROR_CODE J2534::PassThruGetStat
us
(
unsigned long
ChannelID
,
unsigned long
*
Status
)
This method was added to give the user-application a way to read the status of the CAN-
Gateway and maps to the CAN-Status Register in the LPC17xx. This works for RAWCAN
only.
Parameters:
[in]
ChannelID
Channel ID returned from PassThruOpen.
[out]
*Status
Pointer to location for the Status to set to.
Returns:
Connect request status.