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

Method sendFAST

src/ir_FAST.hpp:75–94  ·  view source on GitHub ↗

* The FAST protocol repeats by skipping the header mark and space -> this leads to a poor repeat detection for JVC protocol. */

Source from the content-addressed store, hash-verified

73 * The FAST protocol repeats by skipping the header mark and space -> this leads to a poor repeat detection for JVC protocol.
74 */
75void 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
96bool IRrecv::decodeFAST() {
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected