![]() |
![]() |
|
rflib
|
Command for Checking a Value in Memory aginst a Pattern. More...
#include <rf_common_cmd.h>

Data Fields | |
| uint16_t | commandNo |
| The command ID number 0x0813. More... | |
| uint16_t | status |
| An integer telling the status of the command. This value is updated by the radio CPU during operation and may be read by the system CPU at any time. More... | |
| rfc_radioOp_t * | pNextOp |
| Pointer to the next operation to run after this operation is done. More... | |
| ratmr_t | startTime |
Absolute or relative start time (depending on the value of startTrigger) More... | |
| struct { | |
| uint8_t triggerType:4 | |
| The type of trigger. More... | |
| uint8_t bEnaCmd:1 | |
| 0: No alternative trigger command 1: CMD_TRIGGER can be used as an alternative trigger More... | |
| uint8_t triggerNo:2 | |
| The trigger number of the CMD_TRIGGER command that triggers this action. More... | |
| uint8_t pastTrig:1 | |
| 0: A trigger in the past is never triggered, or for start of commands, give an error 1: A trigger in the past is triggered as soon as possible More... | |
| } | startTrigger |
| Identification of the trigger that starts the operation. More... | |
| struct { | |
| uint8_t rule:4 | |
| Condition for running next command: Rule for how to proceed. More... | |
| uint8_t nSkip:4 | |
| Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ... More... | |
| } | condition |
| struct { | |
| uint16_t operation:2 | |
| Operation to perform 0: True if value == compareVal1: True if value < compareVal2: True if value > compareVal3: Reserved More... | |
| uint16_t bByteRev:1 | |
| If 1, interchange the four bytes of the value, so that they are read most-significant-byte-first. More... | |
| uint16_t bBitRev:1 | |
| If 1, perform bit reversal of the value. More... | |
| uint16_t signExtend:5 | |
0: Treat value and compareVal as unsigned1–31: Treat value and compareVal as signed, where the value gives the number of the most significant bit in the signed number. More... | |
| uint16_t bRxVal:1 | |
0: Use pValue as a pointer1: Use pValue as a signed offset to the start of the last committed RX entry element More... | |
| } | patternOpt |
| Options for comparison. More... | |
| rfc_radioOp_t * | pNextOpIfOk |
| Pointer to next operation if comparison result was true. More... | |
| uint8_t * | pValue |
Pointer to read from, or offset from last RX entry if patternOpt.bRxVal == 1. More... | |
| uint32_t | mask |
| Bit mask to apply before comparison. More... | |
| uint32_t | compareVal |
| Value to compare to. More... | |
| struct { | |
| uint8_t triggerType:4 | |
| The type of trigger. More... | |
| uint8_t bEnaCmd:1 | |
| 0: No alternative trigger command 1: CMD_TRIGGER can be used as an alternative trigger More... | |
| uint8_t triggerNo:2 | |
| The trigger number of the CMD_TRIGGER command that triggers this action. More... | |
| uint8_t pastTrig:1 | |
| 0: A trigger in the past is never triggered, or for start of commands, give an error 1: A trigger in the past is triggered as soon as possible More... | |
| } | startTrigger |
| Identification of the trigger that starts the operation. More... | |
| struct { | |
| uint8_t rule:4 | |
| Condition for running next command: Rule for how to proceed. More... | |
| uint8_t nSkip:4 | |
| Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ... More... | |
| } | condition |
| struct { | |
| uint16_t operation:2 | |
| Operation to perform 0: True if value == compareVal1: True if value < compareVal2: True if value > compareVal3: Reserved More... | |
| uint16_t bByteRev:1 | |
| If 1, interchange the four bytes of the value, so that they are read most-significant-byte-first. More... | |
| uint16_t bBitRev:1 | |
| If 1, perform bit reversal of the value. More... | |
| uint16_t signExtend:5 | |
0: Treat value and compareVal as unsigned1–31: Treat value and compareVal as signed, where the value gives the number of the most significant bit in the signed number. More... | |
| uint16_t bRxVal:1 | |
0: Use pValue as a pointer1: Use pValue as a signed offset to the start of the last committed RX entry element More... | |
| } | patternOpt |
| Options for comparison. More... | |
| struct { | |
| uint8_t triggerType:4 | |
| The type of trigger. More... | |
| uint8_t bEnaCmd:1 | |
| 0: No alternative trigger command 1: CMD_TRIGGER can be used as an alternative trigger More... | |
| uint8_t triggerNo:2 | |
| The trigger number of the CMD_TRIGGER command that triggers this action. More... | |
| uint8_t pastTrig:1 | |
| 0: A trigger in the past is never triggered, or for start of commands, give an error 1: A trigger in the past is triggered as soon as possible More... | |
| } | startTrigger |
| Identification of the trigger that starts the operation. More... | |
| struct { | |
| uint8_t rule:4 | |
| Condition for running next command: Rule for how to proceed. More... | |
| uint8_t nSkip:4 | |
| Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ... More... | |
| } | condition |
| struct { | |
| uint16_t operation:2 | |
| Operation to perform 0: True if value == compareVal1: True if value < compareVal2: True if value > compareVal3: Reserved More... | |
| uint16_t bByteRev:1 | |
| If 1, interchange the four bytes of the value, so that they are read most-significant-byte-first. More... | |
| uint16_t bBitRev:1 | |
| If 1, perform bit reversal of the value. More... | |
| uint16_t signExtend:5 | |
0: Treat value and compareVal as unsigned1–31: Treat value and compareVal as signed, where the value gives the number of the most significant bit in the signed number. More... | |
| uint16_t bRxVal:1 | |
0: Use pValue as a pointer1: Use pValue as a signed offset to the start of the last committed RX entry element More... | |
| } | patternOpt |
| Options for comparison. More... | |
Command for Checking a Value in Memory aginst a Pattern.
| uint16_t rfc_CMD_PATTERN_CHECK_s::commandNo |
The command ID number 0x0813.
| uint16_t rfc_CMD_PATTERN_CHECK_s::status |
An integer telling the status of the command. This value is updated by the radio CPU during operation and may be read by the system CPU at any time.
| rfc_radioOp_t * rfc_CMD_PATTERN_CHECK_s::pNextOp |
Pointer to the next operation to run after this operation is done.
| ratmr_t rfc_CMD_PATTERN_CHECK_s::startTime |
Absolute or relative start time (depending on the value of startTrigger)
| uint8_t rfc_CMD_PATTERN_CHECK_s::triggerType |
The type of trigger.
| uint8_t rfc_CMD_PATTERN_CHECK_s::bEnaCmd |
0: No alternative trigger command
1: CMD_TRIGGER can be used as an alternative trigger
| uint8_t rfc_CMD_PATTERN_CHECK_s::triggerNo |
The trigger number of the CMD_TRIGGER command that triggers this action.
| uint8_t rfc_CMD_PATTERN_CHECK_s::pastTrig |
0: A trigger in the past is never triggered, or for start of commands, give an error
1: A trigger in the past is triggered as soon as possible
| struct { ... } rfc_CMD_PATTERN_CHECK_s::startTrigger |
Identification of the trigger that starts the operation.
| uint8_t rfc_CMD_PATTERN_CHECK_s::rule |
Condition for running next command: Rule for how to proceed.
| uint8_t rfc_CMD_PATTERN_CHECK_s::nSkip |
Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ...
| struct { ... } rfc_CMD_PATTERN_CHECK_s::condition |
| uint16_t rfc_CMD_PATTERN_CHECK_s::operation |
Operation to perform
0: True if value == compareVal
1: True if value < compareVal
2: True if value > compareVal
3: Reserved
| uint16_t rfc_CMD_PATTERN_CHECK_s::bByteRev |
If 1, interchange the four bytes of the value, so that they are read most-significant-byte-first.
| uint16_t rfc_CMD_PATTERN_CHECK_s::bBitRev |
If 1, perform bit reversal of the value.
| uint16_t rfc_CMD_PATTERN_CHECK_s::signExtend |
0: Treat value and compareVal as unsigned
1–31: Treat value and compareVal as signed, where the value gives the number of the most significant bit in the signed number.
| uint16_t rfc_CMD_PATTERN_CHECK_s::bRxVal |
0: Use pValue as a pointer
1: Use pValue as a signed offset to the start of the last committed RX entry element
| struct { ... } rfc_CMD_PATTERN_CHECK_s::patternOpt |
Options for comparison.
| rfc_radioOp_t * rfc_CMD_PATTERN_CHECK_s::pNextOpIfOk |
Pointer to next operation if comparison result was true.
| uint8_t * rfc_CMD_PATTERN_CHECK_s::pValue |
Pointer to read from, or offset from last RX entry if patternOpt.bRxVal == 1.
| uint32_t rfc_CMD_PATTERN_CHECK_s::mask |
Bit mask to apply before comparison.
| uint32_t rfc_CMD_PATTERN_CHECK_s::compareVal |
Value to compare to.
| struct { ... } rfc_CMD_PATTERN_CHECK_s::startTrigger |
Identification of the trigger that starts the operation.
| struct { ... } rfc_CMD_PATTERN_CHECK_s::condition |
| struct { ... } rfc_CMD_PATTERN_CHECK_s::patternOpt |
Options for comparison.
| struct { ... } rfc_CMD_PATTERN_CHECK_s::startTrigger |
Identification of the trigger that starts the operation.
| struct { ... } rfc_CMD_PATTERN_CHECK_s::condition |
| struct { ... } rfc_CMD_PATTERN_CHECK_s::patternOpt |
Options for comparison.