![]() |
nrfxlib API 3.3.99
|
| 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.
| handle | Handle of the operation to be canceled, or NRF_MODEM_DECT_PHY_HANDLE_CANCEL_ALL to cancel all operations. |
| 0 | Request was sent to modem. |
| -NRF_EPERM | The Modem library is not initialized. |
| -NRF_EFAULT | No event handler is set. |
| -NRF_ENOMEM | Not enough shared memory for this request. |