#define RO 0x02
#define TO_BE_SAVE 0x04
+#define DCF_TO_SEND 0x08
/************************ STRUCTURES ****************************/
/** This are some structs which are neccessary for creating the entries
{
UNS8 bAccessType;
UNS8 bDataType; /* Defines of what datatype the entry is */
- UNS8 size; /* The size (in Byte) of the variable */
+ UNS32 size; /* The size (in Byte) of the variable */
void* pObject; /* This is the pointer of the Variable */
} subindex;
/************************** MACROS *********************************/
/* CANopen usefull helpers */
-#define GET_NODE_ID(m) (m.cob_id.w & 0x7f)
-#define GET_FUNCTION_CODE(m) (m.cob_id.w >> 7)
+#define GET_NODE_ID(m) (UNS16_LE(m.cob_id) & 0x7f)
+#define GET_FUNCTION_CODE(m) (UNS16_LE(m.cob_id) >> 7)
#endif /* __objdictdef_h__ */