![]() |
nrfxlib API 3.3.99
|
| nrf_scan_error_t nrf_scan_abort | ( | nrf_scan_t const * | p_scan | ) |
#include <softperipheral/sCAN/include/nrf_scan.h>
Abort any ongoing sCAN operation.
This function forcibly terminates any pending sCAN TX/RX operations. It should be used as a recovery mechanism when a command has timed out or the driver appears to be in a stuck state.
After calling this function, the driver will attempt to reset internal state and hardware, making it ready to accept new TX/RX operations. This operation will set sCAN state to STOPPED and reset its internal REC and TEC.
This function is called by nrf_scan_disable
| p_scan | Pointer to the sCAN driver instance. |
| NRF_SCAN_SUCCESS | sCAN aborted successfully. |
| NRF_SCAN_ERROR_INVALID_STATE | nrfx driver state is invalid. |