Pigweed
 
Loading...
Searching...
No Matches
pw::bluetooth::low_energy::Central2::ScanOptions Struct Reference

Parameters used during a scan. More...

#include <central2.h>

Public Attributes

pw::span< const ScanFilterfilters
 
uint16_t interval
 
uint16_t window
 
ScanType scan_type
 
Phy phys = Phy::k1Megabit
 

Detailed Description

Parameters used during a scan.

Member Data Documentation

◆ filters

pw::span<const ScanFilter> pw::bluetooth::low_energy::Central2::ScanOptions::filters

List of filters for use during a scan. A peripheral that satisfies any of these filters will be reported. At least 1 filter must be specified. While not recommended, clients that require that all peripherals be reported can specify an empty filter. The span memory must only be valid until the call to Scan() ends.

◆ interval

uint16_t pw::bluetooth::low_energy::Central2::ScanOptions::interval

The time interval between scans.

  • Time = N * 0.625ms
  • Range: 0x0004 (2.5ms) - 10.24s (0x4000)

◆ phys

Phy pw::bluetooth::low_energy::Central2::ScanOptions::phys = Phy::k1Megabit

A bitmask of the PHYs to scan with. Only the 1Megabit and LeCoded PHYs are supported.

◆ scan_type

ScanType pw::bluetooth::low_energy::Central2::ScanOptions::scan_type

Specifies whether to send scan requests, and if so, what type of address to use in scan requests.

◆ window

uint16_t pw::bluetooth::low_energy::Central2::ScanOptions::window

The duration of the scan. The window must be less than or equal to the interval.

  • Time = N * 0.625ms
  • Range: 0x0004 (2.5ms) - 10.24s (0x4000)

The documentation for this struct was generated from the following file: