ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
bdk_scan.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::bk72xx_ble
 

Functions

bool esphome::bk72xx_ble::bdk_scan_ready ()
 True when no controller operation is in flight (APP_BLE_READY).
 
BdkActivityState esphome::bk72xx_ble::bdk_scan_state (uint8_t activity_idx)
 Live state of the given activity; INVALID_ACTIVITY_IDX reads as IDLE.
 
uint8_t esphome::bk72xx_ble::bdk_scan_acquire_activity ()
 Claim an idle activity slot; INVALID_ACTIVITY_IDX when none is free.
 
BdkOpResult esphome::bk72xx_ble::bdk_scan_create (uint8_t activity_idx)
 Create the scan activity (asynchronous); started once CREATED is observed.
 
BdkOpResult esphome::bk72xx_ble::bdk_scan_start (uint8_t activity_idx, uint16_t interval, uint16_t window, bool active)
 Start a created activity: the packed GAPM start, taking the scan mode the BDK's own start path hardcodes away.
 
BdkOpResult esphome::bk72xx_ble::bdk_scan_release (uint8_t activity_idx, bool created, int *err_out)
 Release the activity: delete when never started (a stop would be rejected), stop otherwise.