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

Method init_CS

src/mcp_can.cpp:17–26  ·  view source on GitHub ↗

** Function name: init_CS ** Descriptions: init CS pin and set UNSELECTED *********************************************************************************************************/

Source from the content-addressed store, hash-verified

15** Descriptions: init CS pin and set UNSELECTED
16*********************************************************************************************************/
17void 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
28void MCP_CAN::setSPI(SPIClass *_pSPI)
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected