![]() |
nrfxlib API 3.3.99
|
| nrf_semmc_error_t nrf_semmc_abort | ( | nrf_semmc_t const * | p_semmc | ) |
#include <softperipheral/sEMMC/include/nrf_semmc.h>
Abort any ongoing eMMC operation.
This function forcibly terminates any pending eMMC command or data transfer 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 commands.
Called by nrf_semmc_disable if there is an ongoing transfer
| p_semmc | Pointer to the eMMC driver instance. |
| NRF_SEMMC_SUCCESS | Operation aborted successfully. |
| NRF_SEMMC_ERROR_INVALID_PARAM | Invalid or NULL parameter provided. |
| NRF_SEMMC_ERROR_HW_FAULT | Hardware reset failed. |
| NRF_SEMMC_ERROR_INTERNAL | Internal error during abort. |