Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
Bluetooth Low Energy
23.6.5 Immediate Commands
In addition to the immediate commands from
Immediate Commands for Data Queue
Manipulation, the following immediate command is supported.
23.6.5.1 Update Advertising Payload Command
The CMD_BLE_ADV_PAYLOAD command can change the payload buffer for an advertising command.
The command may be issued regardless of whether an advertising command is running or not.
The command structure has the format given in
When received, the radio CPU checks if an
advertiser radio operation command is running, using the parameter structure given in pParams of the
immediate command structure. If not, the radio CPU updates the parameter structure immediately. If a
radio operation command is running using the parameter structure to be updated, the radio CPU only
modifies the parameter structure if the payload to be changed is not currently being transmitted. If it is
being transmitted, the radio CPU stores the request and updates as soon as transmission of the packet
has finished.
When updating the parameter structure, the payload to change depends on the payloadType parameter of
the command structure. If payloadType is 0, the radio CPU sets pParams->advLen equal to newLen and
pParams->pAdvData equal to newData. If payloadType is 1, the radio CPU sets pParams->scanRspLen
equal to newLen and pParams->pScanRspData equal to newData. After the update has taken place, the
radio CPU raises a TX_BUFFER_CHANGED interrupt, see . This interrupt is raised regardless of whether
the update was delayed or not.
If any of the parameters are illegal, the radio CPU responds with ParError in CMDSTAT and does not
perform any update. Otherwise, the radio CPU responds with Done in CMDSTAT, which may be done
before the update has taken place.
23.7 Radio Registers
1546
Radio
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated