** Function name: wake ** Descriptions: wake MCP2515 manually from sleep. It will come back in the mode it was before sleeping. *********************************************************************************************************/
| 313 | ** Descriptions: wake MCP2515 manually from sleep. It will come back in the mode it was before sleeping. |
| 314 | *********************************************************************************************************/ |
| 315 | byte 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 |
nothing calls this directly
no outgoing calls
no test coverage detected