// Utility functions used in many places, not specific to any piece of code.
//-----------------------------------------------------------------------------
-#include "../include/proxmark3.h"
+#include "proxmark3.h"
#include "util.h"
#include "string.h"
#include "apps.h"
+#include "BigBuf.h"
}
size_t nbytes(size_t nbits) {
- return (nbits/8)+((nbits%8)>0);
+ return (nbits >> 3)+((nbits % 8) > 0);
}
uint32_t SwapBits(uint32_t value, int nrbits) {
return (data[2] << 16) | (data[1] << 8) | data[0];
}
-//added here for parity calulations
-uint8_t oddparity(uint8_t bt)
-{
- uint16_t v = bt;
- v ^= v >> 4;
- v &= 0xF;
- return ((0x9669 >> v) & 1);
-}
-
void LEDsoff()
{
LED_A_OFF();
}
}
-