Implement airspy_adsb send support.

This commit is contained in:
Ian Gulliver
2016-02-17 21:53:34 -08:00
parent 236f058654
commit 1bc8d49d38
5 changed files with 69 additions and 0 deletions

View File

@@ -163,6 +163,14 @@ void hex_from_bin(char *out, const uint8_t *in, size_t bytes) {
}
}
void hex_from_int(char *out, uint64_t in, size_t bytes) {
bytes *= 2;
for (int o = bytes - 1; o >= 0; o--) {
out[o] = hex_char_table[in & 0xf];
in >>= 4;
}
}
void uuid_gen(char *out) {
uuid_t uuid;