* Is filled before calling the user callback to transfer received data to main loop for further processing. */
| 229 | * Is filled before calling the user callback to transfer received data to main loop for further processing. |
| 230 | */ |
| 231 | struct 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 | }; |
| 248 | extern volatile TinyIRReceiverCallbackDataStruct TinyIRReceiverData; |
| 249 | |
| 250 | bool isIRReceiverAttachedForTinyReceiver(); |
nothing calls this directly
no outgoing calls
no test coverage detected