Lines Matching refs:p_reg
45 NRFY_STATIC_INLINE void __nrfy_internal_grtc_event_enabled_clear(NRF_GRTC_Type * p_reg,
49 NRFY_STATIC_INLINE bool __nrfy_internal_grtc_event_handle(NRF_GRTC_Type * p_reg,
54 NRFY_STATIC_INLINE uint32_t __nrfy_internal_grtc_events_process(NRF_GRTC_Type * p_reg,
58 NRFY_STATIC_INLINE uint64_t __nrfy_internal_grtc_rt_counter_read(NRF_GRTC_Type const * p_reg);
61 NRFY_STATIC_INLINE bool __nrfy_internal_grtc_sys_counter_ready_check(NRF_GRTC_Type const * p_reg);
146 NRFY_STATIC_INLINE void nrfy_grtc_int_init(NRF_GRTC_Type * p_reg, in nrfy_grtc_int_init() argument
154 __nrfy_internal_grtc_event_enabled_clear(p_reg, mask, event); in nrfy_grtc_int_init()
157 __nrfy_internal_grtc_event_enabled_clear(p_reg, mask, NRF_GRTC_EVENT_RTCOMPARE); in nrfy_grtc_int_init()
158 __nrfy_internal_grtc_event_enabled_clear(p_reg, mask, NRF_GRTC_EVENT_RTCOMPARESYNC); in nrfy_grtc_int_init()
166 nrf_grtc_int_enable(p_reg, mask); in nrfy_grtc_int_init()
176 NRFY_STATIC_INLINE void nrfy_grtc_int_uninit(NRF_GRTC_Type * p_reg) in nrfy_grtc_int_uninit() argument
178 (void)p_reg; in nrfy_grtc_int_uninit()
192 NRFY_STATIC_INLINE uint32_t nrfy_grtc_events_process(NRF_GRTC_Type * p_reg, in nrfy_grtc_events_process() argument
195 uint32_t evt_mask = __nrfy_internal_grtc_events_process(p_reg, mask); in nrfy_grtc_events_process()
211 NRFY_STATIC_INLINE void nrfy_grtc_prepare(NRF_GRTC_Type * p_reg, bool busy_wait) in nrfy_grtc_prepare() argument
214 nrf_grtc_clksel_set(p_reg, NRF_GRTC_CLKSEL_LFCLK); in nrfy_grtc_prepare()
216 nrf_grtc_sys_counter_set(p_reg, false); in nrfy_grtc_prepare()
219 nrf_grtc_shorts_disable(p_reg, NRF_GRTC_SHORT_RTCOMPARE_CLEAR_MASK); in nrfy_grtc_prepare()
221 nrf_grtc_int_disable(p_reg, NRF_GRTC_INTEN_MASK); in nrfy_grtc_prepare()
224 nrf_grtc_publish_clear(p_reg, nrf_grtc_sys_counter_compare_event_get(cc_channel)); in nrfy_grtc_prepare()
225 nrf_grtc_subscribe_clear(p_reg, nrf_grtc_sys_counter_capture_task_get(cc_channel)); in nrfy_grtc_prepare()
228 nrf_grtc_publish_clear(p_reg, NRF_GRTC_EVENT_RTCOMPARE); in nrfy_grtc_prepare()
231 nrf_grtc_task_trigger(p_reg, NRF_GRTC_TASK_CLEAR); in nrfy_grtc_prepare()
234 nrf_grtc_task_trigger(p_reg, NRF_GRTC_TASK_START); in nrfy_grtc_prepare()
241 while (__nrfy_internal_grtc_rt_counter_read(p_reg) > 1ULL) in nrfy_grtc_prepare()
245 uint64_t t = __nrfy_internal_grtc_rt_counter_read(p_reg); in nrfy_grtc_prepare()
246 while (__nrfy_internal_grtc_rt_counter_read(p_reg) == t) in nrfy_grtc_prepare()
267 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_start(NRF_GRTC_Type * p_reg, bool busy_wait) in nrfy_grtc_sys_counter_start() argument
269 nrf_grtc_sys_counter_set(p_reg, true); in nrfy_grtc_sys_counter_start()
275 active = nrf_grtc_sys_counter_active_check(p_reg); in nrfy_grtc_sys_counter_start()
279 nrf_grtc_sys_counter_active_set(p_reg, true); in nrfy_grtc_sys_counter_start()
283 active = nrf_grtc_sys_counter_active_state_request_check(p_reg); in nrfy_grtc_sys_counter_start()
287 nrf_grtc_sys_counter_active_state_request_set(p_reg, true); in nrfy_grtc_sys_counter_start()
291 while (!__nrfy_internal_grtc_sys_counter_ready_check(p_reg)) in nrfy_grtc_sys_counter_start()
297 nrf_grtc_sys_counter_active_set(p_reg, false); in nrfy_grtc_sys_counter_start()
299 nrf_grtc_sys_counter_active_state_request_set(p_reg, true); in nrfy_grtc_sys_counter_start()
315 NRFY_STATIC_INLINE uint64_t nrfy_grtc_sys_counter_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_sys_counter_get() argument
321 counter = nrf_grtc_sys_counter_get(p_reg); in nrfy_grtc_sys_counter_get()
328 counter_l = nrf_grtc_sys_counter_low_get(p_reg); in nrfy_grtc_sys_counter_get()
330 counter_h = nrf_grtc_sys_counter_high_get(p_reg); in nrfy_grtc_sys_counter_get()
344 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_ready_check(NRF_GRTC_Type const * p_reg) in nrfy_grtc_sys_counter_ready_check() argument
346 return __nrfy_internal_grtc_sys_counter_ready_check(p_reg); in nrfy_grtc_sys_counter_ready_check()
357 NRFY_STATIC_INLINE uint64_t nrfy_grtc_rt_counter_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_rt_counter_get() argument
359 return __nrfy_internal_grtc_rt_counter_read(p_reg); in nrfy_grtc_rt_counter_get()
373 void nrfy_grtc_sys_counter_compare_event_int_clear_enable(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_compare_event_int_clear_enable() argument
381 nrf_grtc_event_clear(p_reg, event); in nrfy_grtc_sys_counter_compare_event_int_clear_enable()
383 nrf_grtc_int_enable(p_reg, NRFY_EVENT_TO_INT_BITMASK(event)); in nrfy_grtc_sys_counter_compare_event_int_clear_enable()
385 nrf_grtc_sys_counter_compare_event_enable(p_reg, channel); in nrfy_grtc_sys_counter_compare_event_int_clear_enable()
398 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_compare_event_check(NRF_GRTC_Type const * p_reg, in nrfy_grtc_sys_counter_compare_event_check() argument
402 bool check = nrf_grtc_event_check(p_reg, nrf_grtc_sys_counter_compare_event_get(cc_channel)); in nrfy_grtc_sys_counter_compare_event_check()
413 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_compare_event_clear(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_compare_event_clear() argument
416 nrf_grtc_event_clear(p_reg, nrf_grtc_sys_counter_compare_event_get(cc_channel)); in nrfy_grtc_sys_counter_compare_event_clear()
428 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_capture_subscribe_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_capture_subscribe_set() argument
432 nrf_grtc_subscribe_set(p_reg, nrf_grtc_sys_counter_capture_task_get(cc_channel), channel); in nrfy_grtc_sys_counter_capture_subscribe_set()
443 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_capture_subscribe_clear(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_capture_subscribe_clear() argument
446 nrf_grtc_subscribe_clear(p_reg, nrf_grtc_sys_counter_capture_task_get(cc_channel)); in nrfy_grtc_sys_counter_capture_subscribe_clear()
458 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_compare_publish_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_compare_publish_set() argument
462 nrf_grtc_publish_set(p_reg, nrf_grtc_sys_counter_compare_event_get(cc_channel), channel); in nrfy_grtc_sys_counter_compare_publish_set()
473 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_compare_publish_clear(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_compare_publish_clear() argument
476 nrf_grtc_publish_clear(p_reg, nrf_grtc_sys_counter_compare_event_get(cc_channel)); in nrfy_grtc_sys_counter_compare_publish_clear()
481 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_cc_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_cc_set() argument
485 nrf_grtc_sys_counter_cc_set(p_reg, cc_channel, cc_value); in nrfy_grtc_sys_counter_cc_set()
490 NRFY_STATIC_INLINE uint64_t nrfy_grtc_sys_counter_cc_get(NRF_GRTC_Type const * p_reg, in nrfy_grtc_sys_counter_cc_get() argument
494 uint64_t cc = nrf_grtc_sys_counter_cc_get(p_reg, cc_channel); in nrfy_grtc_sys_counter_cc_get()
500 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_cc_add_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_cc_add_set() argument
505 nrf_grtc_sys_counter_cc_add_set(p_reg, cc_channel, value, reference); in nrfy_grtc_sys_counter_cc_add_set()
511 NRFY_STATIC_INLINE void nrfy_grtc_rt_counter_cc_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_rt_counter_cc_set() argument
515 nrf_grtc_rt_counter_cc_set(p_reg, cc_value, sync); in nrfy_grtc_rt_counter_cc_set()
520 NRFY_STATIC_INLINE uint64_t nrfy_grtc_rt_counter_cc_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_rt_counter_cc_get() argument
523 uint64_t cc = nrf_grtc_rt_counter_cc_get(p_reg); in nrfy_grtc_rt_counter_cc_get()
530 NRFY_STATIC_INLINE void nrfy_grtc_int_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrfy_grtc_int_enable() argument
532 nrf_grtc_int_enable(p_reg, mask); in nrfy_grtc_int_enable()
537 NRFY_STATIC_INLINE void nrfy_grtc_int_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrfy_grtc_int_disable() argument
539 nrf_grtc_int_disable(p_reg, mask); in nrfy_grtc_int_disable()
544 NRFY_STATIC_INLINE uint32_t nrfy_grtc_int_enable_check(NRF_GRTC_Type const * p_reg, uint32_t mask) in nrfy_grtc_int_enable_check() argument
547 uint32_t check = nrf_grtc_int_enable_check(p_reg, mask); in nrfy_grtc_int_enable_check()
553 NRFY_STATIC_INLINE uint32_t nrfy_grtc_int_pending_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_int_pending_get() argument
556 uint32_t pending = nrf_grtc_int_pending_get(p_reg); in nrfy_grtc_int_pending_get()
563 NRFY_STATIC_INLINE void nrfy_grtc_shorts_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrfy_grtc_shorts_enable() argument
565 nrf_grtc_shorts_enable(p_reg, mask); in nrfy_grtc_shorts_enable()
570 NRFY_STATIC_INLINE void nrfy_grtc_shorts_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrfy_grtc_shorts_disable() argument
572 nrf_grtc_shorts_disable(p_reg, mask); in nrfy_grtc_shorts_disable()
577 NRFY_STATIC_INLINE void nrfy_grtc_shorts_set(NRF_GRTC_Type * p_reg, uint32_t mask) in nrfy_grtc_shorts_set() argument
579 nrf_grtc_shorts_set(p_reg, mask); in nrfy_grtc_shorts_set()
585 NRFY_STATIC_INLINE void nrfy_grtc_subscribe_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_subscribe_set() argument
589 nrf_grtc_subscribe_set(p_reg, task, channel); in nrfy_grtc_subscribe_set()
594 NRFY_STATIC_INLINE void nrfy_grtc_subscribe_clear(NRF_GRTC_Type * p_reg, nrf_grtc_task_t task) in nrfy_grtc_subscribe_clear() argument
596 nrf_grtc_subscribe_clear(p_reg, task); in nrfy_grtc_subscribe_clear()
601 NRFY_STATIC_INLINE void nrfy_grtc_publish_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_publish_set() argument
605 nrf_grtc_publish_set(p_reg, event, channel); in nrfy_grtc_publish_set()
610 NRFY_STATIC_INLINE void nrfy_grtc_publish_clear(NRF_GRTC_Type * p_reg, nrf_grtc_event_t event) in nrfy_grtc_publish_clear() argument
612 nrf_grtc_publish_clear(p_reg, event); in nrfy_grtc_publish_clear()
617 NRFY_STATIC_INLINE bool nrfy_grtc_event_check(NRF_GRTC_Type const * p_reg, nrf_grtc_event_t event) in nrfy_grtc_event_check() argument
620 bool check = nrf_grtc_event_check(p_reg, event); in nrfy_grtc_event_check()
626 NRFY_STATIC_INLINE void nrfy_grtc_event_clear(NRF_GRTC_Type * p_reg, nrf_grtc_event_t event) in nrfy_grtc_event_clear() argument
628 nrf_grtc_event_clear(p_reg, event); in nrfy_grtc_event_clear()
633 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_overflow_check(NRF_GRTC_Type const * p_reg) in nrfy_grtc_sys_counter_overflow_check() argument
636 bool check = nrf_grtc_sys_counter_overflow_check(p_reg); in nrfy_grtc_sys_counter_overflow_check()
642 NRFY_STATIC_INLINE uint32_t nrfy_grtc_event_address_get(NRF_GRTC_Type const * p_reg, in nrfy_grtc_event_address_get() argument
645 return nrf_grtc_event_address_get(p_reg, event); in nrfy_grtc_event_address_get()
649 NRFY_STATIC_INLINE uint32_t nrfy_grtc_task_address_get(NRF_GRTC_Type const * p_reg, in nrfy_grtc_task_address_get() argument
652 return nrf_grtc_task_address_get(p_reg, task); in nrfy_grtc_task_address_get()
656 NRFY_STATIC_INLINE void nrfy_grtc_task_trigger(NRF_GRTC_Type * p_reg, nrf_grtc_task_t task) in nrfy_grtc_task_trigger() argument
658 nrf_grtc_task_trigger(p_reg, task); in nrfy_grtc_task_trigger()
669 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_compare_event_enable(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_compare_event_enable() argument
672 nrf_grtc_sys_counter_compare_event_enable(p_reg, cc_channel); in nrfy_grtc_sys_counter_compare_event_enable()
677 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_compare_event_disable(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_compare_event_disable() argument
680 nrf_grtc_sys_counter_compare_event_disable(p_reg, cc_channel); in nrfy_grtc_sys_counter_compare_event_disable()
691 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_cc_enable_check(NRF_GRTC_Type const * p_reg, in nrfy_grtc_sys_counter_cc_enable_check() argument
695 bool check = nrf_grtc_sys_counter_cc_enable_check(p_reg, cc_channel); in nrfy_grtc_sys_counter_cc_enable_check()
702 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_set(NRF_GRTC_Type * p_reg, bool enable) in nrfy_grtc_sys_counter_set() argument
704 nrf_grtc_sys_counter_set(p_reg, enable); in nrfy_grtc_sys_counter_set()
709 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_auto_mode_set(NRF_GRTC_Type * p_reg, bool enable) in nrfy_grtc_sys_counter_auto_mode_set() argument
711 nrf_grtc_sys_counter_auto_mode_set(p_reg, enable); in nrfy_grtc_sys_counter_auto_mode_set()
716 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_auto_mode_check(NRF_GRTC_Type * p_reg) in nrfy_grtc_sys_counter_auto_mode_check() argument
719 bool check = nrf_grtc_sys_counter_auto_mode_check(p_reg); in nrfy_grtc_sys_counter_auto_mode_check()
727 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_active_set(NRF_GRTC_Type * p_reg, bool enable) in nrfy_grtc_sys_counter_active_set() argument
729 nrf_grtc_sys_counter_active_set(p_reg, enable); in nrfy_grtc_sys_counter_active_set()
734 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_active_check(NRF_GRTC_Type const * p_reg) in nrfy_grtc_sys_counter_active_check() argument
737 bool check = nrf_grtc_sys_counter_active_check(p_reg); in nrfy_grtc_sys_counter_active_check()
744 NRFY_STATIC_INLINE bool nrfy_grtc_sys_counter_check(NRF_GRTC_Type * p_reg) in nrfy_grtc_sys_counter_check() argument
746 return nrf_grtc_sys_counter_check(p_reg); in nrfy_grtc_sys_counter_check()
751 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_active_state_request_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_sys_counter_active_state_request_set() argument
754 nrf_grtc_sys_counter_active_state_request_set(p_reg, enable); in nrfy_grtc_sys_counter_active_state_request_set()
760 bool nrfy_grtc_sys_counter_active_state_request_check(NRF_GRTC_Type const * p_reg) in nrfy_grtc_sys_counter_active_state_request_check() argument
763 bool check = nrf_grtc_sys_counter_active_state_request_check(p_reg); in nrfy_grtc_sys_counter_active_state_request_check()
770 uint32_t nrfy_grtc_sys_counter_active_state_request_get(NRF_GRTC_Type const * p_reg, in nrfy_grtc_sys_counter_active_state_request_get() argument
774 uint32_t request = nrf_grtc_sys_counter_active_state_request_get(p_reg, mask); in nrfy_grtc_sys_counter_active_state_request_get()
782 NRFY_STATIC_INLINE void nrfy_grtc_sys_counter_interval_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrfy_grtc_sys_counter_interval_set() argument
784 nrf_grtc_sys_counter_interval_set(p_reg, value); in nrfy_grtc_sys_counter_interval_set()
789 NRFY_STATIC_INLINE uint32_t nrfy_grtc_sys_counter_interval_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_sys_counter_interval_get() argument
792 uint32_t interval = nrf_grtc_sys_counter_interval_get(p_reg); in nrfy_grtc_sys_counter_interval_get()
798 NRFY_STATIC_INLINE void nrfy_grtc_timeout_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrfy_grtc_timeout_set() argument
800 nrf_grtc_timeout_set(p_reg, value); in nrfy_grtc_timeout_set()
805 NRFY_STATIC_INLINE uint32_t nrfy_grtc_timeout_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_timeout_get() argument
808 uint32_t timeout = nrf_grtc_timeout_get(p_reg); in nrfy_grtc_timeout_get()
814 NRFY_STATIC_INLINE void nrfy_grtc_waketime_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrfy_grtc_waketime_set() argument
816 nrf_grtc_waketime_set(p_reg, value); in nrfy_grtc_waketime_set()
821 NRFY_STATIC_INLINE uint32_t nrfy_grtc_waketime_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_waketime_get() argument
824 uint32_t waketime = nrf_grtc_waketime_get(p_reg); in nrfy_grtc_waketime_get()
832 NRFY_STATIC_INLINE void nrfy_grtc_pwm_compare_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrfy_grtc_pwm_compare_set() argument
834 nrf_grtc_pwm_compare_set(p_reg, value); in nrfy_grtc_pwm_compare_set()
839 NRFY_STATIC_INLINE uint32_t nrfy_grtc_pwm_compare_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_pwm_compare_get() argument
842 uint32_t compare = nrf_grtc_pwm_compare_get(p_reg); in nrfy_grtc_pwm_compare_get()
850 NRFY_STATIC_INLINE void nrfy_grtc_clkout_set(NRF_GRTC_Type * p_reg, in nrfy_grtc_clkout_set() argument
854 nrf_grtc_clkout_set(p_reg, clkout, enable); in nrfy_grtc_clkout_set()
859 NRFY_STATIC_INLINE bool nrfy_grtc_clkout_enable_check(NRF_GRTC_Type const * p_reg, in nrfy_grtc_clkout_enable_check() argument
863 bool check = nrf_grtc_clkout_enable_check(p_reg, clkout); in nrfy_grtc_clkout_enable_check()
869 NRFY_STATIC_INLINE void nrfy_grtc_clkout_divider_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrfy_grtc_clkout_divider_set() argument
871 nrf_grtc_clkout_divider_set(p_reg, value); in nrfy_grtc_clkout_divider_set()
876 NRFY_STATIC_INLINE uint32_t nrfy_grtc_clkout_divider_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_clkout_divider_get() argument
879 uint32_t divider = nrf_grtc_clkout_divider_get(p_reg); in nrfy_grtc_clkout_divider_get()
887 NRFY_STATIC_INLINE void nrfy_grtc_clksel_set(NRF_GRTC_Type * p_reg, nrf_grtc_clksel_t clksel) in nrfy_grtc_clksel_set() argument
889 nrf_grtc_clksel_set(p_reg, clksel); in nrfy_grtc_clksel_set()
894 NRFY_STATIC_INLINE nrf_grtc_clksel_t nrfy_grtc_clksel_get(NRF_GRTC_Type const * p_reg) in nrfy_grtc_clksel_get() argument
897 nrf_grtc_clksel_t clksel = nrf_grtc_clksel_get(p_reg); in nrfy_grtc_clksel_get()
905 NRFY_STATIC_INLINE void __nrfy_internal_grtc_event_enabled_clear(NRF_GRTC_Type * p_reg, in __nrfy_internal_grtc_event_enabled_clear() argument
911 nrf_grtc_event_clear(p_reg, event); in __nrfy_internal_grtc_event_enabled_clear()
915 NRFY_STATIC_INLINE bool __nrfy_internal_grtc_event_handle(NRF_GRTC_Type * p_reg, in __nrfy_internal_grtc_event_handle() argument
920 if ((mask & NRFY_EVENT_TO_INT_BITMASK(event)) && nrf_grtc_event_check(p_reg, event)) in __nrfy_internal_grtc_event_handle()
922 nrf_grtc_event_clear(p_reg, event); in __nrfy_internal_grtc_event_handle()
932 NRFY_STATIC_INLINE uint32_t __nrfy_internal_grtc_events_process(NRF_GRTC_Type * p_reg, in __nrfy_internal_grtc_events_process() argument
943 (void)__nrfy_internal_grtc_event_handle(p_reg, mask, event, &event_mask); in __nrfy_internal_grtc_events_process()
947 (void)__nrfy_internal_grtc_event_handle(p_reg, in __nrfy_internal_grtc_events_process()
951 (void)__nrfy_internal_grtc_event_handle(p_reg, in __nrfy_internal_grtc_events_process()
960 NRFY_STATIC_INLINE uint64_t __nrfy_internal_grtc_rt_counter_read(NRF_GRTC_Type const * p_reg) in __nrfy_internal_grtc_rt_counter_read() argument
962 uint32_t counter_l = nrf_grtc_rt_counter_low_get(p_reg); in __nrfy_internal_grtc_rt_counter_read()
963 uint32_t counter_h = nrf_grtc_rt_counter_high_get(p_reg); in __nrfy_internal_grtc_rt_counter_read()
970 NRFY_STATIC_INLINE bool __nrfy_internal_grtc_sys_counter_ready_check(NRF_GRTC_Type const * p_reg) in __nrfy_internal_grtc_sys_counter_ready_check() argument
973 nrf_grtc_sys_counter_low_get(p_reg); // Dummy read, required. in __nrfy_internal_grtc_sys_counter_ready_check()
975 bool check = ((nrf_grtc_sys_counter_high_get(p_reg) & GRTC_SYSCOUNTER_SYSCOUNTERH_BUSY_Msk) in __nrfy_internal_grtc_sys_counter_ready_check()
980 bool check = nrf_grtc_event_check(p_reg, NRF_GRTC_EVENT_SYSCOUNTERVALID); in __nrfy_internal_grtc_sys_counter_ready_check()