SmartSnippets DA1459x SDK
bms.h
Go to the documentation of this file.
1 
42 #ifndef BMS_H_
43 #define BMS_H_
44 
45 #include "ble_service.h"
46 
50 typedef enum {
64 
68 typedef enum {
78 
82 typedef struct {
83  bms_delete_bond_op_t supported_delete_bond_op;
84 } bms_config_t;
85 
86 typedef void (* delete_bond_cb_t)(bms_delete_bond_op_t op, uint16_t conn_idx, uint16_t length,
87  const uint8_t *auth_code);
88 
92 typedef struct {
94  delete_bond_cb_t delete_bond;
96 
112 ble_service_t *bms_init(const ble_service_config_t *config, const bms_config_t *bms_config,
113  const bms_callbacks_t *callbacks);
114 
125 void bms_delete_bond_cfm(ble_service_t *service, uint16_t conn_idx, bms_delete_bond_status_t status);
126 
127 #endif /* BMS_H_ */
128 
BMS_DELETE_BOND_ALL_DEV
Definition: bms.h:56
BMS_DELETE_BOND_STATUS_NOT_SUPPORTED
Definition: bms.h:76
BMS_DELETE_BOND_STATUS_INSUFFICIENT_AUTH
Definition: bms.h:74
BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV
Definition: bms.h:60
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.
ble_service.h
Services handling routines API.
bms_delete_bond_status_t
bms_delete_bond_status_t
Definition: bms.h:68
BMS_DELETE_BOND_ALL_DEV_AUTH
Definition: bms.h:58
BMS_DELETE_BOND_STATUS_FAILED
Definition: bms.h:72
BMS_DELETE_BOND_REQ_DEV_AUTH
Definition: bms.h:54
BMS_DELETE_BOND_REQ_DEV
Definition: bms.h:52
bms_config_t
Definition: bms.h:82
BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV_AUTH
Definition: bms.h:62
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.
ble_service_config_t
Definition: ble_service.h:150
BMS_DELETE_BOND_STATUS_OK
Definition: bms.h:70
bms_callbacks_t
Definition: bms.h:92
bms_delete_bond_op_t
bms_delete_bond_op_t
Definition: bms.h:50
ble_service
Definition: ble_service.h:132