CANopenNode
CANopen protocol stack
|
Specified in standard CiA 301 More...
Macros | |
#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. | |
Specified in standard CiA 301
#define CO_CONFIG_EM |
Configuration of Emergency.
Possible flags, can be ORed:
#define CO_CONFIG_EM_ERR_STATUS_BITS_COUNT (10 * 8) |
Maximum number of Error status bits.
Stack uses 6*8 = 48 Error status bits, others are free to use by manufacturer. Allowable value range is from 48 to 256 bits in steps of 8. Default is 80.
#define CO_CONFIG_ERR_CONDITION_GENERIC (em->errorStatusBits[5] != 0) |
Condition for calculating CANopen Error register, "generic" error bit.
Condition must observe suitable Error status bits and use corresponding member of errorStatusBits array from CO_EM_t to calculate the condition. See also CANopen Error register.
em->errorStatusBits[5] should be included in the condition, because they are used by the stack.
#define CO_CONFIG_ERR_CONDITION_CURRENT |
Condition for calculating CANopen Error register, "current" error bit.
See CO_CONFIG_ERR_CONDITION_GENERIC for description. Macro is not defined by default, so no error is verified.
#define CO_CONFIG_ERR_CONDITION_VOLTAGE |
Condition for calculating CANopen Error register, "voltage" error bit.
See CO_CONFIG_ERR_CONDITION_GENERIC for description. Macro is not defined by default, so no error is verified.
#define CO_CONFIG_ERR_CONDITION_TEMPERATURE |
Condition for calculating CANopen Error register, "temperature" error bit.
See CO_CONFIG_ERR_CONDITION_GENERIC for description. Macro is not defined by default, so no error is verified.
#define CO_CONFIG_ERR_CONDITION_COMMUNICATION (em->errorStatusBits[2] || em->errorStatusBits[3]) |
Condition for calculating CANopen Error register, "communication" error bit.
See CO_CONFIG_ERR_CONDITION_GENERIC for description.
em->errorStatusBits[2] and em->errorStatusBits[3] must be included in the condition, because they are used by the stack.
#define CO_CONFIG_ERR_CONDITION_DEV_PROFILE |
Condition for calculating CANopen Error register, "device profile" error bit.
See CO_CONFIG_ERR_CONDITION_GENERIC for description. Macro is not defined by default, so no error is verified.
#define CO_CONFIG_ERR_CONDITION_MANUFACTURER (em->errorStatusBits[8] || em->errorStatusBits[9]) |
Condition for calculating CANopen Error register, "manufacturer" error bit.
See CO_CONFIG_ERR_CONDITION_GENERIC for description.
em->errorStatusBits[8] and em->errorStatusBits[8] are pre-defined, but can be changed.