Main Content

getPhyConfigProperties

Return updated properties of Bluetooth BR/EDR PHY configuration object

Since R2020a

    Description

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

    example

    Examples

    collapse all

    Create a default Bluetooth BR/EDR waveform configuration object.

    cfgWaveform = bluetoothWaveformConfig
    cfgWaveform = 
      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 (cfgWaveform)
    cfgPHY = 
      bluetoothPhyConfig with properties:
    
                        Mode: 'BR'
               DeviceAddress: '0123456789AB'
             ModulationIndex: 0.3200
            SamplesPerSymbol: 8
                WhitenStatus: 'On'
        WhitenInitialization: [7x1 double]
              HasExtendedSCO: 0
                  IsIDPacket: 0
    
    

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

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

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

    cfgPHY2 = getPhyConfigProperties (cfgWaveform2)
    cfgPHY2 = 
      bluetoothPhyConfig with properties:
    
                        Mode: 'EDR2M'
               DeviceAddress: '0123456789AB'
             ModulationIndex: 0.3200
            SamplesPerSymbol: 8
                WhitenStatus: 'On'
        WhitenInitialization: [7x1 double]
              HasExtendedSCO: 0
                  IsIDPacket: 0
    
    

    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, 2021. https://www.bluetooth.com/.

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

    Extended Capabilities

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

    Version History

    Introduced in R2020a