Enums
enums.py - Contains enum classes.
- class nirfmxbluetoothgen.enums.AllIQImpairmentsEnabled(value)[source]
Bases:
EnumAllIQImpairmentsEnabled.
- FALSE = 0
Specifies that the BT Generation does not add I/Q impairments to the signal.
- TRUE = 1
Specifies that the BT Generation adds I/Q impairments to the signal.
- class nirfmxbluetoothgen.enums.AntennaSwitchingEnabled(value)[source]
Bases:
EnumAntennaSwitchingEnabled.
- FALSE = 0
The Constant Tone Extension (CTE) field in the generated LE packet is not modulated in phase and amplitude.
- TRUE = 1
The Constant Tone Extension (CTE) field in the generated LE packet is modulated in phase and amplitude as per the Relative Phase (deg) value and Relative amplitude (dB) value specified.
- class nirfmxbluetoothgen.enums.AutoHeadroomEnabled(value)[source]
Bases:
EnumAutoHeadroomEnabled.
- FALSE = 0
Specifies that the BT Generation uses the headroom that you specify in the NIBTSG_HEADROOM attribute.
- TRUE = 1
Specifies that the BT Generation computes the headroom value based on the peak power of the signal. The BT Generation assumes that the generated signal average power is 0 dB. The BT Generation adds a power margin of 1.5 dB to the peak power to give some room for the filters in the NI RF vector signal generator. You can read the value of the computed headroom using the NIBTSG_ACTUAL_HEADROOM attribute.
- class nirfmxbluetoothgen.enums.AwgnEnabled(value)[source]
Bases:
EnumAwgnEnabled.
- FALSE = 0
Specifies that the BT Generation does not add AWGN to the baseband waveform.
- TRUE = 1
Specifies that the BT Generation adds AWGN to the baseband waveform.
- class nirfmxbluetoothgen.enums.CSPacketFormat(value)[source]
Bases:
EnumCSPacketFormat.
- CS_TONE = 1
Specifies that the CS packet format is CS Tone. This packet consists of unmodulated carrier.
- CS_TONE_AFTER_SYNC = 2
Specifies that the CS packet format is CS Tone after SYNC. This packet consists of SYNC followed by a CS Tone.
- CS_TONE_BEFORE_SYNC = 3
Specifies that the CS packet format is CS Tone before SYNC. This packet consists of CS Tone followed by a SYNC.
- SYNC = 0
Specifies that the CS packet format is SYNC. This packet consists of preamble, CS access address, trailer and sounding sequence field. The sounding sequence field is optional.
- class nirfmxbluetoothgen.enums.CSSyncSequence(value)[source]
Bases:
EnumCSSyncSequence.
- NONE = 0
Specifies that the LE CS packet does not contain sounding sequence field.
- PAYLOAD_PATTERN = 2
Specifies that the LE CS packet contain payload bit pattern field.
- SOUNDING_SEQUENCE = 1
Specifies that the LE CS packet contain sounding sequence field.
- class nirfmxbluetoothgen.enums.CSToneExtensionSlotEnabled(value)[source]
Bases:
EnumCSToneExtensionSlotEnabled.
- FALSE = 0
Specifies that the generated LE CS packet does not contain CS tone extension slot.
- TRUE = 1
Specifies that the generated LE CS packet contains CS tone extension slot.
- class nirfmxbluetoothgen.enums.CarrierMode(value)[source]
Bases:
EnumCarrierMode.
- BURST = 0
Specifies that the carrier mode includes bursts.
- CONTINUOUS = 1
Specifies that the carrier mode is continuous.
- class nirfmxbluetoothgen.enums.CompatibilityVersion(value)[source]
Bases:
EnumCompatibilityVersion.
- Version010000 = 10000
Indicates that the toolkit compatibility version parameter of the niBTG Open Session VI is set to 1.0.0.
- Version020000 = 20000
Indicates that the toolkit compatibility version parameter of the niBTG Open Session VI is set to 2.0.0.
- class nirfmxbluetoothgen.enums.DVVoicePayloadDataType(value)[source]
Bases:
EnumDVVoicePayloadDataType.
- PN_SEQUENCE = 0
Specifies that the BT Generation uses a Galois pseudonoise (PN) bit sequence with a payload order and seed, which you specify in the NIBTSG_DV_VOICE_PAYLOAD_PN_ORDER and NIBTSG_DV_VOICE_PAYLOAD_PN_SEED attributes respectively, to create the payload for generation.
- USER_DEFINED_BITS = 1
Specifies that the BT Generation repeats the bit pattern, which you specify in the NIBTSG_DV_VOICE_PAYLOAD_USER_DEFINED_BITS attribute, to achieve the necessary payload length.
- class nirfmxbluetoothgen.enums.DataRate(value)[source]
Bases:
EnumDataRate.
- DATA_RATE_2M = 2000000
Indicates that the data rate parameter is set to 2000000.
- DATA_RATE_3M = 3000000
Indicates that the data rate parameter is set to 3000000.
- DATA_RATE_4M = 4000000
Indicates that the data rate parameter is set to 4000000.
- DATA_RATE_6M = 6000000
Indicates that the data rate parameter is set to 6000000.
- DATA_RATE_7_5M = 7500000
Indicates that the data rate parameter is set to 7500000.
- class nirfmxbluetoothgen.enums.DirectionFindingMode(value)[source]
Bases:
EnumDirectionFindingMode.
- ANGLE_OF_ARRIVAL = 1
Specifies that the LE uncoded packets have AoA CTE field.
- ANGLE_OF_DEPARTURE = 2
Specifies that the LE uncoded packets have AoD CTE field.
- DISABLED = 0
Specifies that the LE uncoded packets does not have CTE field.
- class nirfmxbluetoothgen.enums.DirtyTxEnabled(value)[source]
Bases:
EnumDirtyTxEnabled.
- FALSE = 0
Disables the dirty transmitter.
- TRUE = 1
Enables the dirty transmitter.
- class nirfmxbluetoothgen.enums.DirtyTxMode(value)[source]
Bases:
EnumDirtyTxMode.
- FREQUENCY_DRIFT = 2
Enables the dirty transmitter with the standard defined frequency drift only for LE HDT packets.
- STANDARD = 0
Enables the dirty transmitter with the standard settings.
- USER_DEFINED = 1
Enables the dirty transmitter with the user-defined settings.
- class nirfmxbluetoothgen.enums.DirtyTxModulationIndexType(value)[source]
Bases:
EnumDirtyTxModulationIndexType.
- STABLE = 1
Specifies that the modulation index type is stable.
- STANDARD = 0
Specifies that the modulation index type is standard.
- class nirfmxbluetoothgen.enums.DirtyTxParametersEnabledSet(value)[source]
Bases:
EnumDirtyTxParametersEnabledSet.
- FALSE = 0
Specifies that the BT Generation does not use the parameters in the impairment sets.
- TRUE = 1
Specifies that the BT Generation uses the parameters in the impairment sets.
- class nirfmxbluetoothgen.enums.FileOperationMode(value)[source]
Bases:
EnumFileOperationMode.
- CREATE = 3
Creates a new file. Returns an error if the file already exists.
- CREATE_OR_REPLACE = 2
Creates a new file or replaces the contents of an existing file.
- OPEN = 0
Opens an existing file.
- OPEN_OR_CREATE = 1
Opens an existing file or creates a new file if one does not exist.
- class nirfmxbluetoothgen.enums.Format1PayloadZoneConfigurationMode(value)[source]
Bases:
EnumFormat1PayloadZoneConfigurationMode.
- AUTO = 0
Specifies that the payload zone length is computed based the
PAYLOAD_LENGTH_MODEandPAYLOAD_LENGTH. WhenPAYLOAD_LENGTH_MODEproperty is set to NIBTSG_VAL_PAYLOAD_LENGTH_MODE_MAXIMUM_LENGTH, the maximum payload length is used for the specified number of payloads. WhenPAYLOAD_LENGTH_MODEproperty is set to NIBTSG_VAL_PAYLOAD_LENGTH_MODE_USER_DEFINED, user configured payload length is used for specifiedNUMBER_OF_PAYLOADS. In this mode, the block size, number of blocks, last block size and TxBlockMap are computed instead of being entered by the user.
- USER_DEFINED = 1
Specifies that the payload zone length is configured using the channel specific properties such as
NUMBER_OF_BLOCKS,BLOCK_SIZE,LAST_BLOCK_SIZE,TXBLOCK_MAP.
- class nirfmxbluetoothgen.enums.HdtPacketFormat(value)[source]
Bases:
EnumHdtPacketFormat.
- FORMAT0 = 1
Specifies that the HDT packet format is Format0. This packet consists of preamble, control header, PDU header and payload field. The maximum payload length is 510 bytes.
- FORMAT1 = 2
Specifies that the HDT packet format is Format1. This packet format is similar to the Format0 but its payload zone consists of multiple blocks and the maximum payload length is 8191 bytes.
- SHORT_FORMAT = 0
Specifies that the HDT packet format is Short Format. This packet consists of preamble, control header field.
- class nirfmxbluetoothgen.enums.LETPCorruptAlternateCrc(value)[source]
Bases:
EnumLETPCorruptAlternateCrc.
- FALSE = 0
Disables CRC corruption of alternate LE packets.
- TRUE = 1
Enables CRC corruption of alternate LE packets. Set NIBTSG_NUMBER_OF_UNIQUE_PACKETS attribute to an even number when the NIBTSG_LE_TP_CORRUPT_ALTERNATE_CRC attribute is set to NIBTSG_VAL_TRUE.
- class nirfmxbluetoothgen.enums.LETPPayloadType(value)[source]
Bases:
EnumLETPPayloadType.
- LE_TP_PAYLOAD_TYPE_00000000 = 5
Specifies that the payload type is 00000000.
- LE_TP_PAYLOAD_TYPE_00001111 = 6
Specifies that the payload type is 00001111.
- LE_TP_PAYLOAD_TYPE_01010101 = 7
Specifies that the payload type is 01010101.
- LE_TP_PAYLOAD_TYPE_10101010 = 2
Specifies that the payload type is 10101010.
- LE_TP_PAYLOAD_TYPE_11110000 = 1
Specifies that the payload type is 11110000.
- LE_TP_PAYLOAD_TYPE_11111111 = 4
Specifies that the payload type is 11111111.
- PRBS15 = 3
Specifies that the payload type is PRBS15.
- PRBS9 = 0
Specifies that the payload type is PRBS9.
- USER_DEFINED_BITS = 8
Specifies that the BT Generation uses the bit pattern that you specify in the NIBTSG_PAYLOAD_USER_DEFINED_BITS attribute.
- class nirfmxbluetoothgen.enums.PacketBitSequenceTraceEnabled(value)[source]
Bases:
EnumPacketBitSequenceTraceEnabled.
- FALSE = 0
- TRUE = 1
- class nirfmxbluetoothgen.enums.PacketHeaderArqn(value)[source]
Bases:
EnumPacketHeaderArqn.
- ACK = 1
Specifies a positive acknowledgement.
- NAK = 0
Specifies a negative acknowledgement.
- class nirfmxbluetoothgen.enums.PacketType(value)[source]
Bases:
EnumPacketType.
- AUX1 = 14
Specifies that the packet type is AUX1. This packet resembles a DH1 packet but has no cyclic redundancy check (CRC) code. Refer to Section 6.5.4.7, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DH1 = 4
Specifies that the packet type is DH1. This packet is similar to the DM1 packet, except that the information in the payload is not forward error correction (FEC) encoded. The DH1 packet occupies a single time slot. Refer to Sections 6.5.1.5 and 6.5.4.2, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DH3 = 17
Specifies that the packet type is DH3. This packet is similar to the DM3 packet, except that the information in the payload is not forward error correction (FEC) encoded. Refer to Section 6.5.4.4, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DH5 = 25
Specifies that the packet type is DH5. This packet is similar to the DM5 packet, except that the information in the payload is not forward error correction (FEC) encoded. Refer to Section 6.5.4.6, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DM1 = 3
Specifies that the packet type is DM1. The DM1 packet carries only data information. The information and cyclic redundancy check (CRC) bits are coded with a rate 2/3 FEC. The DM1 packet occupies a single time slot. Refer to Sections 6.5.1.5 and 6.5.4.1, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DM3 = 15
Specifies that the packet type is DM3. This packet may occupy up to three time slots. The payload has 2 to 123 information bytes, inclusive (including the 2-byte payload header) and a 16-bit CRC code. Refer to Section 6.5.4.3, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DM5 = 23
Specifies that the packet type is DM5. The payload has 2 to 226 information bytes (including the 2-byte payload header), inclusive, and a 16-bit CRC code. Refer to Section 6.5.4.6, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- DV = 12
Specifies that the packet type is data voice (DV). The DV packet is a combined data-voice packet. Refer to Section 6.5.2.4, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- EV3 = 10
Specifies that the packet type is EV3. The EV3 packet has 1 to 30 information bytes, inclusive, and a 16-bit CRC code. Refer to Section 6.5.3.1, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- EV4 = 19
Specifies that the packet type is EV4. The EV4 packet has 1 to 120 information bytes, inclusive, and a 16-bit CRC code. Refer to Section 6.5.3.2, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- EV5 = 21
Specifies that the packet type is EV5. The EV5 packet has 1 to 180 information bytes, inclusive, and a 16-bit CRC code. Refer to Section 6.5.3.3, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- FHS = 2
Specifies that the packet type is frequency hop synchronization (FHS). The FHS packet is a special control packet containing the Bluetooth device address and the sender’s clock. Refer to Section 6.5.1.4, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- HV1 = 6
Specifies that the packet type is HV1. The HV1 packet has 10 information bytes. Refer to Section 6.5.2.1, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- HV2 = 7
Specifies that the packet type is HV2. The HV2 packet has 20 information bytes. Refer to Section 6.5.2.3, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- HV3 = 9
Specifies that the packet type is HV3. The HV3 packet has 30 information bytes. The information bytes are not protected by forward error correction (FEC). Refer to Section 6.5.2.3, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- ID = 254
Specifies that the packet type is ID. The identity, or ID, packet consists of the device access code (DAC) or inquiry access code (IAC). Refer to Section 6.5.1.1, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- IDLE = 255
Specifies that the packet type is Idle. This packet type is not defined in the Bluetooth Specification v6.0. You can use this packet to create empty slots between Bluetooth packets.
- LE_CS_1M = 32
Specifies that the packet type is LE-CS-1M. This is a LE packet type which supports channel sounding feature at a data rate of 1Ms/s. Refer to Section 2, Part H, Volume 6 of the Bluetooth Specification v6.0 for more information about this packet.
- LE_CS_2M = 33
Specifies that the packet type is LE-CS-2M. This is a LE packet type which supports channel sounding feature at a data rate of 2Ms/s. Refer to Section 2, Part H, Volume 6 of the Bluetooth Specification v6.0 for more information about this packet.
- LE_ENHANCED = 29
Specifies that the packet type is LE-Enhanced. This is an LE packet type with a symbol rate of 2 Ms/s and maximum payload length of 8191 bytes. For payload length up to 255 bytes, typical LE packet is generated. For payload length greater than 255 bytes, Hyper Length LE packet is generated. Refer to Section 2.1, Part B, Volume 6 of the Bluetooth Specification v6.0 for more information about this packet.
- LE_HDT = 34
Specifies that the packet type is LE-HDT. This is a LE packet type which supports higher data rates (2 Mb/s, 3 Mb/s, 4 Mb/s, 6 Mb/s, and 7.5Mb/s).
- LE_LR_125K = 30
Specifies that the packet type is LE-LR-125k. This is an LE packet type which supports long range communication at a data rate of 125 kbps. Refer to Section 2.2, Part B, Volume 6 of the Bluetooth Specification v6.0 for more information about this packet.
- LE_LR_500K = 31
Specifies that the packet type is LE-LR-500k. This is an LE packet type which supports long range communication at a data rate of 500 kbps. Refer to Section 2.2, Part B, Volume 6 of the Bluetooth Specification v6.0 for more information about this packet.
- LE_TP = 27
Specifies that the packet type is LE-TP. Refer to Section 2.1, Part B, Volume 6 of the Bluetooth Specification v6.0 for more information about this packet.
- LE_TP_EXT = 28
Specifies that the packet type is LE-TP-EXT. This packet is similar to the LE-TP packet, except that the payload length is extended up to 8191 bytes. For payload length up to 255 bytes, typical LE packet is generated. For payload length greater than 255 bytes, Hyper Length LE packet is generated. Refer to Section 2.1, Part B, Volume 6 of the Bluetooth Specification v4.2 for more information about this packet.
- NULL = 0
Specifies that the packet type is NULL. This packet has no payload and consists of the channel access code and packet header only. Refer to Section 6.5.1.2, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_2DH1 = 5
Specifies that the packet type is 2-DH1. This packet is similar to the DH1 packet, except that the information in the payload is modulated using pi/4-QPSK. Refer to Section 6.5.4.8, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_2DH3 = 16
Specifies that the packet type is 2-DH3. This packet is similar to the DH3 packet, except that the payload is modulated using pi/4-DQPSK. Refer to Section 6.5.4.9, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_2DH5 = 24
Specifies that the packet type is 2-DH5. This packet is similar to the DH5 packet, except that the payload is modulated using pi/4-DQPSK. Refer to Section 6.5.4.10, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_2EV3 = 8
Specifies that the packet type is 2-EV3. This packet is similar to the EV3 packet, except that the payload is modulated using pi/4-DQPSK. It has 1 and 60 information bytes, inclusive, and a 16-bit CRC code. Refer to Section 6.5.3.4, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_2EV5 = 20
Specifies that the packet type is 2-EV5. The 2-EV5 packet is similar to the EV5 packet, except that the payload is modulated using pi/4-DQPSK. Refer to Section 6.5.3.5, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_3DH1 = 13
Specifies that the packet type is 3-DH1. This packet is similar to the DH1 packet, except that the payload is modulated using 8-DPSK. Refer to Section 6.5.4.11, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_3DH3 = 18
Specifies that the packet type is 3-DH3. This packet is similar to the DH3 packet, except that the payload is modulated using 8-DPSK. Refer to Section 6.5.4.12, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_3DH5 = 26
Specifies that the packet type is 3-DH5. This packet is similar to the DH5 packet, except that the payload is modulated using 8-DPSK. Refer to Section 6.5.4.13, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_3EV3 = 11
Specifies that the packet type is 3-EV3. The 3-EV3 packet is similar to the EV3 packet, except that the payload is modulated using 8-DPSK. The 3-EV3 packet has 1 to 90 information bytes, inclusive and a 16-bit CRC code. Refer to Section 6.5.3.6, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- PACKET_TYPE_3EV5 = 22
Specifies that the packet type is 3-EV5. The 3-EV5 packet is similar to the EV5 packet, except that the payload is modulated using 8-DPSK. Refer to Section 6.5.3.7, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- POLL = 1
Specifies that the packet type is POLL. The POLL packet does not have a payload. Refer to Section 6.5.1.3, Part B, Volume 2 of the Bluetooth Specification v6.0 for more information about this packet.
- class nirfmxbluetoothgen.enums.PayloadDataType(value)[source]
Bases:
EnumPayloadDataType.
- PN_SEQUENCE = 0
Specifies that the BT Generation uses a Galois pseudonoise (PN) bit sequence with a payload order and seed, which you specify in the NIBTSG_PAYLOAD_PN_ORDER and NIBTSG_PAYLOAD_PN_SEED attributes respectively, to create the payload for generation.
- USER_DEFINED_BITS = 1
Specifies that the BT Generation repeats the bit pattern, which you specify in the NIBTSG_PAYLOAD_USER_DEFINED_BITS attribute, to achieve the necessary payload length.
- class nirfmxbluetoothgen.enums.PayloadHeaderEnabled(value)[source]
Bases:
EnumPayloadHeaderEnabled.
- FALSE = 0
Specifies that the header is disabled in the generated Bluetooth packet.
- TRUE = 1
Specifies that the header is enabled in the generated Bluetooth packet.
- class nirfmxbluetoothgen.enums.PayloadLengthMode(value)[source]
Bases:
EnumPayloadLengthMode.
- MAXIMUM_LENGTH = 0
Specifies that the BT Generation sets the length to the maximum permissible payload length.
- USER_DEFINED = 1
Specifies that the BT Generation sets the length to the value that you specify in the NIBTSG_PAYLOAD_LENGTH attribute.
- class nirfmxbluetoothgen.enums.SoundingSequenceMarkerSignals(value)[source]
Bases:
EnumSoundingSequenceMarkerSignals.
- SOUNDING_SEQUENCE_MARKER_SIGNALS_0011 = 1
Specifies that the sounding sequence marker signal inserted in the sounding sequence is 0011
- SOUNDING_SEQUENCE_MARKER_SIGNALS_1100 = 0
Specifies that the sounding sequence marker signal inserted in the sounding sequence is 1100
- class nirfmxbluetoothgen.enums.TxlenSequenceNumber(value)[source]
Bases:
EnumTxlenSequenceNumber.
- TXLEN_SEQUENCE_NUMBER_00 = 0
Specifies that the packet does not include a payload or any of its blocks.
- TXLEN_SEQUENCE_NUMBER_01 = 1
Specifies that the payload has 1 block and the Payload Length is
LAST_BLOCK_SIZE.
- TXLEN_SEQUENCE_NUMBER_10 = 2
Specifies that the payload can have maximum 8 blocks and only bits 0 to 7 of
TXBLOCK_MAPare explicit; bits 8 to 15 are always zero.
- TXLEN_SEQUENCE_NUMBER_11 = 3
Specifies that the payload can have maximum 16 blocks.