equal
deleted
inserted
replaced
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 & 0x7f) |
121 #define GET_NODE_ID(m) (UNS16_LE(m.cob_id) & 0x7f) |
122 #define GET_FUNCTION_CODE(m) (m.cob_id >> 7) |
122 #define GET_FUNCTION_CODE(m) (UNS16_LE(m.cob_id) >> 7) |
123 |
123 |
124 #endif /* __objdictdef_h__ */ |
124 #endif /* __objdictdef_h__ */ |