Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
RF Core HAL
Table 23-27. CMD_SYNC_START_RAT Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
14–15
Unused
The desired RAT timer value
corresponding to the value the RAT
16–19
rat0
W
would have had when the RTC was
zero. This parameter is returned by
CMD_SYNC_STOP_RAT
On start, the radio CPU starts the RAT and sets up capture of an RTC tick and waits for this tick, then
calculates the necessary timer adjustment based on the input parameter rat0 and performs this
adjustment. The input parameter rat0 is the value previously returned by CMD_SYNC_STOP_RAT.
Because the radio timer is normally not running when this command is issued, the start trigger must be
TRIG_NOW (see
Triggers).
The first time the radio timer is started after system boot, the command CMD_START_RAT must be used
(see
CMD_START_RAT: Asynchronously Start Radio Timer Command). As an
alternative, CMD_SYNC_START_RAT may be issued with a fixed parameter such as 0; this gives an
arbritrary start value for the RAT, however. Before powering down the radio, the system CPU must run the
CMD_SYNC_STOP_RAT command, and after powering it up again, the system CPU must run the
CMD_SYNC_START_RAT command with the same parameter as the one received when
CMD_SYNC_STOP_RAT was issued.
23.3.3.1.11 CMD_COUNT: Counter Command
Command ID number: 0x080B
CMD_COUNT is a radio operation command. In addition to the parameters listed in
the
command structure contains the fields listed in
.
Table 23-28. CMD_COUNT Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
Counter. On start, the radio CPU
decrements the value, and the end
14–15
counter
R/W
status of the operation differs if the
result is zero
On start, the radio CPU decrements the counter field by 1 and writes the result back to this field. If the
result of the decrement is zero, the operation ends with status DONE_COUNTDOWN and result False.
Otherwise, the operation ends with status DONE_OK and result True. This can be used in conditional
execution to create a loop.
If the operation is started with counter equal to zero, this is viewed as an illegal parameter, so the
operation will end with the status ERROR_PAR.
The operation ends by one of the causes listed in
or
Table 23-29. Additional End Causes for CMD_COUNT
Condition
Status Code
Result
Finished operation with counter > 0
DONE_OK
True
Finished operation with counter = 0
DONE_COUNTDOWN
False
23.3.3.1.12 CMD_SCH_IMM: Run Immediate Command as Radio Operation
Command ID number: 0x0810
CMD_SCH_IMM is a radio operation command. In addition to the parameters listed in
the
command structure contains the fields listed in
.
1478
Radio
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated