** Function name: init_CS ** Descriptions: init CS pin and set UNSELECTED *********************************************************************************************************/
| 15 | ** Descriptions: init CS pin and set UNSELECTED |
| 16 | *********************************************************************************************************/ |
| 17 | void MCP_CAN::init_CS(byte _CS) |
| 18 | { |
| 19 | if (_CS == 0) |
| 20 | { |
| 21 | return; |
| 22 | } |
| 23 | SPICS = _CS; |
| 24 | pinMode(SPICS, OUTPUT); |
| 25 | digitalWrite(SPICS, HIGH); |
| 26 | } |
| 27 | |
| 28 | void MCP_CAN::setSPI(SPIClass *_pSPI) |
| 29 | { |
nothing calls this directly
no outgoing calls
no test coverage detected