Download Print this page

Texas Instruments SimpleLink CC2620 Technical Reference Manual page 1503

Zigbee rf4ce wireless mcu simplelink cc13 series; simplelink cc26 series

Advertisement

www.ti.com
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
Table
23-8, the command structure contains the fields listed in
Byte
Field Name
Index
14–15
patternOpt
16–19
pNextOpIfOk
20–23
pValue
24–27
mask
28–31
compareVal
When starting, 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.
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
LSB) into all the more significant bits.
5. Perform a compare operation between the resulting value and compareVal, depending on
patternOpt.operation, see
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
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.
Condition
Comparison result was true
Comparison result was false
Command run with patternOpt.bRxVal when no RX data is fully received
SWCU117C – February 2015 – Revised September 2015
Submit Documentation Feedback
Table 23-35. CMD_PATTERN_CHECK Command Format
Bits
Bit Field Name
0–1
operation
2
bByteRev
3
bBitRev
4–8
signExtend
9
bRxVal
Table
23-35. The compare operation is unsigned if
Table 23-36. Additional End Causes for CMD_PATTERN_CHECK
Copyright © 2015, Texas Instruments Incorporated
Table
23-35.
Type
Description
Operation to perform
0: TRUE if value == compareVal
W
1: TRUE if value < compareVal
2: TRUE if value > compareVal
3: Reserved
If 1, interchange the four bytes of the value, so that they
W
are read most-significant-byte-first.
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
W
the value gives the number of the MSB in the signed
number.
0: Use pValue as a pointer
W
1: Use pValue as a signed offset to the start of the last
committed RX entry element
W
Pointer to next operation if comparison result was true
Pointer to read from, or offset from last RX entry if
W
patternOpt.bRxVal == 1
W
Bit mask to apply before comparison
W
Value to which to compare
Table 23-14
Status code
DONE_OK
DONE_FAILED
ERROR_NO_RX
RF Core HAL
or
Table
23-36, depending on
Result
TRUE
FALSE
ABORT
Radio
1503

Hide quick links:

Advertisement

loading