I would need to change a timer into single shot mode. My code is as follows:
static const nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(MY_SAMPLE_TIMER);
nrf_drv_timer_init(&m_timer, NULL, timerHandler)
nrf_drv_timer_extended_compare(
&m_timer, ANALOGIN_TIMER_CHANNEL, ticks, NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, true);
nrf_drv_timer_enable(&m_timer);
So, how can I change the timer to run in single shot mode? There's also app_timer system in your sdk, what is the difference compared to nrf_timer API?