Coverage for src / bluetooth_sig / types / advertising / __init__.py: 100%
11 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-18 11:17 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-18 11:17 +0000
1"""BLE Advertising data types and parsing utilities.
3This package contains types organised by category:
4 - pdu: PDU-level structures (PDUType, BLEAdvertisingPDU, headers)
5 - extended: Extended advertising fields (CTE, ADI, AuxPtr, SyncInfo)
6 - flags: BLE advertising flags
7 - features: LE supported features
8 - ad_structures: Parsed AD structure categories
9 - builder: Advertisement data encoding and building
10 - result: Final composed advertising data types
11 - indoor_positioning: Indoor Positioning AD type (0x25)
12 - transport_discovery: Transport Discovery Data AD type (0x26)
13 - channel_map_update: Channel Map Update Indication AD type (0x28)
14 - three_d_information: 3D Information Data AD type (0x3D)
15"""
17from bluetooth_sig.types.advertising.ad_structures import (
18 AdvertisingDataStructures,
19 ConnectionIntervalRange,
20 CoreAdvertisingData,
21 DeviceProperties,
22 DirectedAdvertisingData,
23 ExtendedAdvertisingData,
24 LocationAndSensingData,
25 MeshAndBroadcastData,
26 OOBSecurityData,
27 SecurityData,
28)
29from bluetooth_sig.types.advertising.builder import (
30 ADStructure,
31 AdvertisementBuilder,
32 encode_manufacturer_data,
33 encode_service_uuids_16bit,
34 encode_service_uuids_128bit,
35)
36from bluetooth_sig.types.advertising.channel_map_update import ChannelMapUpdateIndication
37from bluetooth_sig.types.advertising.features import LEFeatures
38from bluetooth_sig.types.advertising.flags import BLEAdvertisingFlags
39from bluetooth_sig.types.advertising.indoor_positioning import (
40 IndoorPositioningConfig,
41 IndoorPositioningData,
42)
43from bluetooth_sig.types.advertising.pdu import BLEAdvertisingPDU
44from bluetooth_sig.types.advertising.result import AdvertisementData, AdvertisingData
45from bluetooth_sig.types.advertising.three_d_information import (
46 ThreeDInformationData,
47 ThreeDInformationFlags,
48)
49from bluetooth_sig.types.advertising.transport_discovery import (
50 TDSFlags,
51 TransportBlock,
52 TransportDiscoveryData,
53)
55__all__ = [
56 # ad_structures types
57 "AdvertisingDataStructures",
58 "ConnectionIntervalRange",
59 "CoreAdvertisingData",
60 "DeviceProperties",
61 "DirectedAdvertisingData",
62 "ExtendedAdvertisingData",
63 "LocationAndSensingData",
64 "MeshAndBroadcastData",
65 "OOBSecurityData",
66 "SecurityData",
67 # builder types
68 "ADStructure",
69 "AdvertisementBuilder",
70 "encode_manufacturer_data",
71 "encode_service_uuids_16bit",
72 "encode_service_uuids_128bit",
73 # channel_map_update
74 "ChannelMapUpdateIndication",
75 # features
76 "LEFeatures",
77 # flags
78 "BLEAdvertisingFlags",
79 # indoor_positioning
80 "IndoorPositioningConfig",
81 "IndoorPositioningData",
82 # pdu
83 "BLEAdvertisingPDU",
84 # result types
85 "AdvertisementData",
86 "AdvertisingData",
87 # three_d_information
88 "ThreeDInformationData",
89 "ThreeDInformationFlags",
90 # transport_discovery
91 "TDSFlags",
92 "TransportBlock",
93 "TransportDiscoveryData",
94]