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

Method openCanBus

src/can-serial.cpp:482–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482INT8U Can232::openCanBus() {
483 INT8U ret = LW232_OK;
484#ifndef _MCP_FAKE_MODE_
485 if (!lw232CAN) {
486 return CAN_FAILINIT;
487 }
488 if (CAN_OK != lw232CAN->begin(lw232CanSpeedSelection, lw232McpModuleClock))
489 ret = LW232_ERR;
490#endif
491 return ret;
492}
493
494
495INT8U Can232::sendMsgBuf(INT32U id, INT8U ext, INT8U rtr, INT8U len, INT8U *buf) {

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected