![]() |
nrfxlib API 3.3.99
|
| 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.
| [out] | p_semmc | Pointer to the eMMC driver instance to initialize. |
| [in] | handler | Event handler callback function. |
| [in] | p_context | User context passed to the event handler. |
| NRF_SEMMC_SUCCESS | Initialization successful. |
| NRF_SEMMC_ERROR_INVALID_PARAM | Invalid or NULL parameter provided. |
| NRF_SEMMC_ERROR_HW_FAULT | Hardware initialization failed. |
| NRF_SEMMC_ERROR_INTERNAL | Internal error during initialization. |