Smart Remote 3 nRF52 v1.2
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
BLE communication flash address storage utility

This module deals with storing and maintaining local address information in flash. More...

Functions

ret_code_t m_coms_ble_addr_init (void)
 Function for initializing the module. More...
 
ret_code_t m_coms_ble_addr_local_addr_get (pm_peer_id_t peer_id, ble_gap_addr_t *p_ble_addr)
 Function for getting the BLE address from the application context flash area of the Device Manager. More...
 
ret_code_t m_coms_ble_addr_local_addr_new (ble_gap_addr_t *addr)
 Function for getting a new BLE address used for new bonds. More...
 
ret_code_t m_coms_ble_addr_local_addr_set (pm_peer_id_t peer_id, ble_gap_addr_t *p_ble_addr)
 Function for writing the currently used BLE address to the application context flash area of the Peer Manager. More...
 
ret_code_t m_coms_ble_addr_peer_ids_get (pm_peer_id_t *p_peer_ids, unsigned int *p_peers_num)
 Function for getting the device IDs and the number of bonded hosts. More...
 

Detailed Description

This module deals with storing and maintaining local address information in flash.

Function Documentation

ret_code_t m_coms_ble_addr_init ( void  )

Function for initializing the module.

Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_coms_ble_addr_local_addr_get ( pm_peer_id_t  peer_id,
ble_gap_addr_t *  p_ble_addr 
)

Function for getting the BLE address from the application context flash area of the Device Manager.

Parameters
[in]peer_idPeer Manager device ID.
[out]p_ble_addrBLE GAP address.
Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_coms_ble_addr_local_addr_new ( ble_gap_addr_t *  addr)

Function for getting a new BLE address used for new bonds.

Parameters
[out]addrPointer to the new address structure.
Returns
Return values
NRF_SUCCESS
NRF_ERROR_INVALID_STATE
ret_code_t m_coms_ble_addr_local_addr_set ( pm_peer_id_t  peer_id,
ble_gap_addr_t *  p_ble_addr 
)

Function for writing the currently used BLE address to the application context flash area of the Peer Manager.

Parameters
[in]peer_idPeer Manager device ID.
[in]p_ble_addrBLE address used with the current bond.
Returns
NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_coms_ble_addr_peer_ids_get ( pm_peer_id_t *  p_peer_ids,
unsigned int *  p_peers_num 
)

Function for getting the device IDs and the number of bonded hosts.

Parameters
[out]p_peer_idsPointer to an array of peer IDs.
[out]p_peers_numNumber of peer IDs found.
Returns
NRF_SUCCESS on success, otherwise an error code.