CANopen Slave Documentation
Version 6.16.04
Loading...
Searching...
No Matches
NRL configuration options

Macros

#define CP_NRL_TIMER_PERIOD   1000
 
#define CP_NRL_SUPPORT   0
 
#define CP_NRL_FAULT_SIMULATION   0
 

Detailed Description

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).

Macro Definition Documentation

◆ CP_NRL_FAULT_SIMULATION

#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.

◆ CP_NRL_SUPPORT

#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.

◆ CP_NRL_TIMER_PERIOD

#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.