SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
The abort background-level operation command is a foreground-level command that stops the command running in the background. The abort background-level operation command is defined as a foreground-operation command so that it has a start time, and so that it can be chained with other foreground-operation commands. The command is executed with the CMD_IEEE_ABORT_BG command and uses a command structure with only the minimum set of parameters.
At the start of an abort background-level operation, the radio CPU waits for the start trigger, then aborts the ongoing background-level receive or energy-detect scan operation.
The operation may be stopped by a command while waiting for the start trigger. The commands that can stop the operation are CMD_ABORT, CMD_STOP, CMD_IEEE_ABORT_FG, and CMD_IEEE_STOP_FG. The first two cause the background-level operation to stop regardless.
An abort background-level operation ends due to one of the causes listed in Table 26-88. The status field of the command structure after the command has ended indicates the reason why the operation ended. In all cases, an FG_COMMAND_DONE interrupt is raised. In each case, it is indicated if the result is TRUE, FALSE, or ABORT. This indicates whether to start the next command (if any) in pNextOp, or to return to an IDLE state.
Condition | Status Code | Result |
---|---|---|
Background level aborted | IEEE_DONE_OK | TRUE |
Received CMD_STOP or CMD_IEEE_STOP_FG | IEEE_DONE_STOPPED | FALSE |
Received CMD_ABORT or CMD_IEEEE_ABORT_FG | IEEE_DONE_ABORT | ABORT |