Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
Go to the source code of this file.
Functions | |
API implementation. | |
void | ptu_reg_init (void) |
Initialize registry database. | |
uint32_t | ptu_reg_item_get_from_index (uint8_t index, ptu_reg_item_t **item) |
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... | |
void | ptu_reg_item_delete (ptu_reg_item_t *item) |
Delete item that has previoulsy been added to registry. More... | |
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... | |
bool | ptu_reg_all_charged (void) |
Function returning true if all items in registry are charged or there are not items in registry. 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... | |
Static funcitons and variables. | |
static ptu_reg_t | m_registry |
static void | m_reg_item_init (ptu_reg_item_t *item) |
Set all values in a registry item to default values. 'timer_id' will be retained. More... | |
static ptu_reg_item_t * | m_reg_item_unused_get (void) |
Get unused (available) registry item. More... | |
|
static |
Set all values in a registry item to default values. 'timer_id' will be retained.
item | is a pointer to the item to initialize. |
Definition at line 56 of file ptu_registry.c.
|
static |
Get unused (available) registry item.
Definition at line 69 of file ptu_registry.c.
|
static |
Registry database.
Definition at line 51 of file ptu_registry.c.