Lines Matching refs:p_reg

429 NRF_STATIC_INLINE void nrf_grtc_sys_counter_cc_set(NRF_GRTC_Type * p_reg,
441 NRF_STATIC_INLINE uint64_t nrf_grtc_sys_counter_cc_get(NRF_GRTC_Type const * p_reg,
463 NRF_STATIC_INLINE void nrf_grtc_sys_counter_cc_add_set(NRF_GRTC_Type * p_reg,
484 NRF_STATIC_INLINE void nrf_grtc_rt_counter_cc_set(NRF_GRTC_Type * p_reg,
495 NRF_STATIC_INLINE uint64_t nrf_grtc_rt_counter_cc_get(NRF_GRTC_Type const * p_reg);
505 NRF_STATIC_INLINE void nrf_grtc_int_enable(NRF_GRTC_Type * p_reg, uint32_t mask);
514 NRF_STATIC_INLINE void nrf_grtc_int_disable(NRF_GRTC_Type * p_reg, uint32_t mask);
525 NRF_STATIC_INLINE uint32_t nrf_grtc_int_enable_check(NRF_GRTC_Type const * p_reg, uint32_t mask);
538 NRF_STATIC_INLINE uint32_t nrf_grtc_int_pending_get(NRF_GRTC_Type const * p_reg);
552 NRF_STATIC_INLINE void nrf_grtc_int_group_enable(NRF_GRTC_Type * p_reg,
567 NRF_STATIC_INLINE void nrf_grtc_int_group_disable(NRF_GRTC_Type * p_reg,
584 NRF_STATIC_INLINE uint32_t nrf_grtc_int_group_enable_check(NRF_GRTC_Type const * p_reg,
598 NRF_STATIC_INLINE void nrf_grtc_event_enable(NRF_GRTC_Type * p_reg, uint32_t mask);
608 NRF_STATIC_INLINE void nrf_grtc_event_disable(NRF_GRTC_Type * p_reg, uint32_t mask);
618 NRF_STATIC_INLINE void nrf_grtc_shorts_enable(NRF_GRTC_Type * p_reg, uint32_t mask);
626 NRF_STATIC_INLINE void nrf_grtc_shorts_disable(NRF_GRTC_Type * p_reg, uint32_t mask);
634 NRF_STATIC_INLINE void nrf_grtc_shorts_set(NRF_GRTC_Type * p_reg, uint32_t mask);
648 NRF_STATIC_INLINE void nrf_grtc_subscribe_set(NRF_GRTC_Type * p_reg,
662 NRF_STATIC_INLINE void nrf_grtc_subscribe_clear(NRF_GRTC_Type * p_reg,
676 NRF_STATIC_INLINE void nrf_grtc_publish_set(NRF_GRTC_Type * p_reg,
690 NRF_STATIC_INLINE void nrf_grtc_publish_clear(NRF_GRTC_Type * p_reg,
702 NRF_STATIC_INLINE bool nrf_grtc_event_check(NRF_GRTC_Type const * p_reg, nrf_grtc_event_t event);
710 NRF_STATIC_INLINE void nrf_grtc_event_clear(NRF_GRTC_Type * p_reg, nrf_grtc_event_t event);
724 NRF_STATIC_INLINE uint32_t nrf_grtc_rt_counter_low_get(NRF_GRTC_Type const * p_reg);
737 NRF_STATIC_INLINE uint32_t nrf_grtc_rt_counter_high_get(NRF_GRTC_Type const * p_reg);
752 NRF_STATIC_INLINE uint32_t nrf_grtc_sys_counter_low_get(NRF_GRTC_Type const * p_reg);
766 NRF_STATIC_INLINE uint32_t nrf_grtc_sys_counter_high_get(NRF_GRTC_Type const * p_reg);
775 NRF_STATIC_INLINE uint64_t nrf_grtc_sys_counter_get(NRF_GRTC_Type const * p_reg);
785 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_overflow_check(NRF_GRTC_Type const * p_reg);
799 NRF_STATIC_INLINE uint64_t nrf_grtc_sys_counter_indexed_get(NRF_GRTC_Type const * p_reg,
808 NRF_STATIC_INLINE void nrf_grtc_sys_counter_active_set(NRF_GRTC_Type * p_reg, bool enable);
818 bool nrf_grtc_sys_counter_active_check(NRF_GRTC_Type const * p_reg);
829 NRF_STATIC_INLINE uint32_t nrf_grtc_event_address_get(NRF_GRTC_Type const * p_reg,
840 NRF_STATIC_INLINE uint32_t nrf_grtc_task_address_get(NRF_GRTC_Type const * p_reg,
849 NRF_STATIC_INLINE void nrf_grtc_task_trigger(NRF_GRTC_Type * p_reg, nrf_grtc_task_t task);
867 NRF_STATIC_INLINE void nrf_grtc_sys_counter_compare_event_enable(NRF_GRTC_Type * p_reg,
876 NRF_STATIC_INLINE void nrf_grtc_sys_counter_compare_event_disable(NRF_GRTC_Type * p_reg,
898 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_cc_enable_check(NRF_GRTC_Type const * p_reg,
910 NRF_STATIC_INLINE void nrf_grtc_sys_counter_set(NRF_GRTC_Type * p_reg, bool enable);
923 NRF_STATIC_INLINE void nrf_grtc_sys_counter_auto_mode_set(NRF_GRTC_Type * p_reg, bool enable);
933 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_auto_mode_check(NRF_GRTC_Type * p_reg);
943 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_check(NRF_GRTC_Type const * p_reg);
955 NRF_STATIC_INLINE void nrf_grtc_sys_counter_active_state_request_set(NRF_GRTC_Type * p_reg,
966 bool nrf_grtc_sys_counter_active_state_request_check(NRF_GRTC_Type const * p_reg);
977 uint32_t nrf_grtc_sys_counter_active_state_request_get(NRF_GRTC_Type const * p_reg,
988 NRF_STATIC_INLINE void nrf_grtc_sys_counter_interval_set(NRF_GRTC_Type * p_reg, uint32_t value);
998 NRF_STATIC_INLINE uint32_t nrf_grtc_sys_counter_interval_get(NRF_GRTC_Type const * p_reg);
1008 NRF_STATIC_INLINE void nrf_grtc_timeout_set(NRF_GRTC_Type * p_reg, uint32_t value);
1017 NRF_STATIC_INLINE uint32_t nrf_grtc_timeout_get(NRF_GRTC_Type const * p_reg);
1028 NRF_STATIC_INLINE void nrf_grtc_waketime_set(NRF_GRTC_Type * p_reg, uint32_t value);
1037 NRF_STATIC_INLINE uint32_t nrf_grtc_waketime_get(NRF_GRTC_Type const * p_reg);
1047 NRF_STATIC_INLINE void nrf_grtc_pwm_compare_set(NRF_GRTC_Type * p_reg, uint32_t value);
1056 NRF_STATIC_INLINE uint32_t nrf_grtc_pwm_compare_get(NRF_GRTC_Type const * p_reg);
1067 NRF_STATIC_INLINE void nrf_grtc_clkout_set(NRF_GRTC_Type * p_reg,
1079 NRF_STATIC_INLINE bool nrf_grtc_clkout_enable_check(NRF_GRTC_Type const * p_reg,
1088 NRF_STATIC_INLINE void nrf_grtc_clkout_divider_set(NRF_GRTC_Type * p_reg, uint32_t value);
1097 NRF_STATIC_INLINE uint32_t nrf_grtc_clkout_divider_get(NRF_GRTC_Type const * p_reg);
1107 NRF_STATIC_INLINE void nrf_grtc_clksel_set(NRF_GRTC_Type * p_reg, nrf_grtc_clksel_t clksel);
1116 NRF_STATIC_INLINE nrf_grtc_clksel_t nrf_grtc_clksel_get(NRF_GRTC_Type const * p_reg);
1121 NRF_STATIC_INLINE void nrf_grtc_sys_counter_cc_set(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_cc_set() argument
1134 p_reg->CC[cc_channel].CCL = (uint32_t)cc_value; in nrf_grtc_sys_counter_cc_set()
1135 p_reg->CC[cc_channel].CCH = cc_h & NRF_GRTC_SYSCOUNTER_CCH_MASK; in nrf_grtc_sys_counter_cc_set()
1138 NRF_STATIC_INLINE uint64_t nrf_grtc_sys_counter_cc_get(NRF_GRTC_Type const * p_reg, in nrf_grtc_sys_counter_cc_get() argument
1147 uint32_t cc_h = p_reg->CC[cc_channel].CCH; in nrf_grtc_sys_counter_cc_get()
1149 return (uint64_t)p_reg->CC[cc_channel].CCL | ((uint64_t)cc_h << 32); in nrf_grtc_sys_counter_cc_get()
1152 NRF_STATIC_INLINE void nrf_grtc_sys_counter_cc_add_set(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_cc_add_set() argument
1165 p_reg->CC[cc_channel].CCADD = ((uint32_t)reference << GRTC_CC_CCADD_REFERENCE_Pos) | in nrf_grtc_sys_counter_cc_add_set()
1170 NRF_STATIC_INLINE void nrf_grtc_rt_counter_cc_set(NRF_GRTC_Type * p_reg, in nrf_grtc_rt_counter_cc_set() argument
1179 p_reg->RTCOMPARESYNCL = (uint32_t)cc_value; in nrf_grtc_rt_counter_cc_set()
1180 p_reg->RTCOMPARESYNCH = cc_h & NRF_GRTC_RTCOUNTER_CCH_MASK; in nrf_grtc_rt_counter_cc_set()
1184 p_reg->RTCOMPAREL = (uint32_t)cc_value; in nrf_grtc_rt_counter_cc_set()
1185 p_reg->RTCOMPAREH = cc_h & NRF_GRTC_RTCOUNTER_CCH_MASK; in nrf_grtc_rt_counter_cc_set()
1189 NRF_STATIC_INLINE uint64_t nrf_grtc_rt_counter_cc_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_rt_counter_cc_get() argument
1191 uint32_t cc_h = p_reg->RTCOMPAREH; in nrf_grtc_rt_counter_cc_get()
1193 return (uint64_t)p_reg->RTCOMPAREL | ((uint64_t)cc_h << 32); in nrf_grtc_rt_counter_cc_get()
1197 NRF_STATIC_INLINE void nrf_grtc_int_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_int_enable() argument
1199 p_reg->GRTC_INTENSET = mask; in nrf_grtc_int_enable()
1202 NRF_STATIC_INLINE void nrf_grtc_int_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_int_disable() argument
1204 p_reg->GRTC_INTENCLR = mask; in nrf_grtc_int_disable()
1207 NRF_STATIC_INLINE uint32_t nrf_grtc_int_enable_check(NRF_GRTC_Type const * p_reg, uint32_t mask) in nrf_grtc_int_enable_check() argument
1209 return p_reg->GRTC_INTEN & mask; in nrf_grtc_int_enable_check()
1212 NRF_STATIC_INLINE uint32_t nrf_grtc_int_pending_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_int_pending_get() argument
1214 return p_reg->GRTC_INTPEND; in nrf_grtc_int_pending_get()
1218 NRF_STATIC_INLINE void nrf_grtc_int_group_enable(NRF_GRTC_Type * p_reg, in nrf_grtc_int_group_enable() argument
1225 p_reg->INTENSET0 = mask; in nrf_grtc_int_group_enable()
1228 p_reg->INTENSET1 = mask; in nrf_grtc_int_group_enable()
1232 p_reg->INTENSET2 = mask; in nrf_grtc_int_group_enable()
1237 p_reg->INTENSET3 = mask; in nrf_grtc_int_group_enable()
1242 p_reg->INTENSET4 = mask; in nrf_grtc_int_group_enable()
1247 p_reg->INTENSET5 = mask; in nrf_grtc_int_group_enable()
1252 p_reg->INTENSET6 = mask; in nrf_grtc_int_group_enable()
1257 p_reg->INTENSET7 = mask; in nrf_grtc_int_group_enable()
1262 p_reg->INTENSET8 = mask; in nrf_grtc_int_group_enable()
1267 p_reg->INTENSET9 = mask; in nrf_grtc_int_group_enable()
1272 p_reg->INTENSET10 = mask; in nrf_grtc_int_group_enable()
1277 p_reg->INTENSET11 = mask; in nrf_grtc_int_group_enable()
1282 p_reg->INTENSET12 = mask; in nrf_grtc_int_group_enable()
1287 p_reg->INTENSET13 = mask; in nrf_grtc_int_group_enable()
1292 p_reg->INTENSET14 = mask; in nrf_grtc_int_group_enable()
1297 p_reg->INTENSET15 = mask; in nrf_grtc_int_group_enable()
1306 NRF_STATIC_INLINE void nrf_grtc_int_group_disable(NRF_GRTC_Type * p_reg, in nrf_grtc_int_group_disable() argument
1313 p_reg->INTENCLR0 = mask; in nrf_grtc_int_group_disable()
1316 p_reg->INTENCLR1 = mask; in nrf_grtc_int_group_disable()
1320 p_reg->INTENCLR2 = mask; in nrf_grtc_int_group_disable()
1325 p_reg->INTENCLR3 = mask; in nrf_grtc_int_group_disable()
1330 p_reg->INTENCLR4 = mask; in nrf_grtc_int_group_disable()
1335 p_reg->INTENCLR5 = mask; in nrf_grtc_int_group_disable()
1340 p_reg->INTENCLR6 = mask; in nrf_grtc_int_group_disable()
1345 p_reg->INTENCLR7 = mask; in nrf_grtc_int_group_disable()
1350 p_reg->INTENCLR8 = mask; in nrf_grtc_int_group_disable()
1355 p_reg->INTENCLR9 = mask; in nrf_grtc_int_group_disable()
1360 p_reg->INTENCLR10 = mask; in nrf_grtc_int_group_disable()
1365 p_reg->INTENCLR11 = mask; in nrf_grtc_int_group_disable()
1370 p_reg->INTENCLR12 = mask; in nrf_grtc_int_group_disable()
1375 p_reg->INTENCLR13 = mask; in nrf_grtc_int_group_disable()
1380 p_reg->INTENCLR14 = mask; in nrf_grtc_int_group_disable()
1385 p_reg->INTENCLR15 = mask; in nrf_grtc_int_group_disable()
1394 NRF_STATIC_INLINE uint32_t nrf_grtc_int_group_enable_check(NRF_GRTC_Type const * p_reg, in nrf_grtc_int_group_enable_check() argument
1401 return p_reg->INTENSET0 & mask; in nrf_grtc_int_group_enable_check()
1403 return p_reg->INTENSET1 & mask; in nrf_grtc_int_group_enable_check()
1406 return p_reg->INTENSET2 & mask; in nrf_grtc_int_group_enable_check()
1410 return p_reg->INTENSET3 & mask; in nrf_grtc_int_group_enable_check()
1414 return p_reg->INTENSET4 & mask; in nrf_grtc_int_group_enable_check()
1418 return p_reg->INTENSET5 & mask; in nrf_grtc_int_group_enable_check()
1422 return p_reg->INTENSET6 & mask; in nrf_grtc_int_group_enable_check()
1426 return p_reg->INTENSET7 & mask; in nrf_grtc_int_group_enable_check()
1430 return p_reg->INTENSET8 & mask; in nrf_grtc_int_group_enable_check()
1434 return p_reg->INTENSET9 & mask; in nrf_grtc_int_group_enable_check()
1438 return p_reg->INTENSET10 & mask; in nrf_grtc_int_group_enable_check()
1442 return p_reg->INTENSET11 & mask; in nrf_grtc_int_group_enable_check()
1446 return p_reg->INTENSET12 & mask; in nrf_grtc_int_group_enable_check()
1450 return p_reg->INTENSET13 & mask; in nrf_grtc_int_group_enable_check()
1454 return p_reg->INTENSET14 & mask; in nrf_grtc_int_group_enable_check()
1458 return p_reg->INTENSET15 & mask; in nrf_grtc_int_group_enable_check()
1468 NRF_STATIC_INLINE void nrf_grtc_event_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_event_enable() argument
1470 p_reg->EVTENSET = mask; in nrf_grtc_event_enable()
1473 NRF_STATIC_INLINE void nrf_grtc_event_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_event_disable() argument
1475 p_reg->EVTENCLR = mask; in nrf_grtc_event_disable()
1480 NRF_STATIC_INLINE void nrf_grtc_shorts_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_shorts_enable() argument
1482 p_reg->SHORTS |= mask; in nrf_grtc_shorts_enable()
1485 NRF_STATIC_INLINE void nrf_grtc_shorts_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_shorts_disable() argument
1487 p_reg->SHORTS &= ~(mask); in nrf_grtc_shorts_disable()
1490 NRF_STATIC_INLINE void nrf_grtc_shorts_set(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_shorts_set() argument
1492 p_reg->SHORTS = mask; in nrf_grtc_shorts_set()
1496 NRF_STATIC_INLINE void nrf_grtc_subscribe_set(NRF_GRTC_Type * p_reg, in nrf_grtc_subscribe_set() argument
1506 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = in nrf_grtc_subscribe_set()
1510 NRF_STATIC_INLINE void nrf_grtc_subscribe_clear(NRF_GRTC_Type * p_reg, in nrf_grtc_subscribe_clear() argument
1519 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = 0; in nrf_grtc_subscribe_clear()
1522 NRF_STATIC_INLINE void nrf_grtc_publish_set(NRF_GRTC_Type * p_reg, in nrf_grtc_publish_set() argument
1533 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) event + 0x80UL)) = in nrf_grtc_publish_set()
1537 NRF_STATIC_INLINE void nrf_grtc_publish_clear(NRF_GRTC_Type * p_reg, in nrf_grtc_publish_clear() argument
1547 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) event + 0x80UL)) = 0x0UL; in nrf_grtc_publish_clear()
1550 NRF_STATIC_INLINE bool nrf_grtc_event_check(NRF_GRTC_Type const * p_reg, nrf_grtc_event_t event) in nrf_grtc_event_check() argument
1552 return nrf_event_check(p_reg, event); in nrf_grtc_event_check()
1555 NRF_STATIC_INLINE void nrf_grtc_event_clear(NRF_GRTC_Type * p_reg, nrf_grtc_event_t event) in nrf_grtc_event_clear() argument
1561 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_grtc_event_clear()
1562 nrf_event_readback((uint8_t *)p_reg + (uint32_t)event); in nrf_grtc_event_clear()
1566 NRF_STATIC_INLINE uint32_t nrf_grtc_rt_counter_low_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_rt_counter_low_get() argument
1568 return p_reg->RTCOUNTERL; in nrf_grtc_rt_counter_low_get()
1571 NRF_STATIC_INLINE uint32_t nrf_grtc_rt_counter_high_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_rt_counter_high_get() argument
1573 return p_reg->RTCOUNTERH; in nrf_grtc_rt_counter_high_get()
1577 NRF_STATIC_INLINE uint32_t nrf_grtc_sys_counter_low_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_low_get() argument
1580 return p_reg->GRTC_SYSCOUNTER.SYSCOUNTERL; in nrf_grtc_sys_counter_low_get()
1582 return p_reg->SYSCOUNTERL; in nrf_grtc_sys_counter_low_get()
1586 NRF_STATIC_INLINE uint32_t nrf_grtc_sys_counter_high_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_high_get() argument
1589 return p_reg->GRTC_SYSCOUNTER.SYSCOUNTERH; in nrf_grtc_sys_counter_high_get()
1591 return p_reg->SYSCOUNTERH; in nrf_grtc_sys_counter_high_get()
1595 NRF_STATIC_INLINE uint64_t nrf_grtc_sys_counter_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_get() argument
1598 return *((const uint64_t volatile *)&p_reg->GRTC_SYSCOUNTER.SYSCOUNTERL); in nrf_grtc_sys_counter_get()
1600 return *((const uint64_t volatile *)&p_reg->SYSCOUNTERL); in nrf_grtc_sys_counter_get()
1604 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_overflow_check(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_overflow_check() argument
1607 return (p_reg->GRTC_SYSCOUNTER.SYSCOUNTERH & in nrf_grtc_sys_counter_overflow_check()
1610 return (p_reg->SYSCOUNTERH & GRTC_SYSCOUNTERH_OVERFLOW_Msk) ? true : false; in nrf_grtc_sys_counter_overflow_check()
1615 NRF_STATIC_INLINE uint64_t nrf_grtc_sys_counter_indexed_get(NRF_GRTC_Type const * p_reg, in nrf_grtc_sys_counter_indexed_get() argument
1619 return *((const uint64_t volatile *)&p_reg->SYSCOUNTER[index]); in nrf_grtc_sys_counter_indexed_get()
1622 NRF_STATIC_INLINE void nrf_grtc_sys_counter_active_set(NRF_GRTC_Type * p_reg, bool enable) in nrf_grtc_sys_counter_active_set() argument
1624 p_reg->GRTC_SYSCOUNTER.ACTIVE = ((p_reg->GRTC_SYSCOUNTER.ACTIVE & in nrf_grtc_sys_counter_active_set()
1630 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_active_check(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_active_check() argument
1632 return (p_reg->GRTC_SYSCOUNTER.ACTIVE & GRTC_SYSCOUNTER_ACTIVE_ACTIVE_Msk) == in nrf_grtc_sys_counter_active_check()
1637 NRF_STATIC_INLINE uint32_t nrf_grtc_event_address_get(NRF_GRTC_Type const * p_reg, in nrf_grtc_event_address_get() argument
1640 return (uint32_t)p_reg + (uint32_t)event; in nrf_grtc_event_address_get()
1643 NRF_STATIC_INLINE uint32_t nrf_grtc_task_address_get(NRF_GRTC_Type const * p_reg, in nrf_grtc_task_address_get() argument
1646 return (uint32_t)p_reg + (uint32_t)task; in nrf_grtc_task_address_get()
1649 NRF_STATIC_INLINE void nrf_grtc_task_trigger(NRF_GRTC_Type * p_reg, nrf_grtc_task_t task) in nrf_grtc_task_trigger() argument
1651 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_grtc_task_trigger()
1659 NRF_STATIC_INLINE void nrf_grtc_sys_counter_compare_event_enable(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_compare_event_enable() argument
1669 p_reg->CC[cc_channel].CCEN = GRTC_CC_CCEN_ACTIVE_Enable; in nrf_grtc_sys_counter_compare_event_enable()
1672 NRF_STATIC_INLINE void nrf_grtc_sys_counter_compare_event_disable(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_compare_event_disable() argument
1681 p_reg->CC[cc_channel].CCEN = GRTC_CC_CCEN_ACTIVE_Disable; in nrf_grtc_sys_counter_compare_event_disable()
1689 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_cc_enable_check(NRF_GRTC_Type const * p_reg, in nrf_grtc_sys_counter_cc_enable_check() argument
1692 return ((p_reg->CC[cc_channel].CCEN & GRTC_CC_CCEN_ACTIVE_Msk) >> GRTC_CC_CCEN_ACTIVE_Pos) == in nrf_grtc_sys_counter_cc_enable_check()
1697 NRF_STATIC_INLINE void nrf_grtc_sys_counter_set(NRF_GRTC_Type * p_reg, bool enable) in nrf_grtc_sys_counter_set() argument
1699 p_reg->MODE = ((p_reg->MODE & ~GRTC_MODE_SYSCOUNTEREN_Msk) | in nrf_grtc_sys_counter_set()
1704 NRF_STATIC_INLINE void nrf_grtc_sys_counter_auto_mode_set(NRF_GRTC_Type * p_reg, bool enable) in nrf_grtc_sys_counter_auto_mode_set() argument
1706 p_reg->MODE = ((p_reg->MODE & ~GRTC_MODE_AUTOEN_Msk) | in nrf_grtc_sys_counter_auto_mode_set()
1711 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_auto_mode_check(NRF_GRTC_Type * p_reg) in nrf_grtc_sys_counter_auto_mode_check() argument
1713 return (p_reg->MODE & GRTC_MODE_AUTOEN_Msk) == GRTC_MODE_AUTOEN_CpuActive; in nrf_grtc_sys_counter_auto_mode_check()
1718 NRF_STATIC_INLINE bool nrf_grtc_sys_counter_check(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_check() argument
1720 return (p_reg->MODE & GRTC_MODE_SYSCOUNTEREN_Msk) ? true : false; in nrf_grtc_sys_counter_check()
1724 NRF_STATIC_INLINE void nrf_grtc_sys_counter_active_state_request_set(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_active_state_request_set() argument
1728 p_reg->KEEPRUNNING = ((p_reg->KEEPRUNNING & in nrf_grtc_sys_counter_active_state_request_set()
1733 p_reg->KEEPRUNNING = ((p_reg->KEEPRUNNING & in nrf_grtc_sys_counter_active_state_request_set()
1741 bool nrf_grtc_sys_counter_active_state_request_check(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_active_state_request_check() argument
1744 return (p_reg->KEEPRUNNING & in nrf_grtc_sys_counter_active_state_request_check()
1747 return (p_reg->KEEPRUNNING & in nrf_grtc_sys_counter_active_state_request_check()
1753 uint32_t nrf_grtc_sys_counter_active_state_request_get(NRF_GRTC_Type const * p_reg, in nrf_grtc_sys_counter_active_state_request_get() argument
1756 return p_reg->KEEPRUNNING & mask; in nrf_grtc_sys_counter_active_state_request_get()
1761 NRF_STATIC_INLINE void nrf_grtc_sys_counter_interval_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrf_grtc_sys_counter_interval_set() argument
1763 p_reg->INTERVAL = value; in nrf_grtc_sys_counter_interval_set()
1766 NRF_STATIC_INLINE uint32_t nrf_grtc_sys_counter_interval_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_sys_counter_interval_get() argument
1768 return p_reg->INTERVAL; in nrf_grtc_sys_counter_interval_get()
1771 NRF_STATIC_INLINE void nrf_grtc_timeout_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrf_grtc_timeout_set() argument
1774 p_reg->TIMEOUT = (value << GRTC_TIMEOUT_VALUE_Pos); in nrf_grtc_timeout_set()
1777 NRF_STATIC_INLINE uint32_t nrf_grtc_timeout_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_timeout_get() argument
1779 return (p_reg->TIMEOUT >> GRTC_TIMEOUT_VALUE_Pos); in nrf_grtc_timeout_get()
1782 NRF_STATIC_INLINE void nrf_grtc_waketime_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrf_grtc_waketime_set() argument
1785 p_reg->WAKETIME = (value << GRTC_WAKETIME_VALUE_Pos); in nrf_grtc_waketime_set()
1788 NRF_STATIC_INLINE uint32_t nrf_grtc_waketime_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_waketime_get() argument
1790 return (p_reg->WAKETIME >> GRTC_WAKETIME_VALUE_Pos); in nrf_grtc_waketime_get()
1795 NRF_STATIC_INLINE void nrf_grtc_pwm_compare_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrf_grtc_pwm_compare_set() argument
1797 p_reg->PWMCONFIG = (value << GRTC_PWMCONFIG_COMPAREVALUE_Pos) & GRTC_PWMCONFIG_COMPAREVALUE_Msk; in nrf_grtc_pwm_compare_set()
1800 NRF_STATIC_INLINE uint32_t nrf_grtc_pwm_compare_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_pwm_compare_get() argument
1802 return (p_reg->PWMCONFIG >> GRTC_PWMCONFIG_COMPAREVALUE_Pos); in nrf_grtc_pwm_compare_get()
1807 NRF_STATIC_INLINE void nrf_grtc_clkout_set(NRF_GRTC_Type * p_reg, in nrf_grtc_clkout_set() argument
1813 p_reg->CLKOUT |= (uint32_t)clkout; in nrf_grtc_clkout_set()
1817 p_reg->CLKOUT &= ~((uint32_t)clkout); in nrf_grtc_clkout_set()
1821 NRF_STATIC_INLINE bool nrf_grtc_clkout_enable_check(NRF_GRTC_Type const * p_reg, in nrf_grtc_clkout_enable_check() argument
1824 return p_reg->CLKOUT == (uint32_t)clkout; in nrf_grtc_clkout_enable_check()
1827 NRF_STATIC_INLINE void nrf_grtc_clkout_divider_set(NRF_GRTC_Type * p_reg, uint32_t value) in nrf_grtc_clkout_divider_set() argument
1830 p_reg->CLKCFG = (p_reg->CLKCFG & ~GRTC_CLKCFG_CLKFASTDIV_Msk) | in nrf_grtc_clkout_divider_set()
1834 NRF_STATIC_INLINE uint32_t nrf_grtc_clkout_divider_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_clkout_divider_get() argument
1836 return (p_reg->CLKCFG & GRTC_CLKCFG_CLKFASTDIV_Msk) >> GRTC_CLKCFG_CLKFASTDIV_Pos; in nrf_grtc_clkout_divider_get()
1841 NRF_STATIC_INLINE void nrf_grtc_clksel_set(NRF_GRTC_Type * p_reg, nrf_grtc_clksel_t clksel) in nrf_grtc_clksel_set() argument
1843 p_reg->CLKCFG = (p_reg->CLKCFG & ~GRTC_CLKCFG_CLKSEL_Msk) | in nrf_grtc_clksel_set()
1847 NRF_STATIC_INLINE nrf_grtc_clksel_t nrf_grtc_clksel_get(NRF_GRTC_Type const * p_reg) in nrf_grtc_clksel_get() argument
1849 return (nrf_grtc_clksel_t)((p_reg->CLKCFG & GRTC_CLKCFG_CLKSEL_Msk) >> GRTC_CLKCFG_CLKSEL_Pos); in nrf_grtc_clksel_get()