37 #define APP_DB_HDL_NONE NULL char * AppDbGetDevName(uint8_t *pLen)
Get the device name.
void AppDbValidateRecord(appDbHdl_t hdl, uint8_t keyMask)
Validate a new device database record. This function is called when pairing is successful and the dev...
uint8_t dmConnId_t
Connection identifier.
void AppDbSetDiscStatus(appDbHdl_t hdl, uint8_t status)
Set the discovery status.
appDbHdl_t AppDbNewRecord(uint8_t addrType, uint8_t *pAddr)
Create a new device database record.
void * appDbHdl_t
Device database record handle type.
bool_t AppDbGetPeerRpao(appDbHdl_t hdl)
Get resolvable private address only attribute present flag for a peer device.
void AppDbSetDevName(uint8_t len, char *pStr)
Set the device name.
appDbHdl_t AppDbFindByLtkReq(uint16_t encDiversifier, uint8_t *pRandNum)
Find a device database record from data in an LTK request.
void AppDbDeleteAllRecords(void)
Delete all database records.
void AppDbSetCccTblValue(appDbHdl_t hdl, uint16_t idx, uint16_t value)
Set a value in the client characteristic configuration table.
uint8_t bool_t
Boolean data type.
void AppDbSetPeerAddedToRl(appDbHdl_t hdl, bool_t peerAddedToRl)
Set the peer device added to resolving list flag to a given value.
bool_t AppDbGetPeerAddedToRl(appDbHdl_t hdl)
Get the peer device added to resolving list flag value.
uint8_t AppDbGetDiscStatus(appDbHdl_t hdl)
Get the discovery status.
appDbHdl_t AppDbGetHdl(dmConnId_t connId)
Get the device database record handle associated with an open connection.
void AppDbSetKey(appDbHdl_t hdl, dmSecKeyIndEvt_t *pKey)
Set a key in a device database record.
Data type for DM_SEC_KEY_IND.
bool_t AppDbRecordInUse(appDbHdl_t hdl)
Check if a database record is in use.
uint32_t AppDbGetPeerSignCounter(appDbHdl_t hdl)
Get sign counter for a peer device.
uint16_t * AppDbGetHdlList(appDbHdl_t hdl)
Get the cached handle list.
appDbHdl_t AppDbGetNextRecord(appDbHdl_t hdl)
Get next device database record for a given database record. For the first database record...
dmSecKey_t * AppDbGetKey(appDbHdl_t hdl, uint8_t type, uint8_t *pSecLevel)
Get a key from a device database record.
void AppDbCheckValidRecord(appDbHdl_t hdl)
Check if a record has been validated. If it has not, delete it. This function is typically called whe...
unsigned long uint32_t
Unsigned 32-bit value.
void AppDbSetPeerAddrRes(appDbHdl_t hdl, uint8_t addrRes)
Set address resolution attribute value for a peer device.
void AppDbInit(void)
Initialize the device database.
bool_t AppDbCheckBonded(void)
Check if there is a stored bond with any device.
Device Manager subsystem API.
unsigned short uint16_t
Unsigned 16-bit value.
bool_t AppDbGetPeerAddrRes(appDbHdl_t hdl)
Get address resolution attribute value read from a peer device.
void AppDbSetHdlList(appDbHdl_t hdl, uint16_t *pHdlList)
Set the cached handle list.
uint16_t * AppDbGetCccTbl(appDbHdl_t hdl)
Get the client characteristic configuration descriptor table.
void AppDbSetPeerRpao(appDbHdl_t hdl, bool_t peerRpao)
Set resolvable private address only attribute present flag for a peer device.
void AppDbDeleteRecord(appDbHdl_t hdl)
Delete a new device database record.
Software foundation OS API.
void AppDbSetPeerSignCounter(appDbHdl_t hdl, uint32_t signCounter)
Set sign counter for a peer device.
unsigned char uint8_t
Unsigned 8-bit value.
appDbHdl_t AppDbFindByAddr(uint8_t addrType, uint8_t *pAddr)
Find a device database record by peer address.