Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
ptu_distant_list_handler.h
Go to the documentation of this file.
1 /* Copyright (c) Nordic Semiconductor. All Rights Reserved.
2  *
3  * The information contained herein is property of Nordic Semiconductor ASA.
4  * Terms and conditions of usage are described in detail in NORDIC
5  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6  *
7  * Licensees are granted free, non-transferable use of the information. NO
8  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9  * the file.
10  *
11  */
12 
16 #ifndef PTU_DISTANT_LIST_HANDLER_H__
17 #define PTU_DISTANT_LIST_HANDLER_H__
18 
19 #include <stdbool.h>
20 #include <stdint.h>
21 
22 #include "ble.h"
23 #include "ble_gap.h"
24 
26 typedef struct {
27  uint32_t ignore_latency_ms;
29 
36 
43 
52 void ptu_dlh_on_wpt_adv_report(ble_gap_addr_t const * p_addr, uint8_t adv_flags);
53 
62 bool ptu_dlh_device_is_in_distant_list(ble_gap_addr_t const * p_addr);
63 
64 
71 uint32_t ptu_dlh_init(ptu_dlh_init_t const * p_init);
72 
73 
74 #endif //PTU_DISTANT_LIST_HANDLER_H__
bool ptu_dlh_device_is_in_distant_list(ble_gap_addr_t const *p_addr)
Check if device with provided address is in the distant list.
void ptu_dlh_notify_beacon_active(void)
Notify distant list handler that the beacon is now active.
void ptu_dlh_on_wpt_adv_report(ble_gap_addr_t const *p_addr, uint8_t adv_flags)
Distance list handler WPT Advertisement report handler.
uint32_t ptu_dlh_init(ptu_dlh_init_t const *p_init)
Check if device with provided address is in the distant list.
void ptu_dlh_notify_beacon_disabled(void)
Notify distant list handler that the beacon is now disabled.