Main Content

getPhyConfigProperties

Updated configuration properties of Bluetooth BR/EDR PHY configuration object

Download Required: To use getPhyConfigProperties, first download Communications Toolbox™ Library for the Bluetooth® Protocol. For more information, see Get and Manage Add-Ons. Alternatively, see Communications Toolbox Library for the Bluetooth Protocol File Exchange.

Description

example

cfgPHY = getPhyConfigProperties(cfg) returns updated Bluetooth BR/EDR PHY configuration properties, cfgPHY for the Bluetooth BR/EDR waveform format configuration object, cfg.

Examples

collapse all

Create a Bluetooth BR/EDR waveform configuration object with default properties.

cfg = bluetoothWaveformConfig
cfg = 
  bluetoothWaveformConfig with properties:

                       Mode: 'BR'
                 PacketType: 'FHS'
              DeviceAddress: '0123456789AB'
    LogicalTransportAddress: [3x1 double]
          HeaderControlBits: [3x1 double]
            ModulationIndex: 0.3200
           SamplesPerSymbol: 8
               WhitenStatus: 'On'
       WhitenInitialization: [7x1 double]

Get the PHY configuration properties for the created Bluetooth BR/EDR waveform configuration object.

cfgPHY = getPhyConfigProperties (cfg)
cfgPHY = 
  bluetoothPhyConfig with properties:

                    Mode: 'BR'
           DeviceAddress: '0123456789AB'
         ModulationIndex: 0.3200
        SamplesPerSymbol: 8
            WhitenStatus: 'On'
    WhitenInitialization: [7x1 double]

   Read-only properties:
    No properties.

Create another Bluetooth BR/EDR waveform configuration object and specify the PHY transmission mode as 'EDR2M'.

cfgEDR = bluetoothWaveformConfig('Mode','EDR2M');

Get the PHY configuration properties for this Bluetooth BR/EDR waveform configuration object.

cfgPHY = getPhyConfigProperties (cfgEDR)
cfgPHY = 
  bluetoothPhyConfig with properties:

                    Mode: 'EDR2M'
           DeviceAddress: '0123456789AB'
         ModulationIndex: 0.3200
        SamplesPerSymbol: 8
            WhitenStatus: 'On'
    WhitenInitialization: [7x1 double]

   Read-only properties:
    No properties.

Input Arguments

collapse all

Bluetooth BR/EDR Format configuration, specified as bluetoothWaveformConfig object.

Output Arguments

collapse all

Configuration object for Bluetooth BR/EDR PHY, returned as a bluetoothPhyConfig object.

References

[1] Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 22, 2019. https://www.bluetooth.com/.

[2] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.1. https://www.bluetooth.com/.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2020a