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

◆ nrf_modem_dect_phy_cancel()

int nrf_modem_dect_phy_cancel ( uint32_t handle)

#include <nrf_modem/include/nrf_modem_dect_phy.h>

Cancel an operation.

Cancel an ongoing operation or an operation scheduled to be executed.

This operation is performed asynchronously. Completion of this operation is indicated by the NRF_MODEM_DECT_PHY_EVT_CANCELED event.

When an operation is canceled, a NRF_MODEM_DECT_PHY_EVT_COMPLETED event is sent to the application. If the operation is canceled while it is executing, the event reports that the operation completed successfully. If the operation was scheduled but not yet executing, the NRF_MODEM_DECT_PHY_EVT_COMPLETED event will indicate the status as NRF_MODEM_DECT_PHY_ERR_OP_CANCELED.

Parameters
handleHandle of the operation to be canceled, or NRF_MODEM_DECT_PHY_HANDLE_CANCEL_ALL to cancel all operations.
Return values
0Request was sent to modem.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EFAULTNo event handler is set.
-NRF_ENOMEMNot enough shared memory for this request.