max_ble_hci.constants
Contains HCI constants definitions.
- class AddrType(value)[source]
- Bases: - Enum- BLE-defined peer address types. - PUBLIC = 0
- Public device address. 
 - PUBLIC_IDENTITY = 2
- Resolvable Private address based on local IRK from resolving list, or public address if no match is found. - Note - For advertising, this value is valid for own device address type only. For connection, this value is valid for both own device address type and connectable peer device address type. 
 - RANDOM = 1
- Random device address. 
 - RANDOM_IDENTITY = 3
- Resolvable Private address based on local IRK from resolving list, or random address is no match is found. - Note - For advertising, this value is valid for own device address type only. For connection, this value is valid for both own device address type and connectable peer device address type. 
 
- class BtTxPacketType(value)[source]
- Bases: - Enum- Bluetooth Classic TX test packet types - PKT_2DH1 = 6
- 2DH1 packet type 
 - PKT_2DH3 = 8
- 2DH3 packet type 
 - PKT_2DH5 = 10
- 2DH5 packet type 
 - PKT_2EV3 = 18
- 2EV3 packet type 
 - PKT_2EV5 = 20
- 2EV5 packet type 
 - PKT_3DH1 = 7
- 3DH1 packet type 
 - PKT_3DH3 = 9
- 3DH3 packet type 
 - PKT_3DH5 = 11
- 3DH5 packet type 
 - PKT_3EV3 = 19
- 3EV3 packet type 
 - PKT_3EV5 = 21
- 3EV5 packet type 
 - PKT_DH1 = 1
- DH1 packet type 
 - PKT_DH3 = 3
- DH3 packet type 
 - PKT_DH5 = 5
- DH5 packet type 
 - PKT_DM1 = 0
- DM1 packet type 
 - PKT_DM3 = 2
- DM3 packet type 
 - PKT_DM5 = 4
- DM5 packet type 
 - PKT_EV3 = 15
- EV3 packet type 
 - PKT_EV4 = 16
- EV4 packet type 
 - PKT_EV5 = 17
- EV5 packet type 
 - PKT_HV1 = 12
- HV1 packet type 
 - PKT_HV2 = 13
- HV2 packet type 
 - PKT_HV3 = 14
- HV3 packet type 
 
- class CteType(value)[source]
- Bases: - Enum- Requested CTE Types - AOA = 0
- AoA Constant Tone Extension 
 - AOD_1_US = 1
- AoD Constant Tone Extension with 1 us slots 
 - AOD_2_US = 2
- AoD Constant Tone Extension with 2 us slots 
 
- class Endian(value)[source]
- Bases: - Enum- Endian byte-order definitions. - BIG = 'big'
- Big endian byte order. 
 - LITTLE = 'little'
- Little endian byte order. 
 
- MAX_U16 = 65535
- Maximum value for a 16-bit unsigned integer. 
- MAX_U32 = 4294967295
- Maximum value for a 32-bit unsigned integer. 
- MAX_U64 = 18446744073709551615
- Maximum value for a 64-bit unsigned integer. 
- class PayloadOption(value)[source]
- Bases: - Enum- BLE-definded payload options. - PLD_00000000 = 5
- 00000000 payload option. 
 - PLD_00001111 = 6
- 00001111 payload option. 
 - PLD_01010101 = 7
- 01010101 payload option. 
 - PLD_10101010 = 2
- 10101010 payload option. 
 - PLD_11110000 = 1
- 11110000 payload option. 
 - PLD_11111111 = 4
- 11111111 payload option. 
 - PLD_PRBS15 = 3
- PRBS15 payload option. 
 - PLD_PRBS9 = 0
- PRBS9 payload option. 
 
- class PhyOption(value)[source]
- Bases: - Enum- BLE-defined PHY options. - PHY_1M = 1
- 1M PHY option. 
 - PHY_2M = 2
- 2M PHY option. 
 - PHY_CODED = 3
- Generic coded PHY option. 
 - PHY_CODED_S2 = 4
- Coded S2 PHY option. 
 - PHY_CODED_S8 = 3
- Coded S8 PHY option. 
 
- class PubKeyValidateMode(value)[source]
- Bases: - Enum- Public key validation modes. - ALT1 = 0
- ALT1 validation mode. 
 - ALT2 = 1
- ALT2 validation mode.