当前位置: 首页 > 工具软件 > btScan > 使用案例 >

QCC3040---BR/EDR Scan Manage module

江丰羽
2023-12-01

1、路径

adk\src\domains\bt\bredr_scan_manager\bredr_scan_manager.c

2、数据结构

2.1 bredr_scan_manager_state_t


/*! @brief Scan Manager state. */
typedef struct
{
    /*! Module's task */
    TaskData task_data;

    /*! Page scan context */
    bsm_scan_context_t page_scan;

    /*! Inquiry scan context */
    bsm_scan_context_t inquiry_scan;

    /*! The task that requested disable (if any). Cleared once disable successful. */
    Task disable_task;

    /*! Pointer to callback function to call when eir setup is complete */
    eir_setup_complete_callback_t eir_setup_complete_callback;

    /*! Indicates EIR setup is in progress */
    bool eir_setup_in_progress;
} bredr_scan_manager_state_t;

NOTE:

  1. eir_setup_in_progress:用于是否重新设定新的回调函数eir_setup_complete_callback.
  2. 当拿到了本地name之后就会调用回调函数eir_setup_complete_c
 类似资料: