Home
last modified time | relevance | path

Searched refs:afh_map (Results 1 – 3 of 3) sorted by relevance

/libbtbb/lib/src/
H A Dbluetooth_piconet.c126 void btbb_piconet_set_afh_map(btbb_piconet *pn, uint8_t *afh_map) { in btbb_piconet_set_afh_map() argument
131 pn->afh_map[i] = afh_map[i]; in btbb_piconet_set_afh_map()
132 pn->used_channels += count_bits(pn->afh_map[i]); in btbb_piconet_set_afh_map()
139 return pn->afh_map; in btbb_piconet_get_afh_map()
144 if(!(pn->afh_map[channel/8] & 0x1 << (channel % 8))) { in btbb_piconet_set_channel_seen()
145 pn->afh_map[channel/8] |= 0x1 << (channel % 8); in btbb_piconet_set_channel_seen()
154 if((pn->afh_map[channel/8] & 0x1 << (channel % 8))) { in btbb_piconet_clear_channel_seen()
155 pn->afh_map[channel/8] &= ~(0x1 << (channel % 8)); in btbb_piconet_clear_channel_seen()
165 return ( pn->afh_map[channel/8] & (1 << (channel % 8)) ) != 0; in btbb_piconet_get_channel_seen()
793 uint8_t *afh_map; in btbb_print_afh_map() local
[all …]
H A Dbluetooth_piconet.h42 uint8_t afh_map[10]; member
H A Dbtbb.h185 void btbb_piconet_set_afh_map(btbb_piconet *pn, uint8_t *afh_map);