CANopen Slave Documentation
Version 6.16.04
|
Macros | |
#define | CP_AUTOBAUD 0 |
#define | CP_BUFFER_MAX 8 |
#define | CP_CAN_FD 0 |
#define | CP_CAN_MSG_MACRO 0 |
#define | CP_CAN_MSG_MARKER 0 |
#define | CP_CAN_MSG_TIME 0 |
#define | CP_CAN_MSG_USER 1 |
#define | CP_CHANNEL_MAX 1 |
#define | CP_SMALL_CODE 0 |
#define | CP_STATISTIC 0 |
The CANpie FD driver can be configured during compile time via several configuration options. They are typically defined in the cp_platform.h
configuration file.
If symbols are not defined, they get a default value which is assigned in the canpie.h
header file.
#define CP_AUTOBAUD 0 |
This symbol enables or disables the automatic bit-rate detection feature of the CAN driver. The default value is 0 (disabled).
#define CP_BUFFER_MAX 8 |
This symbol defines the number of message buffers (mailboxes) of a CAN controller. In case the controller has no message buffers, it is also possible to emulate these. A value of 0 is not allowed for this symbol.
#define CP_CAN_FD 0 |
This symbol defines if ISO CAN FD support is enabled.
#define CP_CAN_MSG_MACRO 0 |
This symbol defines if access to the CAN message structure CpCanMsg_s is done via macros or via functions.
#define CP_CAN_MSG_MARKER 0 |
This symbol defines if the CAN message structure CpCanMsg_s has a marker field.
#define CP_CAN_MSG_TIME 0 |
This symbol defines if the CAN message structure CpCanMsg_s has a time-stamp field.
#define CP_CAN_MSG_USER 1 |
This symbol defines if the CAN message structure CpCanMsg_s has a user-defined field.
#define CP_CHANNEL_MAX 1 |
This symbol defines the total number of physical CAN interfaces supported by the driver. For a LPC2294 microcontroller the value would be 4 (4 CAN channels).
#define CP_SMALL_CODE 0 |
This symbol is used to control the usage of the ptsPortV
parameter in the core functions during compilation time. For microcontrollers with small resources and only one CAN channel the port parameter can be omitted.
ptsPortV
parameter in core functionsptsPortV
parameter in core functions #define CP_STATISTIC 0 |
This symbol defines if the driver support statistic information. A value of 0 denotes that no statistic information is available. This also means that the function CpCoreStatistic() returns the error code eCP_ERR_NOT_SUPPORTED.