* The FAST protocol repeats by skipping the header mark and space -> this leads to a poor repeat detection for JVC protocol. */
| 73 | * The FAST protocol repeats by skipping the header mark and space -> this leads to a poor repeat detection for JVC protocol. |
| 74 | */ |
| 75 | void IRsend::sendFAST(uint8_t aCommand, int_fast8_t aNumberOfRepeats) { |
| 76 | // Set IR carrier frequency |
| 77 | enableIROut(FAST_KHZ); // 38 kHz |
| 78 | |
| 79 | uint_fast8_t tNumberOfCommands = aNumberOfRepeats + 1; |
| 80 | while (tNumberOfCommands > 0) { |
| 81 | |
| 82 | mark(FAST_HEADER_MARK); |
| 83 | space(FAST_HEADER_SPACE); |
| 84 | |
| 85 | sendPulseDistanceWidthData_P(&FASTProtocolConstants, aCommand | (((uint8_t)(~aCommand)) << 8), FAST_BITS); |
| 86 | |
| 87 | tNumberOfCommands--; |
| 88 | // skip last delay! |
| 89 | if (tNumberOfCommands > 0) { |
| 90 | // send repeated command in a fixed raster |
| 91 | delay(FAST_REPEAT_DISTANCE / MICROS_IN_ONE_MILLI); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | bool IRrecv::decodeFAST() { |
| 97 |
nothing calls this directly
no outgoing calls
no test coverage detected