SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
Command ID number: 0x0812
CMD_COUNT_BRANCH is a radio operation command. In addition to the parameters listed in Table 26-9, the command structure contains the fields listed in Table 26-34.
Byte Index | Field Name | Bits | Bit Field Name | Type | Description |
---|---|---|---|---|---|
14–15 | counter | R/W | Counter When starting, the radio CPU decrements the value, and the end status of the operation differs if the result is zero. | ||
16–19 | pNextOpIfOk | W | Pointer to next operation if counter did not expire. |
When starting, 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 the status DONE_COUNTDOWN and the result FALSE. Otherwise, the operation ends with the status DONE_OK and the result TRUE. In this case, the next radio operation command to run is given by pNextOpIfOk instead of pNextOp (see Table 26-9), which can be used in conditional execution to create a loop.
If the operation is started with the counter equal to zero, the operation ends with the 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 Table 26-14 or Table 26-35.
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 |
Finished operation with counter = 0 after decrementing | DONE_COUNTDOWN | FALSE |