diff --git a/libnfc/bitutils.c b/libnfc/bitutils.c index 197a8a2..eaee845 100644 --- a/libnfc/bitutils.c +++ b/libnfc/bitutils.c @@ -29,6 +29,7 @@ #include #include "bitutils.h" +#include "nfc/nfc.h" static const byte_t OddParity[256] = { 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, diff --git a/libnfc/bitutils.h b/libnfc/bitutils.h index 1a9eea1..a970af9 100644 --- a/libnfc/bitutils.h +++ b/libnfc/bitutils.h @@ -49,9 +49,11 @@ #include byte_t oddparity(const byte_t bt); +void oddparity_bytes(const byte_t* pbtData, const size_t szLen, byte_t* pbtPar); void oddparity_byte_ts(const byte_t* pbtData, const size_t szLen, byte_t* pbtPar); NFC_EXPORT byte_t mirror(byte_t bt); +NFC_EXPORT void mirror_bytes(byte_t *pbts, size_t szLen); NFC_EXPORT uint32_t mirror32(uint32_t ui32Bits); NFC_EXPORT uint64_t mirror64(uint64_t ui64Bits); NFC_EXPORT void mirror_byte_ts(byte_t *pbts, size_t szLen);