Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
RF Core HAL
Table 23-7. Condition Rules
Number
Name
Description
0
COND_ALWAYS
Always run next command (except in case of Abort)
Never run next command (next command pointer can still be used for
1
COND_NEVER
skip)
Run next command if this command returned True, stop if it returned
2
COND_STOP_ON_FALSE
False
Stop if this command returned True, run next command if it returned
3
COND_STOP_ON_TRUE
False
Run next command if this command returned True, skip a number of
4
COND_SKIP_ON_FALSE
commands if it returned False
Skip a number of commands if this command returned True, run next
5
COND_SKIP_ON_TRUE
command if it returned False
If execution is stopped, the radio CPU goes back to idle and no further commands are run until a new
command has been entered through the [CMDR] register. The LAST_COMMAND_DONE interrupt is
raised.
If a command ends with the Abort result, the execution ends regardless of the condition. The
LAST_COMMAND_DONE interrupt will be raised. An example of criterion for the Abort result is that a
CMD_ABORT command is issued.
23.3.2.5.3 Handling Before Start of Command
For all radio operation commands, the start trigger and condition code are checked before parsing the rest
of the command. If the start trigger has an illegal trigger type (including TRIG_REL_START, which is not
allowed for start triggers, and TRIG_NEVER in combination with no command trigger), the radio CPU sets
the status field to ERROR_START_TRIG. If the condition field has an illegal value, the radio CPU sets the
status field to ERROR_CONDITION. If the start trigger is found to occur in the past and
startTrigger.pastTrig is 0, the radio CPU sets the status field to ERROR_PAST_START.
23.3.2.6 Command Data Structures
The data structures are listed with tables below. The Byte Index is the offset from the pointer to that
structure. Multi-byte fields are little-endian, and 16-bit half-word or 32-bit word alignment as given by the
field size is required. For bit numbering, 0 is the least significant bit. The R/W column is used as follows:
R: The system CPU can read a result back; the radio CPU will not read the field
W: The system CPU shall write a value, the radio CPU will read it and not modify it
R/W: The system CPU shall write an initial value, the radio CPU may modify it
For data structures that are a specialization of another data structure, the fields from the parent structure
are not repeated, but the Byte Index reflects their presence.
The only mandatory field for all commands is the command ID number, which is a 16-bit number sent as
the first two bytes of the command structure.
Some immediate commands have additional fields, which are defined for each command. The radio
operation commands have additional mandatory fields, as defined in
1464
Radio
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated