ble_init.h 408 B

123456789101112131415161718192021
  1. #ifndef __BLE_INIT_H
  2. #define __BLE_INIT_H
  3. typedef struct _ble_cb_t {
  4. ble_con_handle_t con_hanle;
  5. } ble_cb_t;
  6. extern ble_cb_t ble_cb;
  7. void bsp_ble_init(void);
  8. void ble_set_work_mode(BT_WORK_MODE mode);
  9. BT_WORK_MODE ble_get_work_mode(void);
  10. bool bsp_ble_bind_state(uint8_t index, sm_bonding_info_t* bind_info);
  11. void ble_adv_param_init(bool adv_en);
  12. void ble_dir_adv_param_init(bool adv_en);
  13. #endif