SWCU185G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
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 |