SmartSnippets DA1459x SDK
sdk
interfaces
ble
services
include
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
{
52
BMS_DELETE_BOND_REQ_DEV
= 0x01,
54
BMS_DELETE_BOND_REQ_DEV_AUTH
= 0x02,
56
BMS_DELETE_BOND_ALL_DEV
= 0x04,
58
BMS_DELETE_BOND_ALL_DEV_AUTH
= 0x08,
60
BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV
= 0x10,
62
BMS_DELETE_BOND_ALL_EXCEPT_REQ_DEV_AUTH
= 0x20,
63
}
bms_delete_bond_op_t
;
64
68
typedef
enum
{
70
BMS_DELETE_BOND_STATUS_OK
= 0x00,
72
BMS_DELETE_BOND_STATUS_FAILED
= 0x01,
74
BMS_DELETE_BOND_STATUS_INSUFFICIENT_AUTH
= 0x02,
76
BMS_DELETE_BOND_STATUS_NOT_SUPPORTED
= 0x03,
77
}
bms_delete_bond_status_t
;
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;
95
}
bms_callbacks_t
;
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
Generated on Tue Oct 24 2023 10:38:23 for SmartSnippets DA1459x SDK by
1.8.16