#include <softperipheral/sCAN/include/nrf_scan.h>
Initialize the sCAN driver for a given instance.
- Note
- The GPIO pins required for sCAN operation must be properly configured by the API user before calling this function.
- Parameters
-
| [in] | p_scan | Pointer to the sCAN driver instance to initialize. |
| [in] | handler | Event handler callback function. |
| [in] | p_context | User context passed to the event handler. |
- Return values
-
| NRF_SCAN_SUCCESS | Initialization successful. |
| NRF_SCAN_UNSUPPORTED | feature unsupported. |
| NRF_SCAN_ERROR_INVALID_PARAM | Invalid or NULL parameter provided. |
| NRF_SCAN_ERROR_INVALID_STATE | nrfx driver state is invalid. |
| NRF_SCAN_ERROR_BUSY | sCAN driver is busy |