Lines Matching refs:cc_n
317 void nhw_timer_TASK_CAPTURE(int t, unsigned int cc_n) { in nhw_timer_TASK_CAPTURE() argument
320 if (cc_n >= this->n_CCs) { in nhw_timer_TASK_CAPTURE()
323 t, cc_n, this->n_CCs); in nhw_timer_TASK_CAPTURE()
326 NRF_TIMER_regs[t].CC[cc_n] = this->Counter & mask_from_bitmode(t); in nhw_timer_TASK_CAPTURE()
329 NRF_TIMER_regs[t].CC[cc_n] = time_to_counter(Elapsed,t) & mask_from_bitmode(t); in nhw_timer_TASK_CAPTURE()
332 update_cc_timer(t, cc_n); in nhw_timer_TASK_CAPTURE()
391 static void nhw_timer_signal_COMPARE_if(uint t, uint cc_n) { in nhw_timer_signal_COMPARE_if() argument
394 if ((this->oneshot_flag[cc_n] == false) && this->NRF_TIMER_regs->ONESHOTEN[cc_n]) { in nhw_timer_signal_COMPARE_if()
398 this->oneshot_flag[cc_n] = false; in nhw_timer_signal_COMPARE_if()
399 nhw_timer_signal_COMPARE(t, cc_n); in nhw_timer_signal_COMPARE_if()
408 for (unsigned int cc_n = 0; cc_n < this->n_CCs; cc_n++) { in nhw_timer_TASK_COUNT() local
409 if (this->Counter == (NRF_TIMER_regs[t].CC[cc_n] & mask_from_bitmode(t))){ in nhw_timer_TASK_COUNT()
410 nhw_timer_signal_COMPARE_if(t, cc_n); in nhw_timer_TASK_COUNT()
441 void nhw_timer_regw_sideeffects_TASKS_CAPTURE(uint t, uint cc_n){ in nhw_timer_regw_sideeffects_TASKS_CAPTURE() argument
442 if ( NRF_TIMER_regs[t].TASKS_CAPTURE[cc_n] ){ in nhw_timer_regw_sideeffects_TASKS_CAPTURE()
443 NRF_TIMER_regs[t].TASKS_CAPTURE[cc_n] = 0; in nhw_timer_regw_sideeffects_TASKS_CAPTURE()
444 nhw_timer_TASK_CAPTURE(t,cc_n); in nhw_timer_regw_sideeffects_TASKS_CAPTURE()
466 uint cc_n = (uintptr_t)param & 0xFFFF; in nhw_timer_taskcapture_wrap() local
467 nhw_timer_TASK_CAPTURE(inst, cc_n); in nhw_timer_taskcapture_wrap()
470 void nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE(uint inst, uint cc_n) { in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE() argument
474 this->NRF_TIMER_regs->SUBSCRIBE_CAPTURE[cc_n], in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE()
475 &this->subscribed_CAPTURE[cc_n], in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE()
477 (void*)((inst << 16) + cc_n)); in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE()
533 void nhw_timer_regw_sideeffects_CC(uint t, uint cc_n) { in nhw_timer_regw_sideeffects_CC() argument
536 if (cc_n >= this->n_CCs) { in nhw_timer_regw_sideeffects_CC()
539 __func__, t, cc_n, this->n_CCs); in nhw_timer_regw_sideeffects_CC()
542 this->oneshot_flag[cc_n] = true; in nhw_timer_regw_sideeffects_CC()
545 update_cc_timer(t, cc_n); in nhw_timer_regw_sideeffects_CC()