![]() |
CETONI SDK
20220623
The software libraries for integration of all CETONI devices.
|
Initialize communication to device.
This group defines all required functions for initialisation of a proper communication to the device.
Functions | |
LCB_Func long LCB_CALL | LCB_Close () |
Close LabCanBus instance. More... | |
LCB_Func long LCB_CALL | LCB_Log (const char *pLogMsg) |
Write one message into log file. More... | |
LCB_Func long LCB_CALL | LCB_Open (const char *pDeviceConfigPath, const char *PluginSearchPath) |
Initialize LabCanBus instance. More... | |
LCB_Func long LCB_CALL | LCB_Start () |
Start network communication. More... | |
LCB_Func long LCB_CALL | LCB_Stop () |
Stop network communication. More... | |
LCB_Func long LCB_CALL LCB_Close | ( | ) |
Close LabCanBus instance.
This call deletes all internal data structures and frees all allocated resources
LCB_Func long LCB_CALL LCB_Log | ( | const char * | pLogMsg | ) |
Write one message into log file.
[in] | pLogMsg | Message to write into log file |
LCB_Func long LCB_CALL LCB_Open | ( | const char * | pDeviceConfigPath, |
const char * | PluginSearchPath | ||
) |
Initialize LabCanBus instance.
Initializes resources for a LabCanBus instance, connects to LabCanBus and scans for connected devices.
[in] | pDeviceConfigPath | Absolute path to the folder that contains the device configuration files (XML config files - see |
[in] | PluginSearchPath | An additional search path, where the QmixSDK searches for device plugins. Normally the SDK searches in the plugins/labbcan folder that is a direct child of your application folder. If your plugins folder is located on a different location, then you should provide a valid path here. See Device Configuration Files for a detailed description of device configuration. |
ERR_NOERR | indicates success |
-ERR_NOTDIR | if the given config path is not a directory |
-ERR_NOENT | if no device_properties.xml file exists in the given device configuration directory |
LCB_Func long LCB_CALL LCB_Start | ( | ) |
Start network communication.
This function sets all connected devices into state operational and enabled. After a call to this function it is possible to access the connected devices.
LCB_Func long LCB_CALL LCB_Stop | ( | ) |
Stop network communication.
This function stops network communication and closes the CAN device driver. The function should be called by application before LCB_Close();