add bitswap option for lf em 4x05write

default read mode of this chip outputs in reverse order...  so offer the
option to program in reverse order
This commit is contained in:
marshmellow42 2017-03-14 14:42:01 -04:00
parent 8b6abef506
commit 713045f819
3 changed files with 30 additions and 14 deletions

View file

@ -48,6 +48,7 @@ uint64_t bytes_to_num(uint8_t* src, size_t len);
void num_to_bytebits(uint64_t n, size_t len, uint8_t *dest);
void num_to_bytebitsLSBF(uint64_t n, size_t len, uint8_t *dest);
char * printBits(size_t const size, void const * const ptr);
uint32_t SwapBits(uint32_t value, int nrbits);
uint8_t *SwapEndian64(const uint8_t *src, const size_t len, const uint8_t blockSize);
void SwapEndian64ex(const uint8_t *src, const size_t len, const uint8_t blockSize, uint8_t *dest);