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

Class TinyIRReceiverStruct

src/TinyIR.h:203–221  ·  view source on GitHub ↗

* Control and data variables of the state machine for TinyIRReceiver */

Source from the content-addressed store, hash-verified

201 * Control and data variables of the state machine for TinyIRReceiver
202 */
203struct TinyIRReceiverStruct {
204 /*
205 * State machine
206 */
207 uint32_t LastChangeMicros; ///< Microseconds of last Pin Change Interrupt.
208 uint8_t IRReceiverState; ///< The state of the state machine.
209 uint8_t IRRawDataBitCounter; ///< How many bits are currently contained in raw data.
210 /*
211 * Data
212 */
213#if (TINY_RECEIVER_BITS > 16)
214 uint32_t IRRawDataMask; ///< The corresponding bit mask for IRRawDataBitCounter.
215 LongUnion IRRawData; ///< The current raw data. LongUnion helps with decoding of address and command.
216#else
217 uint16_t IRRawDataMask; ///< The corresponding bit mask for IRRawDataBitCounter.
218 WordUnion IRRawData; ///< The current raw data. WordUnion helps with decoding of command.
219#endif
220 uint8_t Flags; ///< One of IRDATA_FLAGS_EMPTY, IRDATA_FLAGS_IS_REPEAT, and IRDATA_FLAGS_PARITY_FAILED
221};
222
223/*
224 * Definitions for member TinyIRReceiverCallbackDataStruct.Flags

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected