Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
#include <stdbool.h>
#include <stdint.h>
#include "ble.h"
#include "ble_gap.h"
Go to the source code of this file.
Data Structures | |
struct | ptu_dlh_init_t |
Functions | |
void | ptu_dlh_notify_beacon_active (void) |
Notify distant list handler that the beacon is now active. More... | |
void | ptu_dlh_notify_beacon_disabled (void) |
Notify distant list handler that the beacon is now disabled. More... | |
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. More... | |
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. More... | |
uint32_t | ptu_dlh_init (ptu_dlh_init_t const *p_init) |
Check if device with provided address is in the distant list. More... | |
void ptu_dlh_notify_beacon_active | ( | void | ) |
Notify distant list handler that the beacon is now active.
When this function is called, the distant list handler will not add new devices discovered to the distant list.
Definition at line 104 of file ptu_distant_list_handler.c.
void ptu_dlh_notify_beacon_disabled | ( | void | ) |
Notify distant list handler that the beacon is now disabled.
When this function is called, the distant list handler will not add new devices discovered to the distant list.
Definition at line 112 of file ptu_distant_list_handler.c.
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.
Will check address of advertisement and depending on the current state of the beacon, it will either add it to the distant list, or not.
p_addr | Address of device advertising |
adv_flags | WPT Advertisement Flags found in advertisement |
Definition at line 117 of file ptu_distant_list_handler.c.
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.
Will check address of advertisement and depending on the current state of the beacon, it will either add it to the distant list, or not.
p_addr | Address to check |
Definition at line 137 of file ptu_distant_list_handler.c.
uint32_t ptu_dlh_init | ( | ptu_dlh_init_t const * | p_init | ) |
Check if device with provided address is in the distant list.
p_init | Initializing parameters |
Definition at line 144 of file ptu_distant_list_handler.c.