Typedefs | |
typedef void(* | bbBleResListAddrResNeeded_t) (uint64_t rpa, bool_t peer, uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Address resolution needed callback signature. More... | |
Enumerations |
Functions | |
void | BbBleResListSetAddrResNeededCback (bbBleResListAddrResNeeded_t cback) |
Set address resolution needed callback. More... | |
uint8_t | BbBleResListGetSize (void) |
Get resolving list size. More... | |
void | BbBleResListClear (void) |
Clear resolving list. More... | |
bool_t | BbBleResListAdd (uint8_t peerAddrType, uint64_t peerIdentityAddr, const uint8_t *pPeerIrk, const uint8_t *pLocalIrk) |
Add device to resolving list. More... | |
bool_t | BbBleResListRemove (uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Remove device from resolving list. More... | |
bool_t | BbBleResListSetPrivacyMode (uint8_t peerAddrType, uint64_t peerIdentityAddr, uint8_t privMode) |
Set privacy mode of a device. More... | |
bool_t | BbBleResListGetPrivacyMode (uint8_t peerAddrType, uint64_t peerIdentityAddr, uint8_t *pPrivMode) |
Get privacy mode of a device. More... | |
bool_t | BbBleResListReadPeer (uint8_t peerAddrType, uint64_t peerIdentityAddr, uint64_t *pRpa) |
Read peer resolvable address. More... | |
bool_t | BbBleResListReadLocal (uint8_t peerAddrType, uint64_t peerIdentityAddr, uint64_t *pRpa) |
Read local resolvable address. More... | |
bool_t | BbBleResListUpdateLocal (uint8_t peerAddrType, uint64_t peerIdentityAddr, uint64_t *pRpa) |
Update local resolvable address. More... | |
bool_t | BbBleResListGeneratePeer (uint8_t peerAddrType, uint64_t peerIdentityAddr, uint64_t *pRpa) |
Generate peer resolvable address. More... | |
bool_t | BbBleResListCheckResolvePeer (uint64_t rpa, uint8_t *pPeerAddrType, uint64_t *pPeerIdentityAddr) |
Check whether a peer address has been resolved. More... | |
bool_t | BbBleResListCheckResolveLocal (uint64_t rpa, uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Check whether a local address has been resolved. More... | |
bool_t | BbBleResListIsLocalResolved (uint64_t rpa, uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Check whether a local address has been resolved. More... | |
bool_t | BbBleResListResolvePeer (uint64_t rpa, uint8_t *pPeerAddrType, uint64_t *pPeerIdentityAddr) |
Resolve peer resolvable address. More... | |
bool_t | BbBleResListResolveLocal (uint64_t rpa, uint8_t *pPeerAddrType, uint64_t *pPeerIdentityAddr) |
Resolve local resolvable address. More... | |
uint8_t | BbBleResListPeerStatus (bool_t peerAddrRand, uint64_t peerIdentityAddr) |
Get status of peer address in resolving list. More... | |
uint8_t | BbBleResListLocalStatus (bool_t peerAddrRand, uint64_t peerIdentityAddr) |
Get status of local address in resolving list. More... | |
void | BbBleResListHandleTimeout (void) |
Handle timeout of local resolvable addresses. More... | |
bool_t | BbBleResListIsRpaUpd (uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Check if either local RPA or peer RPA is updated. More... | |
bool_t | bbBleIsPeerInResList (uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Check if peer identity is in the resolving list. More... | |
typedef void(* bbBleResListAddrResNeeded_t) (uint64_t rpa, bool_t peer, uint8_t peerAddrType, uint64_t peerIdentityAddr) |
Address resolution needed callback signature.
Definition at line 62 of file bb_ble_api_reslist.h.
anonymous enum |
Resolvable address status.
Definition at line 42 of file bb_ble_api_reslist.h.
anonymous enum |
Privacy modes.
Enumerator | |
---|---|
BB_BLE_RESLIST_PRIV_MODE_NETWORK |
Network privacy mode. |
BB_BLE_RESLIST_PRIV_MODE_DEVICE |
Device privacy mode. |
Definition at line 51 of file bb_ble_api_reslist.h.
bool_t bbBleIsPeerInResList | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr | ||
) |
Check if peer identity is in the resolving list.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
bool_t BbBleResListAdd | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
const uint8_t * | pPeerIrk, | ||
const uint8_t * | pLocalIrk | ||
) |
Add device to resolving list.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
pPeerIrk | Peer IRK. |
pLocalIrk | Local IRK. |
Add device to resolving list.
bool_t BbBleResListCheckResolveLocal | ( | uint64_t | rpa, |
uint8_t | peerAddrType, | ||
uint64_t | peerIdentityAddr | ||
) |
Check whether a local address has been resolved.
rpa | Local resolvable private address |
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
Check whether a local address has been resolved. Because of timing constraints, addresses should not be resolved in this function; instead, the resolution callback should be invoked to schedule the operation later.
bool_t BbBleResListCheckResolvePeer | ( | uint64_t | rpa, |
uint8_t * | pPeerAddrType, | ||
uint64_t * | pPeerIdentityAddr | ||
) |
Check whether a peer address has been resolved.
rpa | Peer resolvable private address |
pPeerAddrType | Storage for peer identity address type. |
pPeerIdentityAddr | Storage for peer identity address. |
Check whether a peer address has been resolved. Because of timing constraints, addresses should not be resolved in this function; instead, the resolution callback should be invoked to schedule the operation later.
void BbBleResListClear | ( | void | ) |
Clear resolving list.
Clear all resolving list entries stored in the BB.
bool_t BbBleResListGeneratePeer | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
uint64_t * | pRpa | ||
) |
Generate peer resolvable address.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
pRpa | Storage for peer resolvable private address. |
Generate a peer resolvable address for a peer.
bool_t BbBleResListGetPrivacyMode | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
uint8_t * | pPrivMode | ||
) |
Get privacy mode of a device.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
pPrivMode | Storage for privacy mode. |
Get privacy mode of a device.
uint8_t BbBleResListGetSize | ( | void | ) |
Get resolving list size.
Get the resolving list capacity supported by the BB.
void BbBleResListHandleTimeout | ( | void | ) |
Handle timeout of local resolvable addresses.
A new local resolvable address will be generated for each entry in the resolving list.
bool_t BbBleResListIsLocalResolved | ( | uint64_t | rpa, |
uint8_t | peerAddrType, | ||
uint64_t | peerIdentityAddr | ||
) |
Check whether a local address has been resolved.
rpa | Local resolvable private address |
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
bool_t BbBleResListIsRpaUpd | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr | ||
) |
Check if either local RPA or peer RPA is updated.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
uint8_t BbBleResListLocalStatus | ( | bool_t | peerAddrRand, |
uint64_t | peerIdentityAddr | ||
) |
Get status of local address in resolving list.
peerAddrRand | TRUE if peer identity address is random. |
peerIdentityAddr | Peer identity address. |
Get the peer resolvable private address status
uint8_t BbBleResListPeerStatus | ( | bool_t | peerAddrRand, |
uint64_t | peerIdentityAddr | ||
) |
Get status of peer address in resolving list.
peerAddrRand | TRUE if peer identity address is random. |
peerIdentityAddr | Peer identity address. |
Get the peer resolvable private address status
bool_t BbBleResListReadLocal | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
uint64_t * | pRpa | ||
) |
Read local resolvable address.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
pRpa | Storage for peer resolvable private address |
Get the local resolvable private address that is currently being used for the peer identity address.
bool_t BbBleResListReadPeer | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
uint64_t * | pRpa | ||
) |
Read peer resolvable address.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
pRpa | Storage for peer resolvable private address |
Get the peer resolvable private address that is currently being used for the peer identity address.
bool_t BbBleResListRemove | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr | ||
) |
Remove device from resolving list.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
Remove device from resolving list.
bool_t BbBleResListResolveLocal | ( | uint64_t | rpa, |
uint8_t * | pPeerAddrType, | ||
uint64_t * | pPeerIdentityAddr | ||
) |
Resolve local resolvable address.
rpa | Local resolvable private address |
pPeerAddrType | Storage for peer identity address type. |
pPeerIdentityAddr | Storage for peer identity address. |
Resolve a local resolvable address.
bool_t BbBleResListResolvePeer | ( | uint64_t | rpa, |
uint8_t * | pPeerAddrType, | ||
uint64_t * | pPeerIdentityAddr | ||
) |
Resolve peer resolvable address.
rpa | Peer resolvable private address |
pPeerAddrType | Storage for peer identity address type. |
pPeerIdentityAddr | Storage for peer identity address. |
Resolve a peer resolvable address.
void BbBleResListSetAddrResNeededCback | ( | bbBleResListAddrResNeeded_t | cback | ) |
Set address resolution needed callback.
cback | Callback. |
bool_t BbBleResListSetPrivacyMode | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
uint8_t | privMode | ||
) |
Set privacy mode of a device.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
privMode | Privacy mode. |
Set privacy mode of a device.
bool_t BbBleResListUpdateLocal | ( | uint8_t | peerAddrType, |
uint64_t | peerIdentityAddr, | ||
uint64_t * | pRpa | ||
) |
Update local resolvable address.
peerAddrType | Peer identity address type. |
peerIdentityAddr | Peer identity address. |
pRpa | Storage for local resolvable private address |
Update the local resolvable private address that is currently being used for the peer identity address.