added some support functions

This commit is contained in:
iceman1001 committed 2024-03-26 15:13:23 +01:00
1 parent 64a5b048e5
commit d5e33fb209
2 files changed
+29

No files matched your search

+4
View File
@@ -133,6 +133,8 @@ int binstr_2_binarray(uint8_t *target, char *source, int length);
void bytes_2_binstr(char *target, const uint8_t *source, size_t sourcelen);
void binstr_2_bytes(uint8_t *target, size_t *targetlen, const char *src);
void hex_xor(uint8_t *d, uint8_t *x, int n);
uint8_t GetParity(const uint8_t *bits, uint8_t type, int length);
void wiegand_add_parity(uint8_t *target, uint8_t *source, uint8_t length);
void wiegand_add_parity_swapped(uint8_t *target, uint8_t *source, uint8_t length);
@@ -179,4 +181,6 @@ struct smartbuf {
size_t idx;
} typedef smartbuf;
void sb_append_char(smartbuf *sb, unsigned char c);
uint8_t get_highest_frequency(const uint8_t *d, uint8_t n);
#endif