Справочник Пользователя для Texas Instruments CC2650DK
RF Core HAL
Table 23-33. Additional End Causes for CMD_COUNT_BRANCH
Condition
Status Code
Result
Finished operation with counter = 0 when being started
DONE_OK
TRUE
Finished operation with counter > 0 after decrementing
DONE_OK
TRUE
DONE_COUNTDO
Finished operation with counter = 0 after decrementing
FALSE
WN
23.3.3.1.14 CMD_PATTERN_CHECK: Check a Value in Memory Against a Pattern
Command ID number: 0x0813
CMD_PATTERN_CHECK is a radio operation command. In addition to the parameters listed in
, the command structure contains the fields listed in
.
Table 23-34. CMD_PATTERN_CHECK Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
Operation to perform
0: True if value == compareVal
0: True if value == compareVal
0–1
operation
W
1: True if value < compareVal
2: True if value > compareVal
3: Reserved
2: True if value > compareVal
3: Reserved
If 1, interchange the four bytes of the value, so that they
2
bByteRev
W
are read most-significant-byte-first.
14–15
patternOpt
3
bBitRev
W
If 1, perform bit reversal of the value
0: Treat value and compareVal as unsigned
1–31: Treat value and compareVal as signed, where
1–31: Treat value and compareVal as signed, where
4–8
signExtend
W
the value gives the number of the most significant bit in
the signed number.
the signed number.
0: Use pValue as a pointer
9
bRxVal
W
1: Use pValue as a signed offset to the start of the last
committed RX entry element
committed RX entry element
16–19
pNextOpIfOk
W
Pointer to next operation if comparison result was true
Pointer to read from, or offset from last RX entry if
20–23
pValue
W
patternOpt.bRxVal == 1
24–27
mask
W
Bit mask to apply before comparison
28–31
compareVal
W
Value to compare to
On start, the radio CPU reads a 4-byte value from the location pointed to by pValue if patternOpt.bRxVal
== 0. If patternOpt.bRxVal == 1, the location to read from is found by taking the pointer to the start of the
last committed Rx entry element and adding the signed number found in pValue as a byte offset. In either
case, this pointer does not need to be 4-byte aligned; if not, the value is read byte by byte.
== 0. If patternOpt.bRxVal == 1, the location to read from is found by taking the pointer to the start of the
last committed Rx entry element and adding the signed number found in pValue as a byte offset. In either
case, this pointer does not need to be 4-byte aligned; if not, the value is read byte by byte.
The value is then subject to the following operations in this order:
1. If patternOpt.bByteRev == 1, interchange byte 3 with byte 0, and byte 1 with byte 2, as if the bytes had
been read most-significant-byte-first.
2. If patternOpt.bBitRev == 1, reverse the bit order of the entire 32-bit word.
3. Perform a bitwise ‘AND’ operation between the value and mask.
4. If patternOpt.signExtend > 0, copy the value of bit number patternOpt.signExtend (where bit 0 is the
least significant bit) into all the more significant bits.
5. Perform a compare operation between the resulting value and compareVal, depending on
patternOpt.operation, see
. The compare operation is unsigned if
patternOpt.signExtend == 0, otherwise signed.
If patternOpt.operation or pValue have illegal values, the operation ends with status ERROR_PAR.
Otherwise, the operation ends by one of the causes listed in
Otherwise, the operation ends by one of the causes listed in
or
, depending on
the result of the comparison in step 5 in the previous list. If the comparison result was true, the next radio
operation command to run is given by pNextOpIfOk instead of pNextOp.
operation command to run is given by pNextOpIfOk instead of pNextOp.
1480
Radio
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated