* Control and data variables of the state machine for TinyIRReceiver */
| 201 | * Control and data variables of the state machine for TinyIRReceiver |
| 202 | */ |
| 203 | struct 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 |
nothing calls this directly
no outgoing calls
no test coverage detected