CANopen Bootloader Documentation
Version 4.10.00
Loading...
Searching...
No Matches
cbl_defs.h File Reference

Detailed Description

The file cbl_defs.h holds global definitions, constants and structures for the CANopen Bootloader. The files 'canopen.h' and 'cbl_conf.h' are included by this header.

+ Include dependency graph for cbl_defs.h:

Macros

#define CBL_VERSION_MAJOR   4
 
#define CBL_VERSION_MINOR   10
 

Enumerations

enum  CblBuf_e {
  eCBL_BUF_NMT = eCP_BUFFER_1 ,
  eCBL_BUF_SDO_RCV ,
  eCBL_BUF_LSS_RCV ,
  eCBL_BUF_SDO_TRM ,
  eCBL_BUF_NMT_ERR ,
  eCBL_BUF_EMCY ,
  eCBL_BUF_LSS_TRM ,
  eCBL_BUF_LAST_ENTRY
}
 
enum  CblErr_e {
  eCblErr_OK = 0 ,
  eCblErr_CAN_INIT ,
  eCblErr_NODE_INIT = 0x10 ,
  eCblErr_NODE_RESET ,
  eCblErr_VALUE_NODE_ID = 0x30 ,
  eCblErr_VALUE_IDENTIFIER ,
  eCblErr_PARM_LOAD = 0x40 ,
  eCblErr_PARM_SAVE
}
 

Macro Definition Documentation

◆ CBL_VERSION_MAJOR

#define CBL_VERSION_MAJOR   4

Major version number of CANopen FD Bootloader stack. The version number is reflected by object 1018h:03h (see ulIdx1018_RevisionNumG).

◆ CBL_VERSION_MINOR

#define CBL_VERSION_MINOR   10

Minor version number of CANopen FD Bootloader stack. The version number is reflected by object 1018h:03h (see ulIdx1018_RevisionNumG).

Enumeration Type Documentation

◆ CblBuf_e

enum CblBuf_e

Message buffer allocation.

Each CANopen service (i.e. identifier) is assigned to a specific message buffer in the CAN controller. For BasicCAN controllers the message buffers must be emulated in software (refer to CANpie).

Enumerator
eCBL_BUF_NMT 

NMT, Identifier 000h (Buffer 1)

eCBL_BUF_SDO_RCV 

SDO Rx, Identifier 600h + NodeId (Buffer 2)

eCBL_BUF_LSS_RCV 

LSS Rx, Identifier 7E5h, (Buffer 3)

eCBL_BUF_SDO_TRM 

SDO Tx, Identifier 580h + NodeId (Buffer 4)

eCBL_BUF_NMT_ERR 

Heartbeat producer, Identifier 700h + NodeId (Buffer 5)

eCBL_BUF_EMCY 

Emergency, Identifier 080h + NodeId (Buffer 6)

eCBL_BUF_LSS_TRM 

LSS Tx, Identifer 7E4h, (Buffer 7)

◆ CblErr_e

enum CblErr_e

Error Codes of protocol stack.

All error codes of the CANopen slave protocol stack have the prefix 'eCblErr_'.

Enumerator
eCblErr_OK 

No error

eCblErr_NODE_INIT 

Node is not initialized

eCblErr_NODE_RESET 

Reset request for Node

eCblErr_VALUE_NODE_ID 

Node ID (device address) is out of range

eCblErr_VALUE_IDENTIFIER 

Identifier is out of range