PebbleOS
Loading...
Searching...
No Matches
Functions
shared_prf_storage.h File Reference
#include <pbl/bluetooth/types.h>
#include <pbl/bluetooth/sm_types.h>

Functions

bool shared_prf_storage_get_local_device_name (char *local_device_name_out, size_t max_size)
 Get the custom local device name.
 
void shared_prf_storage_set_local_device_name (const char *local_device_name)
 Store the custom local device name.
 
bool shared_prf_storage_get_root_key (enum pbl_bt_sm_root_key_type key_type, struct pbl_bt_sm_key *key_out)
 Get a BLE root key.
 
void shared_prf_storage_set_root_keys (struct pbl_bt_sm_key *keys_in)
 Store the BLE root keys.
 
bool shared_prf_storage_get_ble_pairing_data (struct pbl_bt_sm_pairing_info *pairing_info_out, char *name_out, bool *requires_address_pinning_out, uint8_t *flags)
 Get the BLE pairing.
 
void shared_prf_storage_store_ble_pairing_data (const struct pbl_bt_sm_pairing_info *pairing_info, const char *name, bool requires_address_pinning, uint8_t flags)
 Store the BLE pairing, replacing the previous one.
 
void shared_prf_storage_erase_ble_pairing_data (void)
 Erase the BLE pairing and its device name.
 
bool shared_prf_storage_get_ble_pinned_address (struct pbl_bt_addr *address_out)
 Get the pinned BLE address.
 
void shared_prf_storage_set_ble_pinned_address (const struct pbl_bt_addr *address)
 Store the pinned BLE address.
 
bool shared_prf_storage_get_local_identity_address (struct pbl_bt_addr *address_out)
 Get the local identity address.
 
void shared_prf_storage_set_local_identity_address (const struct pbl_bt_addr *address)
 Store the local identity address.
 
bool shared_prf_storage_get_bt_classic_pairing_data (struct pbl_bt_addr *addr_out, char *device_name_out, struct pbl_bt_sm_key *link_key_out, uint8_t *platform_bits)
 Get a BT Classic pairing.
 
void shared_prf_storage_store_bt_classic_pairing_data (struct pbl_bt_addr *addr, const char *device_name, struct pbl_bt_sm_key *link_key, uint8_t platform_bits)
 Store a BT Classic pairing.
 
void shared_prf_storage_store_platform_bits (uint8_t platform_bits)
 Store the BT Classic remote platform bits.
 
void shared_prf_storage_erase_bt_classic_pairing_data (void)
 Erase the BT Classic pairing.
 
bool shared_prf_storage_get_getting_started_complete (void)
 Check whether onboarding (getting started) has been completed.
 
void shared_prf_storage_set_getting_started_complete (bool set)
 Set whether onboarding (getting started) has been completed.
 
void shared_prf_storage_wipe_all (void)
 Erase all shared data, for a factory reset.
 
void shared_prf_storage_init (void)
 Initialize shared PRF storage.