drivers/can_multi_peeakwin32/can_multi_peak_win32.c
changeset 758 9234361a4678
parent 695 0271f08ba819
child 760 71623bbf8093
equal deleted inserted replaced
757:8150518de469 758:9234361a4678
   309   return 0;
   309   return 0;
   310 }
   310 }
   311 
   311 
   312 
   312 
   313 /***************************************************************************/
   313 /***************************************************************************/
       
   314 
       
   315 /* return 0 - OK; 1 - failure */
   314 UNS8 LIBAPI canSend_driver(CAN_HANDLE fd0, Message const *m)
   316 UNS8 LIBAPI canSend_driver(CAN_HANDLE fd0, Message const *m)
   315 {
   317 {
   316 UNS8 data;
   318 UNS8 data;
   317 TPCANMsg peakMsg;
   319 TPCANMsg peakMsg;
   318 int i, j;
   320 int i, j;
   368 
   370 
   369 #if defined DEBUG_MSG_CONSOLE_ON
   371 #if defined DEBUG_MSG_CONSOLE_ON
   370     MSG("out : ");
   372     MSG("out : ");
   371     print_message(m);
   373     print_message(m);
   372 #endif
   374 #endif
   373     return 0;
   375     return 0;					// OK
   374 }
   376 }
   375 
   377 
   376 
   378 
   377 /***************************************************************************/
   379 /***************************************************************************/
   378 UNS8 LIBAPI canChangeBaudRate_driver(CAN_HANDLE fd, char* baud)
   380 UNS8 LIBAPI canChangeBaudRate_driver(CAN_HANDLE fd, char* baud)
   381     return 0;
   383     return 0;
   382 }
   384 }
   383 
   385 
   384 
   386 
   385 /***************************************************************************/
   387 /***************************************************************************/
   386 LIBPUBLIC CAN_HANDLE LIBAPI canOpen_driver(s_BOARD * board)
   388 CAN_HANDLE LIBAPI canOpen_driver(s_BOARD * board)
   387 {
   389 {
   388 int ret;
   390 int ret;
   389 int i;
   391 int i;
   390 
   392 
   391   if(!initialisedQ)
   393   if(!initialisedQ)