Bluetooth: controller: Add device match ID radio API
In order to obtain the ID (index) of the device matched in a hardware filter, a new API call has been added along with the required implementation for nRF5x devices. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
1a07179a3c
commit
4a016db283
2 changed files with 6 additions and 0 deletions
|
@ -554,6 +554,11 @@ u32_t radio_filter_has_match(void)
|
|||
return (NRF_RADIO->EVENTS_DEVMATCH != 0);
|
||||
}
|
||||
|
||||
u32_t radio_filter_match_get(void)
|
||||
{
|
||||
return NRF_RADIO->DAI;
|
||||
}
|
||||
|
||||
void radio_bc_configure(u32_t n)
|
||||
{
|
||||
NRF_RADIO->BCC = n;
|
||||
|
|
|
@ -56,6 +56,7 @@ void radio_filter_configure(u8_t bitmask_enable, u8_t bitmask_addr_type,
|
|||
void radio_filter_disable(void);
|
||||
void radio_filter_status_reset(void);
|
||||
u32_t radio_filter_has_match(void);
|
||||
u32_t radio_filter_match_get(void);
|
||||
|
||||
void radio_bc_configure(u32_t n);
|
||||
void radio_bc_status_reset(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue