monitor: Export printing functions for LL features and channel map

This commit is contained in:
Marcel Holtmann 2013-08-25 19:41:28 -07:00
parent 6b6d78d273
commit 9570f9e17f
2 changed files with 12 additions and 0 deletions

View File

@ -1585,6 +1585,11 @@ static void print_features(uint8_t page, const uint8_t *features_array,
"(0x%16.16" PRIx64 ")", mask);
}
void packet_print_features_ll(const uint8_t *features)
{
print_features(0, features, 0x01);
}
static const struct {
uint8_t bit;
const char *str;
@ -1670,6 +1675,11 @@ static void print_le_channel_map(const uint8_t *map)
print_field("Channel map: 0x%s", str);
}
void packet_print_channel_map_ll(const uint8_t *map)
{
print_le_channel_map(map);
}
static void print_random_number(const uint8_t *number)
{
print_hex_field("Random number", number, 8);

View File

@ -44,6 +44,8 @@ void packet_print_version(const char *label, uint8_t version, uint16_t revision)
void packet_print_company(const char *label, uint16_t company);
void packet_print_addr(const char *label, const void *data, bool random);
void packet_print_ad(const void *data, uint8_t size);
void packet_print_features_ll(const uint8_t *features);
void packet_print_channel_map_ll(const uint8_t *map);
void packet_control(struct timeval *tv, uint16_t index, uint16_t opcode,
const void *data, uint16_t size);