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

◆ nrf_scan_init()

nrf_scan_error_t nrf_scan_init ( nrf_scan_t const * p_scan,
nrf_scan_event_handler_t handler,
void * p_context )

#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_scanPointer to the sCAN driver instance to initialize.
[in]handlerEvent handler callback function.
[in]p_contextUser context passed to the event handler.
Return values
NRF_SCAN_SUCCESSInitialization successful.
NRF_SCAN_UNSUPPORTEDfeature unsupported.
NRF_SCAN_ERROR_INVALID_PARAMInvalid or NULL parameter provided.
NRF_SCAN_ERROR_INVALID_STATEnrfx driver state is invalid.
NRF_SCAN_ERROR_BUSYsCAN driver is busy