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

Method wake

src/mcp2515_can.cpp:315–322  ·  view source on GitHub ↗

** Function name: wake ** Descriptions: wake MCP2515 manually from sleep. It will come back in the mode it was before sleeping. *********************************************************************************************************/

Source from the content-addressed store, hash-verified

313** Descriptions: wake MCP2515 manually from sleep. It will come back in the mode it was before sleeping.
314*********************************************************************************************************/
315byte mcp2515_can::wake() {
316 byte currMode = getMode();
317 if (currMode != mcpMode) {
318 return mcp2515_setCANCTRL_Mode(mcpMode);
319 } else {
320 return CAN_OK;
321 }
322}
323
324/*********************************************************************************************************
325** Function name: setMode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected