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

Method setNextToggleBitValueForRC5AndRC6

src/ir_RC5_RC6.hpp:158–160  ·  view source on GitHub ↗

* Just in case to permanently send it as 0 because start value is 1, * or to reset toggle bit after a transmission with automatic toggling. * Sets sLastSendToggleValue to inverse in order to get aRC5ToggleBitValue as next sent toggle value because it is inverted before each sending! * @param aRC5ToggleBitValue 0 or 1, only LSB is taken */

Source from the content-addressed store, hash-verified

156 * @param aRC5ToggleBitValue 0 or 1, only LSB is taken
157 */
158void IRsend::setNextToggleBitValueForRC5AndRC6(uint8_t aRC5ToggleBitValue) {
159 sLastSendToggleValue = (aRC5ToggleBitValue & 0x01) ^ 0x01;
160}
161
162/**
163 * Send function for the Marantz version of RC5(X) with a pause of 4 * RC5_UNIT after address / first 8 bits

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected