SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
Command ID number: 0x080B
CMD_COUNT 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-30.
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. |
When starting, the radio CPU decrements the counter field by 1 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, which can be used in conditional execution to create a loop.
If the operation is started with counter equal to zero, this is an illegal parameter, so the operation ends with the status ERROR_PAR.
The operation ends by one of the causes listed in Table 26-26 or Table 26-31.
Condition | Status Code | Result |
---|---|---|
Finished operation with counter > 0 | DONE_OK | TRUE |
Finished operation with counter = 0 | DONE_COUNTDOWN | FALSE |