Go to the documentation of this file.
69 #define BMS_CONNECTION_MAX 10
71 #define BMS_ERROR_OP_CODE_NOT_SUPPORTED 0x80
72 #define BMS_ERROR_OPERATION_FAILED 0x81
74 #define BMS_AUTH_CODE_LEN_MAX 12
81 #define BMS_FEAT_DEL_BONDS_REQ_DEV_BR_LE (0x01 << 0)
82 #define BMS_FEAT_DEL_BONDS_REQ_DEV_BR_LE_AUTH_CODE (0x01 << 1)
83 #define BMS_FEAT_DEL_BONDS_REQ_DEV_BR (0x01 << 2)
84 #define BMS_FEAT_DEL_BONDS_REQ_DEV_BR_AUTH_CODE (0x01 << 3)
85 #define BMS_FEAT_DEL_BONDS_REQ_DEV_LE (0x01 << 4)
86 #define BMS_FEAT_DEL_BONDS_REQ_DEV_LE_AUTH_CODE (0x01 << 5)
87 #define BMS_FEAT_DEL_ALL_BONDS_BR_LE (0x01 << 6)
88 #define BMS_FEAT_DEL_ALL_BONDS_BR_LE_AUTH_CODE (0x01 << 7)
89 #define BMS_FEAT_DEL_ALL_BONDS_BR (0x01 << 8)
90 #define BMS_FEAT_DEL_ALL_BONDS_BR_AUTH_CODE (0x01 << 9)
91 #define BMS_FEAT_DEL_ALL_BONDS_LE (0x01 << 10)
92 #define BMS_FEAT_DEL_ALL_BONDS_LE_AUTH_CODE (0x01 << 11)
93 #define BMS_FEAT_DEL_ALL_BUT_REQ_DEV_BR_LE (0x01 << 12)
94 #define BMS_FEAT_DEL_ALL_BUT_REQ_DEV_BR_LE_AUTH_CODE (0x01 << 13)
95 #define BMS_FEAT_DEL_ALL_BUT_REQ_DEV_BR (0x01 << 14)
96 #define BMS_FEAT_DEL_ALL_BUT_REQ_DEV_BR_AUTH_CODE (0x01 << 15)
97 #define BMS_FEAT_DEL_ALL_BUT_REQ_DEV_LE (0x01 << 16)
98 #define BMS_FEAT_DEL_ALL_BUT_REQ_DEV_LE_AUTH_CODE (0x01 << 17)
99 #define BMS_FEAT_FULL (0x3ffff)
@ BMS_OP_CODE_DEL_BOND_REQ_DEVICE_LE_ONLY
@ BMS_OP_CODE_DEL_BOND_REQ_DEVICE_BR_ONLY
bms_cccd_status_t
BMS Service CCCD status.
@ BMS_OP_CODE_DEL_ALL_BONDS_ON_SERVER_BR_ONLY
sdk_err_t bms_feature_update(uint32_t feature)
Bond Management Service feature update.
void(* bms_cccd_change_handler_t)(uint8_t conn_idx, bms_cccd_status_t cccd_status)
BMS Service CCCD change handler type.
@ BMS_OP_CODE_DEL_ALL_BONDS_ON_SERVER_BR_LE
@ BMS_OP_CODE_DEL_BOND_REQ_DEVICE_BR_LE
sdk_err_t bms_service_init(bms_init_t *p_bms_init)
Initialize a Bond Management Service instance and add in the DB.
@ BMS_OP_CODE_DEL_ALL_BUT_ACTIVE_BOND_BR_ONLY
@ BMS_CCCD_STATUS_FEATURE_ENABLED
@ BMS_OP_CODE_DEL_ALL_BUT_ACTIVE_BOND_BR_LE
@ BMS_OP_CODE_DEL_ALL_BONDS_ON_SERVER_LE_ONLY
uint16_t sdk_err_t
SDK API result type.
bms_op_code_t
Bond Management Control Point opcodes.
BMS Service init stucture. This contains all option and data needed for initialization of the service...
#define BMS_AUTH_CODE_LEN_MAX
@ BMS_OP_CODE_DEL_ALL_BUT_ACTIVE_BOND_LE_ONLY
bms_cccd_change_handler_t cccd_change_handler
@ BMS_CCCD_STATUS_FEATURE_DISABLED