Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
#include <stdbool.h>
#include <stdint.h>
#include "ble_wpts_c.h"
#include "ptu_config.h"
#include "app_timer.h"
Go to the source code of this file.
Data Structures | |
struct | ptu_reg_item_t |
Registry item. More... | |
struct | ptu_reg_t |
Registry. More... | |
Functions | |
General API functions | |
void | ptu_reg_init (void) |
Initialize registry database. | |
uint8_t | ptu_reg_registered_devices_get (ptu_reg_item_t **registered_devices) |
Get handles for all registered devices. More... | |
uint8_t | ptu_reg_n_entries_get (void) |
Get the number of devices currently in registry. This will include all connected devices, as well as all devices which is currently being registered. More... | |
uint32_t | ptu_reg_item_get_from_index (uint8_t index, ptu_reg_item_t **item_p) |
Get registry item from index in database. Index must be < PTU_MAX_CONNECTIONS. More... | |
ptu_reg_item_t * | ptu_reg_item_get_from_conn_handle (uint16_t conn_handle) |
Get registry item from connection handle. More... | |
ptu_reg_item_t * | ptu_reg_item_get_from_address (ble_gap_addr_t *address) |
Get registry item from GAP address. More... | |
ptu_reg_item_t * | ptu_reg_item_oldest_get (ptu_reg_item_state_t state) |
Get oldest registry item having a specific state. More... | |
ptu_reg_item_t * | ptu_reg_item_add (ble_gap_evt_adv_report_t *p_adv_report, ptu_reg_item_state_t init_state) |
Initiate registration of new device. More... | |
uint32_t | ptu_reg_set_device_waiting_to_connect (ptu_reg_item_t *reg_item_p, uint8_t *address) |
Set the state of registry item to "ready to connect" state. Associates the address with the registry item. Should only be called with non-zero address values. More... | |
void | ptu_reg_item_delete (ptu_reg_item_t *item) |
Delete item that has previoulsy been added to registry. More... | |
bool | ptu_reg_all_charged (void) |
Function returning true if all items in registry are charged or there are not items in registry. More... | |