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

Method instance

src/can-serial.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45Can232* Can232::_instance = 0;
46
47Can232* Can232::instance() {
48 if (_instance == 0)
49 _instance = new Can232();
50 return _instance;
51}
52
53void Can232::init(INT8U defaultCanSpeed, const INT8U clock) {
54 dbg_begin(LW232_DEFAULT_BAUD_RATE); // logging through software serial

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected