SWCU185G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
A scannable undirected advertiser operation is started by a CMD_BLE_ADV_SCAN command. In the command structure, it shall have a pParams parameter of the type defined in Table 26-98 and a pOutput parameter of the type defined in Table 26-110. The operation starts with transmission operation and operates as described in Section 26.8.8.
A scannable undirected advertiser operation shall end with one of the statuses listed in Table 26-138. The status field of the command structure after the operation is ended indicates the reason why the operation ended. In all cases, a Command_Done interrupt is raised. In each case, the result of TRUE, FALSE, or ABORT is indicated, which will decide the next action.
Condition | Status Code | Result |
---|---|---|
Performed Action 1 after running receiver | BLE_DONE_OK | TRUE |
Performed Action 2 and transmitted SCAN_RSP | BLE_DONE_OK | TRUE |
Performed Action 3 after running receiver | BLE_DONE_RXERR | TRUE |
Performed Action 5 after running receiver | BLE_DONE_NOSYNC | TRUE |
Observed trigger indicated by pParams->endTrigger, then performed Actions 1, 2, 3, or 5 | BLE_DONE_ENDED | FALSE |
Observed CMD_STOP, then performed Actions 1, 2, 3, or 5 | BLE_DONE_STOPPED | FALSE |
Received CMD_ABORT | BLE_DONE_ABORT | ABORT |
No space in RX buffer to store received packet | BLE_ERROR_RXBUF | FALSE |
Illegal value of channel | BLE_ERROR_PAR | ABORT |
Advertising data or scan response data length field has illegal value | BLE_ERROR_PAR | ABORT |