MCPcopy Create free account
hub / github.com/IRMP-org/IRMP / TinyIRReceiverCallbackDataStruct

Class TinyIRReceiverCallbackDataStruct

src/TinyIR.h:231–247  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected