CANopen Slave Documentation
Version 7.00.02
Loading...
Searching...
No Matches
CANopen Slave protocol stacks configuration

Macros

#define COS_CONF_SLAVE   ((uint16_t) 0x0000)
 
#define COS_CONF_MASTER   ((uint16_t) 0x0001)
 
#define COS_CONF_AUTOSTART   ((uint16_t) 0x0002)
 
#define COS_CONF_FD   ((uint16_t) 0x0004)
 
#define COS_CONF_J1939   ((uint16_t) 0x0010)
 

Detailed Description

The COS_CONF definitions specifies configuration options ofr the protocol stack, i.e. they define the parameter uwConfigV of the function CosMgrInit().

Macro Definition Documentation

◆ COS_CONF_AUTOSTART

#define COS_CONF_AUTOSTART   ((uint16_t) 0x0002)

After transmission of the boot-up message, make an automatic transition of the NMT state machine to the Operational state.

◆ COS_CONF_FD

#define COS_CONF_FD   ((uint16_t) 0x0004)

Start CANopen slave in ISO CAN FD mode (CANopen FD).

◆ COS_CONF_J1939

#define COS_CONF_J1939   ((uint16_t) 0x0010)

Start in J1939 mode. This is a mutually exclusive option. It requires an existing installation of the J1939 protocol stack (see application note AN 5003).

◆ COS_CONF_MASTER

#define COS_CONF_MASTER   ((uint16_t) 0x0001)

Use the CANopen FD Slave protocol stack as NMT master and LSS master. This option is only possible in conjunction with the mini-master add-on. It is advised to use the CANopen FD Master protocol stack in order to achieve full support of all CANopen master features.

◆ COS_CONF_SLAVE

#define COS_CONF_SLAVE   ((uint16_t) 0x0000)

This the the default configuration: CANopen slave.