CANopen Slave Documentation
Version 6.16.04
|
Macros | |
#define | CP_NRL_TIMER_PERIOD 1000 |
#define | CP_NRL_SUPPORT 0 |
#define | CP_NRL_FAULT_SIMULATION 0 |
The Network Redundancy Layer can be configured during compile time via several configuration options. They are defined to default values inside the cp_nrl.h
header file. It is recommended to modify the default values of CP_NRL_CHANNEL_MAX and CP_NRL_TIMER_PERIOD by means of compiler options (e.g. setting them inside a CMakeLists.txt file).
#define CP_NRL_FAULT_SIMULATION 0 |
This symbol defines if a fault simulation is supported. A value of 0 disables fault simulation, a value of 1 enables this feature. For productive environment this symbol shall be set to 0.
#define CP_NRL_SUPPORT 0 |
This symbol is controlled by the value of CP_NRL_CHANNEL_MAX. It is used for internal purposes during the compilation process of the NRL and can be evaluated by the application program.
#define CP_NRL_TIMER_PERIOD 1000 |
This symbol defines the timer period for calling the function CpNrlTimerEvent(). The value is a multiple of 1 microsecond and has to be adjusted to the target system update rate.