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

Method wake

src/mcp2518fd_can.cpp:1982–1989  ·  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

1980*in the mode it was before sleeping.
1981*********************************************************************************************************/
1982byte mcp2518fd::wake() {
1983 byte currMode = getMode();
1984 if (currMode != mcpMode) {
1985 return mcp2518fd_OperationModeSelect(mcpMode);
1986 } else {
1987 return CAN_OK;
1988 }
1989}
1990
1991/*********************************************************************************************************
1992** Function name: getMode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected