MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / unselect

Method unselect

RFM69.cpp:583–593  ·  view source on GitHub ↗

unselect the RFM69 transceiver (set CS high, restore SPI settings)

Source from the content-addressed store, hash-verified

581
582// unselect the RFM69 transceiver (set CS high, restore SPI settings)
583void RFM69::unselect() {
584 digitalWrite(_slaveSelectPin, HIGH);
585#ifdef SPI_HAS_TRANSACTION
586 _spi->endTransaction();
587#endif
588 // restore SPI settings to what they were before talking to RFM69
589#if defined (SPCR) && defined (SPSR)
590 SPCR = _SPCR;
591 SPSR = _SPSR;
592#endif
593}
594
595// true = disable ID filtering to capture all packets on network, regardless of TARGETID
596// false (default) = enable node/broadcast ID filtering to capture only frames sent to this/broadcast address

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected