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

◆ nrf_semmc_abort()

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

Parameters
p_semmcPointer to the eMMC driver instance.
Return values
NRF_SEMMC_SUCCESSOperation aborted successfully.
NRF_SEMMC_ERROR_INVALID_PARAMInvalid or NULL parameter provided.
NRF_SEMMC_ERROR_HW_FAULTHardware reset failed.
NRF_SEMMC_ERROR_INTERNALInternal error during abort.