IRremoteESP8266
|
Functions | |
uint8_t | getSectionChecksum (const uint32_t data, const uint16_t nbits) |
Get the current checksum value from an XMP data section. More... | |
uint8_t | calcSectionChecksum (const uint32_t data, const uint16_t nbits) |
Calculate the correct checksum value for an XMP data section. More... | |
uint64_t | updateChecksums (const uint64_t data, const uint16_t nbits) |
Recalculate a XMP message code ensuring it has the checksums valid. More... | |
uint16_t | calcRepeatOffset (const uint16_t nbits) |
Calculate the bit offset the repeat nibble in an XMP code. More... | |
bool | isRepeat (const uint64_t data, const uint16_t nbits) |
Test if an XMP message code is a repeat or not. More... | |
uint64_t | adjustRepeat (const uint64_t data, const uint16_t nbits, const uint8_t repeat_code) |
Adjust an XMP message code to make it a valid repeat or non-repeat code. More... | |
uint64_t IRXmpUtils::adjustRepeat | ( | const uint64_t | data, |
const uint16_t | nbits, | ||
const uint8_t | repeat_code | ||
) |
Adjust an XMP message code to make it a valid repeat or non-repeat code.
[in] | data | The value of the XMP message code. |
[in] | nbits | The number of data bits in the entire message code. |
[in] | repeat_code | The value of the XMP repeat nibble to use. A value of 8 is the normal value for a repeat. 9 has also been seen. A value of 0 will convert the code to a non-repeat code. |
uint16_t IRXmpUtils::calcRepeatOffset | ( | const uint16_t | nbits | ) |
Calculate the bit offset the repeat nibble in an XMP code.
[in] | nbits | The number of data bits in the entire message code. |
uint8_t IRXmpUtils::calcSectionChecksum | ( | const uint32_t | data, |
const uint16_t | nbits | ||
) |
Calculate the correct checksum value for an XMP data section.
[in] | data | The value of the data section. |
[in] | nbits | The number of data bits in the section. |
uint8_t IRXmpUtils::getSectionChecksum | ( | const uint32_t | data, |
const uint16_t | nbits | ||
) |
Get the current checksum value from an XMP data section.
[in] | data | The value of the data section. |
[in] | nbits | The number of data bits in the section. |
bool IRXmpUtils::isRepeat | ( | const uint64_t | data, |
const uint16_t | nbits | ||
) |
Test if an XMP message code is a repeat or not.
[in] | data | The value of the XMP message code. |
[in] | nbits | The number of data bits in the entire message code. |
uint64_t IRXmpUtils::updateChecksums | ( | const uint64_t | data, |
const uint16_t | nbits | ||
) |
Recalculate a XMP message code ensuring it has the checksums valid.
[in] | data | The value of the XMP message code. |
[in] | nbits | The number of data bits in the entire message code. |