
LIN-CAN-RS232 Gateway API (L2CAPI)
9
L2C-API Manual, Version 1.6
2.5 Interface ILIN2CAN_API_Ctrl
This interface provides the following methods:
•
Connect([in] PCHAR pszName, [in] PCHAR pszMode)
With Connect the API is connected to the device by the stated
interface. The name of the interface to be used is given in pszName
e.g. “COM1” or “COM2”. In pszMode, “baud=115200 parity=N data=8
stop=1” must always be transmitted. If the connection was made
successfully, S_OK is returned, otherwise an error code that can be
converted into a readable string with L2CAPI_FormatError().
•
Disconnect()
With Disconnect the connection to the device is disconnected again.
•
IsConnected()
IsConnected is used to query whether the device is still connected.
This function checks the status of the DSR line. In this way
disconnection of the device can also be detected during operation.
Summary of Contents for LIN2CAN
Page 1: ...LIN2CAN API L2CAPI MANUAL ENGLISH...
Page 4: ......