CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_config.h File Reference

Configuration macros for CANopenNode. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CO_CONFIG_FLAG_CALLBACK_PRE   0x1000
 Enable custom callback after CAN receive.
 
#define CO_CONFIG_FLAG_TIMERNEXT   0x2000
 Enable calculation of timerNext_us variable.
 
#define CO_CONFIG_FLAG_OD_DYNAMIC   0x4000
 Enable dynamic behaviour of Object Dictionary variables.
 
#define CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE   (0)
 This flag may be set globally for mainline objects to CO_CONFIG_FLAG_CALLBACK_PRE.
 
#define CO_CONFIG_GLOBAL_RT_FLAG_CALLBACK_PRE   (0)
 This flag may be set globally for Real-Time objects (SYNC, PDO) to CO_CONFIG_FLAG_CALLBACK_PRE.
 
#define CO_CONFIG_GLOBAL_FLAG_TIMERNEXT   (0)
 This flag may be set globally to CO_CONFIG_FLAG_TIMERNEXT.
 
#define CO_CONFIG_GLOBAL_FLAG_OD_DYNAMIC   CO_CONFIG_FLAG_OD_DYNAMIC
 This flag may be set globally to (0)
 
#define CO_CONFIG_NMT   (CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE | CO_CONFIG_GLOBAL_FLAG_TIMERNEXT)
 Configuration of NMT and Heartbeat.
 
#define CO_CONFIG_HB_CONS
 Configuration of Heartbeat consumer.
 
#define CO_CONFIG_NODE_GUARDING   (0)
 Configuration of Node Guarding CANopen Node Guarding, an older alternative to the Heartbeat protocol..
 
#define CO_CONFIG_NODE_GUARDING_MASTER_COUNT   0x7F
 Maximum number of nodes monitored by master.
 
#define CO_CONFIG_EM
 Configuration of Emergency.
 
#define CO_CONFIG_EM_ERR_STATUS_BITS_COUNT   (10 * 8)
 Maximum number of Error status bits.
 
#define CO_CONFIG_ERR_CONDITION_GENERIC   (em->errorStatusBits[5] != 0)
 Condition for calculating CANopen Error register, "generic" error bit.
 
#define CO_CONFIG_ERR_CONDITION_CURRENT
 Condition for calculating CANopen Error register, "current" error bit.
 
#define CO_CONFIG_ERR_CONDITION_VOLTAGE
 Condition for calculating CANopen Error register, "voltage" error bit.
 
#define CO_CONFIG_ERR_CONDITION_TEMPERATURE
 Condition for calculating CANopen Error register, "temperature" error bit.
 
#define CO_CONFIG_ERR_CONDITION_COMMUNICATION   (em->errorStatusBits[2] || em->errorStatusBits[3])
 Condition for calculating CANopen Error register, "communication" error bit.
 
#define CO_CONFIG_ERR_CONDITION_DEV_PROFILE
 Condition for calculating CANopen Error register, "device profile" error bit.
 
#define CO_CONFIG_ERR_CONDITION_MANUFACTURER   (em->errorStatusBits[8] || em->errorStatusBits[9])
 Condition for calculating CANopen Error register, "manufacturer" error bit.
 
#define CO_CONFIG_SDO_SRV
 Configuration of SDO server.
 
#define CO_CONFIG_SDO_SRV_BUFFER_SIZE   32
 Size of the internal data buffer for the SDO server.
 
#define CO_CONFIG_SDO_CLI   (0)
 Configuration of SDO client.
 
#define CO_CONFIG_SDO_CLI_BUFFER_SIZE   32
 Size of the internal data buffer for the SDO client.
 
#define CO_CONFIG_TIME   (CO_CONFIG_TIME_ENABLE | CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE | CO_CONFIG_GLOBAL_FLAG_OD_DYNAMIC)
 Configuration of TIME.
 
#define CO_CONFIG_SYNC
 Configuration of SYNC.
 
#define CO_CONFIG_PDO
 Configuration of PDO.
 
#define CO_CONFIG_STORAGE   (CO_CONFIG_STORAGE_ENABLE)
 Configuration of Data storage base.
 
#define CO_CONFIG_LEDS   (CO_CONFIG_LEDS_ENABLE | CO_CONFIG_GLOBAL_FLAG_TIMERNEXT)
 Configuration of LED indicators.
 
#define CO_CONFIG_GFC   (0)
 Configuration of GFC.
 
#define CO_CONFIG_SRDO   (0)
 Configuration of SRDO.
 
#define CO_CONFIG_SRDO_MINIMUM_DELAY   0
 SRDO Tx time delay.
 
#define CO_CONFIG_LSS   (CO_CONFIG_LSS_SLAVE | CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE)
 Configuration of LSS.
 
#define CO_CONFIG_GTW   (0)
 Configuration of Gateway ASCII mapping.
 
#define CO_CONFIG_GTW_BLOCK_DL_LOOP   1
 Number of loops of CO_SDOclientDownload() in case of block download.
 
#define CO_CONFIG_GTWA_COMM_BUF_SIZE   200
 Size of command buffer in ASCII gateway object.
 
#define CO_CONFIG_GTWA_LOG_BUF_SIZE   2000
 Size of message log buffer in ASCII gateway object.
 
#define CO_CONFIG_CRC16   (0)
 Configuration of CRC 16 CCITT calculation.
 
#define CO_CONFIG_FIFO   (0)
 Configuration of FIFO circular buffer FIFO circular buffer for continuous data flow..
 
#define CO_CONFIG_TRACE   (0)
 Configuration of Trace for recording variables over time.
 
#define CO_CONFIG_DEBUG   (0)
 Configuration of debug messages from different parts of the stack, which can be logged according to target specific function.
 

Detailed Description

Configuration macros for CANopenNode.

Author
Janez Paternoster

This file is part of https://github.com/CANopenNode/CANopenNode, a CANopen Stack.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.