nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_scan_abort()

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

Parameters
p_scanPointer to the sCAN driver instance.
Return values
NRF_SCAN_SUCCESSsCAN aborted successfully.
NRF_SCAN_ERROR_INVALID_STATEnrfx driver state is invalid.