MCPcopy Create free account
hub / github.com/Seeed-Studio/Seeed_Arduino_CAN / sendMsgBuf

Method sendMsgBuf

src/can-serial.cpp:495–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493
494
495INT8U Can232::sendMsgBuf(INT32U id, INT8U ext, INT8U rtr, INT8U len, INT8U *buf) {
496#ifndef _MCP_FAKE_MODE_
497 if (!lw232CAN) {
498 return CAN_FAILTX;
499 }
500 return lw232CAN->sendMsgBuf(id, ext, rtr, len, buf);
501#else
502 Serial.print("<sending:");
503 Serial.print(id, HEX);
504 Serial.print(',');
505 if (ext) Serial.print('+');
506 else Serial.print('-');
507 if (rtr) Serial.print('+');
508 else Serial.print('-');
509 Serial.print(',');
510 Serial.print(len, DEC);
511 Serial.print(',');
512 int i;
513 for (i = 0; i < len; i++) printFullByte(buf[i]);
514 return CAN_OK;
515#endif
516}
517
518
519

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected