hal_scan_manage.h 671 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _HAL_SCAN_MANAGER__H__
  2. #define _HAL_SCAN_MANAGER__H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*Includes ------------------------------------------------------*/
  7. #include <stdbool.h>
  8. #include <stdint.h>
  9. #include <string.h>
  10. #include "sdk_common.h"
  11. #include "SEGGER_RTT.h"
  12. #include "usr_config.h"
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. typedef void (*Scan_reslut_cb)(void);
  17. typedef struct _scan_reslt_t{
  18. const char *scanname;
  19. uint8_t scanflag;
  20. Scan_reslut_cb handle;
  21. struct _scan_reslt_t *next;
  22. }scan_reslt_t;
  23. void hal_ble_scan_Init(void);
  24. void hal_ble_scan_result_Clear(scan_reslt_t *cb);
  25. void hal_ble_scan_result_Regist(scan_reslt_t *cb);
  26. #endif