include/objdictdef.h
changeset 365 9b76e0881beb
parent 349 1e6dd4ef46b9
child 449 85f6acbb9d54
equal deleted inserted replaced
364:17edd8a028fa 365:9b76e0881beb
   116 typedef const indextable * (*scanIndexOD_t)(UNS16 wIndex, UNS32 * errorCode, ODCallback_t **Callback);
   116 typedef const indextable * (*scanIndexOD_t)(UNS16 wIndex, UNS32 * errorCode, ODCallback_t **Callback);
   117 
   117 
   118 /************************** MACROS *********************************/
   118 /************************** MACROS *********************************/
   119 
   119 
   120 /* CANopen usefull helpers */
   120 /* CANopen usefull helpers */
   121 #define GET_NODE_ID(m)         (m.cob_id.w & 0x7f)
   121 #define GET_NODE_ID(m)         (m.cob_id & 0x7f)
   122 #define GET_FUNCTION_CODE(m)     (m.cob_id.w >> 7)
   122 #define GET_FUNCTION_CODE(m)     (m.cob_id >> 7)
   123 
   123 
   124 #endif /* __objdictdef_h__ */
   124 #endif /* __objdictdef_h__ */