CAN Low Level
This library contains functions for accessing the CAN field bus. Layer 7 applications (such as CANopen, J1939, DeviceNet and many others) can be realized based on this library.
Note
The library can be used to access the CANbus in parallel to other CAN applications (e.g. CANopenStack), even if they use the same port. All functions are thread-safe and can be used from several tasks in parallel.
Note
A CAN bus application example can be downloaded from the CODESYS Store. It contains a library providing an easy-to-use CAN API based on CANL2 which can be used directly in your application. The library source code is provided as well in case you are searching for an CL2 example project.
EnumsFunctionsBasic FunctionsDiagnostic InformationGetBaudrate(FUN)GetBusAlarm(FUN)GetBusState(FUN)GetBusload(FUN)GetDiagnosis(FUN)GetLostCounter(FUN)GetReceiveCounter(FUN)GetReceiveErrorCounter(FUN)GetReceivePoolSize(FUN)GetReceiveQueueLength(FUN)GetTransmitCounter(FUN)GetTransmitErrorCounter(FUN)GetTransmitPoolSize(FUN)GetTransmitQueueLength(FUN)IsSendingActive(FUN)ResetBusAlarm(FUN)
Extended FunctionalityIndicator ServicesInternalBasic Functions_CloneMessage(FUN)_CreateArrayReceiver(FUN)_CreateIdAreaReceiver(FUN)_CreateMaskReceiver(FUN)_CreateMessage(FUN)_CreateSingleIdReceiver(FUN)_DeleteReceiver(FUN)_DriverClose(FUN)_DriverGetSize(FUN)_DriverOpenH(FUN)_DriverOpenP(FUN)_FreeMessage(FUN)_Read(FUN)_ReadArrayReceiver(FUN)_RegisterIdArea(FUN)_UnregisterIdArea(FUN)_Write(FUN)
Diagnostic Information_GetBaudrate(FUN)_GetBusAlarm(FUN)_GetBusState(FUN)_GetBusload(FUN)_GetDiagnosis(FUN)_GetLostCounter(FUN)_GetReceiveCounter(FUN)_GetReceiveErrorCounter(FUN)_GetReceivePoolSize(FUN)_GetReceiveQueueLength(FUN)_GetTransmitCounter(FUN)_GetTransmitErrorCounter(FUN)_GetTransmitPoolSize(FUN)_GetTransmitQueueLength(FUN)_IsSendingActive(FUN)_ResetBusAlarm(FUN)
Extended FunctionalityIndicator ServicesMessage Information
Message Information
IndicatorConstants(GVL)Structures