%% Decode BLE LL Advertising Channel PDU Given in Bits
% Create a BLE LL advertising channel PDU configuration object, 'cfgLLAdv', with default settings and view the corresponding applicable properties.

cfgLLAdv = bleLLAdvertisingChannelPDUConfig

% Generate the BLE LL advertising channel PDU from the corresponding configuration object.

pdu = bleLLAdvertisingChannelPDU(cfgLLAdv);

% Decode the generated BLE LL advertising channel PDU. The returned status indicates decoding is successful. View the output of 'status'and 'cfgLLAdv'.

[status, cfgLLAdv] = bleLLAdvertisingChannelPDUDecode(pdu)

% Copyright 2019 The MathWorks, Inc.