This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5340 unable set the DPPI subscribe configuration for RTC SUBSCRIBE_CAPTURE[n] task.

I'm trying to use this API: NRF_STATIC_INLINE void nrf_rtc_subscribe_set(NRF_RTC_Type * p_reg, nrf_rtc_task_t task, uint8_t channel) to set DPPI subscribe configuration for RTC1 instance.

Unfortunately I'm unable to set subscribe for RTC SUBSCRIBE_CAPTURE[n] task as the API accepts nrf_rtc_task_t param type which looks like below:

/** @brief RTC tasks. */
typedef enum
{
    NRF_RTC_TASK_START            = offsetof(NRF_RTC_Type,TASKS_START),     /**< Start. */
    NRF_RTC_TASK_STOP             = offsetof(NRF_RTC_Type,TASKS_STOP),      /**< Stop. */
    NRF_RTC_TASK_CLEAR            = offsetof(NRF_RTC_Type,TASKS_CLEAR),     /**< Clear. */
    NRF_RTC_TASK_TRIGGER_OVERFLOW = offsetof(NRF_RTC_Type,TASKS_TRIGOVRFLW),/**< Trigger overflow. */
} nrf_rtc_task_t;

What is the reason nrf_rtc_task_t does not cover RTC SUBSCRIBE_CAPTURE[n] and some other tasks ?

Related