MCPcopy Create free account
hub / github.com/PricelessToolkit/MailBoxGuard / onTxDone

Method onTxDone

Code/Arduino_libraries/LoRa/LoRa.cpp:380–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void LoRaClass::onTxDone(void(*callback)())
381{
382 _onTxDone = callback;
383
384 if (callback) {
385 pinMode(_dio0, INPUT);
386#ifdef SPI_HAS_NOTUSINGINTERRUPT
387 SPI.usingInterrupt(digitalPinToInterrupt(_dio0));
388#endif
389 attachInterrupt(digitalPinToInterrupt(_dio0), LoRaClass::onDio0Rise, RISING);
390 } else {
391 detachInterrupt(digitalPinToInterrupt(_dio0));
392#ifdef SPI_HAS_NOTUSINGINTERRUPT
393 SPI.notUsingInterrupt(digitalPinToInterrupt(_dio0));
394#endif
395 }
396}
397
398void LoRaClass::receive(int size)
399{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected