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

Class TinyIRReceiverCallbackDataStruct

src/TinyIR.h:235–251  ·  view source on GitHub ↗

* Is filled before calling the user callback to transfer received data to main loop for further processing. */

Source from the content-addressed store, hash-verified

233 * Is filled before calling the user callback to transfer received data to main loop for further processing.
234 */
235struct TinyIRReceiverCallbackDataStruct {
236#if (TINY_RECEIVER_ADDRESS_BITS > 0)
237# if (TINY_RECEIVER_ADDRESS_BITS == 16) && !TINY_RECEIVER_ADDRESS_HAS_8_BIT_PARITY
238 uint16_t Address;
239# else
240 uint8_t Address;
241# endif
242#endif
243
244# if (TINY_RECEIVER_COMMAND_BITS == 16) && !TINY_RECEIVER_COMMAND_HAS_8_BIT_PARITY
245 uint16_t Command;
246#else
247 uint8_t Command;
248#endif
249 uint8_t Flags; // Bit coded flags. Can contain one of the bits: IRDATA_FLAGS_IS_REPEAT and IRDATA_FLAGS_PARITY_FAILED
250 bool justWritten; ///< Is set true if new data is available. Used by the main loop / TinyIRReceiverDecode(), to avoid multiple evaluations of the same IR frame.
251};
252extern volatile TinyIRReceiverCallbackDataStruct TinyIRReceiverData;
253
254bool isIRReceiverAttachedForTinyReceiver();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected