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