MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / read

Method read

src/IRReceive.hpp:546–555  ·  view source on GitHub ↗

* Returns pointer to IrReceiver.decodedIRData if IR receiver data is available, else nullptr. */

Source from the content-addressed store, hash-verified

544 * Returns pointer to IrReceiver.decodedIRData if IR receiver data is available, else nullptr.
545 */
546IRData* IRrecv::read() {
547 if (irparams.StateForISR != IR_REC_STATE_STOP) {
548 return nullptr;
549 }
550 if (decode()) {
551 return &decodedIRData;
552 } else {
553 return nullptr;
554 }
555}
556
557/**
558 * The main decode function, attempts to decode the recently receive IR signal.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected