SmartSnippets DA1459x SDK
Files | Data Structures | Enumerations | Functions
Bond Management Service

Bond management service sample implementation API. More...

Files

file  bms.h
 Bond Management Service implementation API.
 

Data Structures

struct  bms_config_t
 
struct  bms_callbacks_t
 

Enumerations

enum  bms_delete_bond_op_t {
  BMS_DELETE_BOND_REQ_DEV = 0x01, BMS_DELETE_BOND_REQ_DEV_AUTH = 0x02, BMS_DELETE_BOND_ALL_DEV = 0x04, BMS_DELETE_BOND_ALL_DEV_AUTH = 0x08,
  BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV = 0x10, BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV_AUTH = 0x20
}
 
enum  bms_delete_bond_status_t { BMS_DELETE_BOND_STATUS_OK = 0x00, BMS_DELETE_BOND_STATUS_FAILED = 0x01, BMS_DELETE_BOND_STATUS_INSUFFICIENT_AUTH = 0x02, BMS_DELETE_BOND_STATUS_NOT_SUPPORTED = 0x03 }
 

Functions

ble_service_tbms_init (const ble_service_config_t *config, const bms_config_t *bms_config, const bms_callbacks_t *callbacks)
 Register BMS instance. More...
 
void bms_delete_bond_cfm (ble_service_t *service, uint16_t conn_idx, bms_delete_bond_status_t status)
 Delete bond confirmation. More...
 

Detailed Description

Bond management service sample implementation API.

Enumeration Type Documentation

◆ bms_delete_bond_op_t

BMS Delete Bond operations

Enumerator
BMS_DELETE_BOND_REQ_DEV 

Delete bond of requesting device

BMS_DELETE_BOND_REQ_DEV_AUTH 

Delete bond of requesting device with authorization code

BMS_DELETE_BOND_ALL_DEV 

Delete all bonds on server

BMS_DELETE_BOND_ALL_DEV_AUTH 

Delete all bonds on server with authorization code

BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV 

Delete bond of all except the requesting device on the server

BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV_AUTH 

Delete bond of all except the requesting device on the server with authorization code

◆ bms_delete_bond_status_t

BMS Delete Bond status

Enumerator
BMS_DELETE_BOND_STATUS_OK 

Delete Bond status OK

BMS_DELETE_BOND_STATUS_FAILED 

Delete Bond status failed

BMS_DELETE_BOND_STATUS_INSUFFICIENT_AUTH 

Delete Bond status insufficient authentication

BMS_DELETE_BOND_STATUS_NOT_SUPPORTED 

Delete Bond status operation not supported

Function Documentation

◆ bms_delete_bond_cfm()

void bms_delete_bond_cfm ( ble_service_t service,
uint16_t  conn_idx,
bms_delete_bond_status_t  status 
)

Delete bond confirmation.

Function sends confirmation to remote device. It should be called once delete_bond callback is called.

Parameters
[in]serviceBMS service instance
[in]conn_idxconnection index
[in]statusoperation status

◆ bms_init()

ble_service_t* bms_init ( const ble_service_config_t config,
const bms_config_t bms_config,
const bms_callbacks_t callbacks 
)

Register BMS instance.

Function registers HID Service

Parameters
[in]configgeneral service config
[in]bms_configBMS specific config
[in]callbacksapplication callbacks
Returns
service instance
Note
Mandatory feature of Bond Management Service is BMS_DELETE_BOND_REQ_DEV operation and it will be added to service features even if not declared in bms_config.