Lines Matching refs:m_cb

89     #define MAIN_GRTC_CC_CHANNEL (m_cb.channel_data[0].channel)
106 static nrfx_grtc_cb_t m_cb = variable
127 return NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK & ~m_cb.available_channels; in allocated_channels_mask_get()
132 return NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK & m_cb.used_channels; in used_channels_mask_get()
154 m_cb.used_channels |= GRTC_CHANNEL_TO_BITMASK(channel); in channel_used_mark()
159 m_cb.used_channels &= ~GRTC_CHANNEL_TO_BITMASK(channel); in channel_used_unmark()
210 m_cb.channel_data[ch_data_idx].handler = p_chan_data->handler; in cc_channel_prepare()
211 m_cb.channel_data[ch_data_idx].p_context = p_chan_data->p_context; in cc_channel_prepare()
212 m_cb.channel_data[ch_data_idx].channel = p_chan_data->channel; in cc_channel_prepare()
218 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_grtc_active_request_set()
229 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_grtc_syscounter_get()
270 nrfx_err_t err_code = nrfx_flag32_alloc(&m_cb.available_channels, p_channel); in nrfx_grtc_channel_alloc()
298 err_code = nrfx_flag32_free(&m_cb.available_channels, channel); in nrfx_grtc_channel_free()
320 if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED) in nrfx_grtc_init()
344 m_cb.channel_data[i].channel = get_channel_for_ch_data_idx(i); in nrfx_grtc_init()
352 m_cb.state = NRFX_DRV_STATE_INITIALIZED; in nrfx_grtc_init()
360 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_rtcounter_cc_disable()
395 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_rtcomparesync_int_enable()
397 m_cb.rtcomparesync_handler = handler; in nrfx_grtc_rtcomparesync_int_enable()
398 m_cb.rtcomparesync_context = p_context; in nrfx_grtc_rtcomparesync_int_enable()
406 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_rtcomparesync_int_disable()
417 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_rtcounter_cc_absolute_set()
429 nrfx_grtc_channel_t * p_chan_data = &m_cb.channel_data[GRTC_RTCOUNTER_CC_HANDLER_IDX]; in nrfx_grtc_rtcounter_cc_absolute_set()
453 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_grtc_syscounter_start()
455 NRFX_ASSERT(m_cb.channel_data[0].channel == MAIN_GRTC_CC_CHANNEL); in nrfx_grtc_syscounter_start()
458 m_cb.available_channels; in nrfx_grtc_syscounter_start()
460 err_code = nrfx_flag32_alloc(&init_mask, &m_cb.channel_data[0].channel); in nrfx_grtc_syscounter_start()
470 m_cb.available_channels &= ~GRTC_CHANNEL_TO_BITMASK(MAIN_GRTC_CC_CHANNEL); in nrfx_grtc_syscounter_start()
472 NRFX_LOG_INFO("GRTC channel %u allocated.", m_cb.channel_data[0].channel); in nrfx_grtc_syscounter_start()
490 NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED); in nrfx_grtc_action_perform()
515 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_uninit()
534 (void)nrfx_flag32_free(&m_cb.available_channels, chan); in nrfx_grtc_uninit()
552 m_cb.state = NRFX_DRV_STATE_UNINITIALIZED; in nrfx_grtc_uninit()
558 return (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_init_check()
564 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_rtcounter_cc_int_enable()
574 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_rtcounter_cc_int_disable()
583 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscountervalid_int_enable()
585 m_cb.syscountervalid_handler = handler; in nrfx_grtc_syscountervalid_int_enable()
586 m_cb.syscountervalid_context = p_context; in nrfx_grtc_syscountervalid_int_enable()
593 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscountervalid_int_disable()
602 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_disable()
645 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_absolute_set()
673 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_relative_set()
700 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_int_disable()
725 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_int_enable()
742 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_int_enable_check()
749 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_capture()
767 NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_grtc_syscounter_cc_value_read()
805 uint8_t channel = m_cb.channel_data[i].channel; in grtc_irq_handler()
811 if (m_cb.channel_data[i].handler) in grtc_irq_handler()
813 m_cb.channel_data[i].handler((int32_t)channel, in grtc_irq_handler()
815 m_cb.channel_data[i].p_context); in grtc_irq_handler()
823 nrfx_grtc_channel_t const * p_channel = &m_cb.channel_data[GRTC_RTCOUNTER_CC_HANDLER_IDX]; in grtc_irq_handler()
835 if (m_cb.rtcomparesync_handler) in grtc_irq_handler()
837 m_cb.rtcomparesync_handler(m_cb.rtcomparesync_context); in grtc_irq_handler()
848 if (m_cb.syscountervalid_handler) in grtc_irq_handler()
850 m_cb.syscountervalid_handler(m_cb.syscountervalid_context); in grtc_irq_handler()