Lines Matching refs:RTC_regs

474   NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc];  in nhw_rtc_update_COUNTER()  local
481 RTC_regs->COUNTER = count & RTC_COUNTER_MASK; in nhw_rtc_update_COUNTER()
483 RTC_regs->COUNTER = this->counter_at_stop & RTC_COUNTER_MASK; in nhw_rtc_update_COUNTER()
556 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc]; in nhw_rtc_TASKS_CAPTURE() local
559 RTC_regs->CC[cc_n] = RTC_regs->COUNTER; in nhw_rtc_TASKS_CAPTURE()
603 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc]; in nhw_rtc_signal_COMPARE() local
606 if (RTC_regs->SHORTS & (RTC_SHORTS_COMPARE0_CLEAR_Msk << cc)) { in nhw_rtc_signal_COMPARE()
616 if (!((RTC_regs->EVTEN | this->INTEN) & mask)) { in nhw_rtc_signal_COMPARE()
620 RTC_regs->EVENTS_COMPARE[cc] = 1; in nhw_rtc_signal_COMPARE()
622 if (RTC_regs->EVTEN & mask) { in nhw_rtc_signal_COMPARE()
640 RTC_regs->PUBLISH_COMPARE[cc]); in nhw_rtc_signal_COMPARE()
650 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc]; in nhw_rtc_signal_OVERFLOW() local
652 if (!((RTC_regs->EVTEN | this->INTEN) & RTC_EVTEN_OVRFLW_Msk)) { in nhw_rtc_signal_OVERFLOW()
656 RTC_regs->EVENTS_OVRFLW = 1; in nhw_rtc_signal_OVERFLOW()
658 if (RTC_regs->EVTEN & RTC_EVTEN_OVRFLW_Msk) { in nhw_rtc_signal_OVERFLOW()
675 RTC_regs->PUBLISH_OVRFLW); in nhw_rtc_signal_OVERFLOW()
686 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc]; in nhw_rtc_signal_TICK() local
688 if (!((RTC_regs->EVTEN | this->INTEN) & RTC_EVTEN_TICK_Msk)) { in nhw_rtc_signal_TICK()
692 RTC_regs->EVENTS_TICK = 1; in nhw_rtc_signal_TICK()
694 if (RTC_regs->EVTEN & RTC_EVTEN_TICK_Msk) { in nhw_rtc_signal_TICK()
711 RTC_regs->PUBLISH_TICK); in nhw_rtc_signal_TICK()
719 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_TASKS_START() local
721 if (RTC_regs->TASKS_START) { in nhw_rtc_regw_sideeffect_TASKS_START()
722 RTC_regs->TASKS_START = 0; in nhw_rtc_regw_sideeffect_TASKS_START()
728 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_TASKS_STOP() local
730 if (RTC_regs->TASKS_STOP) { in nhw_rtc_regw_sideeffect_TASKS_STOP()
731 RTC_regs->TASKS_STOP = 0; in nhw_rtc_regw_sideeffect_TASKS_STOP()
737 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_TASKS_CLEAR() local
739 if (RTC_regs->TASKS_CLEAR) { in nhw_rtc_regw_sideeffect_TASKS_CLEAR()
740 RTC_regs->TASKS_CLEAR = 0; in nhw_rtc_regw_sideeffect_TASKS_CLEAR()
746 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_TASKS_TRIGOVRFLW() local
748 if (RTC_regs->TASKS_TRIGOVRFLW) { in nhw_rtc_regw_sideeffect_TASKS_TRIGOVRFLW()
749 RTC_regs->TASKS_TRIGOVRFLW = 0; in nhw_rtc_regw_sideeffect_TASKS_TRIGOVRFLW()
756 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_TASKS_CAPTURE() local
758 if (RTC_regs->TASKS_CAPTURE[cc]) { in nhw_rtc_regw_sideeffect_TASKS_CAPTURE()
759 RTC_regs->TASKS_CAPTURE[cc] = 0; in nhw_rtc_regw_sideeffect_TASKS_CAPTURE()
810 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc]; in NHW_RTC_REGW_SIDEFFECTS_SUBSCRIBE() local
812 if ( RTC_regs->INTENSET ){ in NHW_RTC_REGW_SIDEFFECTS_SUBSCRIBE()
813 this->INTEN |= RTC_regs->INTENSET; in NHW_RTC_REGW_SIDEFFECTS_SUBSCRIBE()
814 RTC_regs->INTENSET = this->INTEN; in NHW_RTC_REGW_SIDEFFECTS_SUBSCRIBE()
824 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[rtc]; in nhw_rtc_regw_sideeffect_INTENCLR() local
826 if ( RTC_regs->INTENCLR ){ in nhw_rtc_regw_sideeffect_INTENCLR()
827 this->INTEN &= ~RTC_regs->INTENCLR; in nhw_rtc_regw_sideeffect_INTENCLR()
828 RTC_regs->INTENSET = this->INTEN; in nhw_rtc_regw_sideeffect_INTENCLR()
829 RTC_regs->INTENCLR = 0; in nhw_rtc_regw_sideeffect_INTENCLR()
836 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_EVTENSET() local
838 if ( RTC_regs->EVTENSET ){ in nhw_rtc_regw_sideeffect_EVTENSET()
839 RTC_regs->EVTEN |= RTC_regs->EVTENSET; in nhw_rtc_regw_sideeffect_EVTENSET()
840 RTC_regs->EVTENSET = RTC_regs->EVTEN; in nhw_rtc_regw_sideeffect_EVTENSET()
841 check_not_supported_TICK(RTC_regs->EVTEN); in nhw_rtc_regw_sideeffect_EVTENSET()
846 NRF_RTC_Type *RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_regw_sideeffect_EVTENCLR() local
848 if ( RTC_regs->EVTENCLR ){ in nhw_rtc_regw_sideeffect_EVTENCLR()
849 RTC_regs->EVTEN &= ~RTC_regs->EVTENCLR; in nhw_rtc_regw_sideeffect_EVTENCLR()
850 RTC_regs->EVTENSET = RTC_regs->EVTEN; in nhw_rtc_regw_sideeffect_EVTENCLR()
851 RTC_regs->EVTENCLR = 0; in nhw_rtc_regw_sideeffect_EVTENCLR()