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

◆ nrf_semmc_init()

nrf_semmc_error_t nrf_semmc_init ( nrf_semmc_t const * p_semmc,
nrf_semmc_event_handler_t handler,
void * p_context )

#include <softperipheral/sEMMC/include/nrf_semmc.h>

Initialize the eMMC controller driver for a given instance.

The data buffer pointed by p_semmc is managed by the API user. It must be valid as long as the device driver is initialized and used. After the device driver finishes all its operations and the controller is disabled, the buffer can be freed.

Note
The GPIO pins required for eMMC operation must be properly configured by the API user before calling this function.
Parameters
[out]p_semmcPointer to the eMMC driver instance to initialize.
[in]handlerEvent handler callback function.
[in]p_contextUser context passed to the event handler.
Return values
NRF_SEMMC_SUCCESSInitialization successful.
NRF_SEMMC_ERROR_INVALID_PARAMInvalid or NULL parameter provided.
NRF_SEMMC_ERROR_HW_FAULTHardware initialization failed.
NRF_SEMMC_ERROR_INTERNALInternal error during initialization.