Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
RF Core HAL
Relative timing can either be relative to time of submitting the command chain, the start of the command,
to the start of the previous or first command, or to certain observed events inside the command, to be
defined for each command. The following rules apply:
For the first command in a chain, if the start trigger is any of the types 5 through 9, the start is
immediate. If another trigger referenced in the first command in a chain is any of the types 5 through 9,
the trigger time is relative to the time the command was submitted.
If the start trigger of a command is TRIG_REL_START, an error is produced.
If the start trigger of a command is TRIG_NEVER and bEnaCmd is 0, an error is produced.
Some radio operation commands define event #1 and #2. These are context-dependent events that
can be observed by the radio CPU. See the description of each command for a definition in that
context. If undefined, these events are the time of the start of the command.
If bEnaCmd is 1, the action may also be triggered with a command (CMD_TRIGGER command, see
). The triggerNo parameter identifies the trigger number of this command.
If a trigger happens in the past when evaluated, the behavior depends on the pastTrig bit. If this bit is 0,
the trigger does not happen, or for start triggers, an error is produced. If this bit is 1, the trigger occurs as
soon as possible. If the pastTrig bit is 1 for start triggers, timing relative to the start of the command is
relative to the programmed start time, not the actual start time.
For an external trigger, the radio CPU sets the RAT to use the selected input event as a one-capture
trigger; the CPU then uses this capture interrupt to trigger the action. If the event happens before the
setup occurs, the event will not be captured, and the pastTrig bit is ignored.
23.3.2.5.2 Conditional Execution
The execution of a command may be conditional on the result of the previous command. For each
command, three results are possible:
True
False
Abort
The criteria are defined for each command. If not defined, the result is True unless the command ended
with error, in which case the result is Abort.
Each command structure contains a condition for running the next command. The condition byte is as
given in
If rule is COND_SKIP_ON_FALSE or COND_SKIP_ON_TRUE, the number of
commands to skip is signaled in the nSkip field. If the number of skips is 0, rerun the same command. If
the number of skips is 1, run the next command in the chain. If the number of skips is 2, run the command
after the next, and so forth. If rule is COND_NEVER and there are no previous commands using skipping,
the next command pointer is ignored and may be NULL.
Table 23-6. Format of Condition Byte
Bits
Field Name
Description
0–3
rule
Rule for how to proceed, as defined in
4–7
nSkip
Number of skips if skipping is an option
1463
SWCU117A – February 2015 – Revised March 2015
Radio
Copyright © 2015, Texas Instruments Incorporated