%% Get Payload Length for Bluetooth BR/EDR Format Configuration
% Create a Bluetooth BR/EDR waveform configuration object with default properties.

cfg = bluetoothWaveformConfig

% Get the payload length of the default 'FHS' packet.

payloadLength = getPayloadLength(cfg)

% Create another Bluetooth BR/EDR waveform configuration object. Set the packet type as 'HV1'.

cfgHV1 = bluetoothWaveformConfig('PacketType','HV1');

% Get the payload length of the specified 'HV1' packet.

payloadLength = getPayloadLength(cfgHV1)

% Copyright 2019 The MathWorks, Inc.