nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ mpsl_cx_req_grant_delay_get()

uint32_t mpsl_cx_req_grant_delay_get ( void  )

#include <mpsl/include/protocol/mpsl_cx_protocol_api.h>

Get time PTA needs to respond with grant signal to request signal.

There are three ways to manage the grant signal by PTA:

  1. Keep grant signal in denied state by default and provide grant only after request. The maximum delay between request and grant signal is known.
  2. Keep grant signal in approved state by default and deny only if given request cannot be accepted. Radio is not allowed to start any operation for known time after the request signal is set. After this delay the grant signal can indicate denial anytime to prevent or to abort radio operation.
  3. Manage the granted signal constantly, even if there is no request from given radio.

This function is to be used to verify how long the user of this interface should wait from calling mpsl_cx_request (return from function) to mpsl_cx_granted_ops_get (call to function) to prevent getting false results while PTA is responding to the last request.

Return values
>0Minimal delay from setting the request signal to the time grant signal gets meaningful value. In microseconds, rounded up
0Grant signal has always meaningful value. Can be checked before, during, or after setting the request signal.