Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
RF Core HAL
Table 23-30. CMD_SCH_IMM Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
14–15
Reserved
16–19
cmdrVal
W
Value as would be written to CMDR
20–23
cmdstaVal
R
Value as would be returned in CMDSTA
On start, the radio CPU takes the value in cmdrVal and processes it as if it had been written to CMDR.
This command may be a pointer to an immediate command, or it may form a direct command as shown in
A pointer to a radio operation command causes a scheduling error. The value that would
normally have been returned in CMDSTA is written to cmdstaVal. This means that no command RF CMD
ACK interrupt is raised. Instead, a COMMAND_DONE interrupt is raised, as for any other radio operation
command.
Depending on the result of the immediate or direct command, the status and result of the radio operation
command will be as shown in
.
CMD_SCH_IMM may run immediate commands as part of a chain of radio operation commands, or to
schedule them in the future. If an immediate or direct command received in the CMDR register is being
processed at the same time that a scheduled CMD_SCH_IMM starts, the processing of the scheduled
command will start after the other command has finished.
Table 23-31. End Statuses for CMD_SCH_IMM
Condition
Status code
Result
Immediate command ended with result Done
DONE_OK
TRUE
There was an error in the execution of the command, giving a CMDSTA result not listed
DONE_FAILED
FALSE
below
There was an error in the command, giving one of the following results: SchedulingError,
ERROR_PAR
Abort
UnknownCommand, UnknownDirCommand, IllegalPointer, or ParError.
23.3.3.1.13 CMD_COUNT_BRANCH: Counter Command With Branch of Command Chain
Command ID number: 0x0812
CMD_COUNT_BRANCH is a radio operation command. In addition to the parameters listed in
,
the command structure contains the fields listed in
Table 23-32. CMD_COUNT_BRANCH Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
Counter
On start, the radio CPU decrements the
14–15
counter
RW
value, and the end status of the operation
differs if the result is zero.
Pointer to next operation if counter did not
16–19
pNextOpIfOk
W
expire
On start, the radio CPU decrements the counter field by 1, unless it was already 0, 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. In this case, the next radio operation command to run is given by pNextOpIfOk instead of pNextOp,
. This can be used in conditional execution to create a loop.
If the operation is started with counter equal to zero, the operation ends with status DONE_OK and the
next operation is taken from pNextOpIfOk. This operation can be used if the previous command is set up
to skip optionally, as skipping from a previous command in the chain follows pNextOp.
The operation ends by one of the causes listed in
or
1479
SWCU117A – February 2015 – Revised March 2015
Radio
Copyright © 2015, Texas Instruments Incorporated