include/can_driver.h
changeset 631 08b6b903f84a
parent 629 b9274b595650
child 644 11b21e9a92f6
equal deleted inserted replaced
630:96919642e99c 631:08b6b903f84a
    57 #define FCT_PTR_INIT
    57 #define FCT_PTR_INIT
    58 #endif
    58 #endif
    59 
    59 
    60 
    60 
    61 UNS8 DLL_CALL(canReceive)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    61 UNS8 DLL_CALL(canReceive)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    62 UNS8 DLL_CALL(canSend)(CAN_HANDLE, Message *)FCT_PTR_INIT;
    62 UNS8 DLL_CALL(canSend)(CAN_HANDLE, Message const *)FCT_PTR_INIT;
    63 CAN_HANDLE DLL_CALL(canOpen)(s_BOARD *)FCT_PTR_INIT;
    63 CAN_HANDLE DLL_CALL(canOpen)(s_BOARD *)FCT_PTR_INIT;
    64 int DLL_CALL(canClose)(CAN_HANDLE)FCT_PTR_INIT;
    64 int DLL_CALL(canClose)(CAN_HANDLE)FCT_PTR_INIT;
    65 UNS8 DLL_CALL(canChangeBaudRate)(CAN_HANDLE, char *)FCT_PTR_INIT;
    65 UNS8 DLL_CALL(canChangeBaudRate)(CAN_HANDLE, char *)FCT_PTR_INIT;
    66 
    66 
    67 #if defined DEBUG_MSG_CONSOLE_ON || defined NEED_PRINT_MESSAGE
    67 #if defined DEBUG_MSG_CONSOLE_ON || defined NEED_PRINT_MESSAGE
    68 #include "def.h"
    68 #include "def.h"
    69 
    69 
    70 #define _P(fc) case fc: MSG(#fc" ");break;
    70 #define _P(fc) case fc: MSG(#fc" ");break;
    71 
    71 
    72 static inline void print_message(Message *m)
    72 static inline void print_message(Message const *m)
    73 {
    73 {
    74     int i;
    74     int i;
    75     UNS8 fc;
    75     UNS8 fc;
    76     MSG("id:%02x ", m->cob_id & 0x7F);
    76     MSG("id:%02x ", m->cob_id & 0x7F);
    77     fc = m->cob_id >> 7;
    77     fc = m->cob_id >> 7;