Lines Matching refs:channel
32 qtmr_channel_selection_t channel; member
58 uint32_t current = QTMR_GetCurrentTimerCount(config->base, config->channel); in mcux_qtmr_timer_handler()
60 QTMR_ClearStatusFlags(config->base, config->channel, status); in mcux_qtmr_timer_handler()
64 QTMR_DisableInterrupts(config->base, config->channel, in mcux_qtmr_timer_handler()
70 alarm_cb(dev, config->channel, current, data->alarm_user_data); in mcux_qtmr_timer_handler()
103 #define INIT_TIMER(node_id) [DT_PROP(node_id, channel)] = DEVICE_DT_GET(node_id),
128 QTMR_StartTimer(config->base, config->channel, config->mode); in DT_INST_FOREACH_STATUS_OKAY()
137 QTMR_StopTimer(config->base, config->channel); in mcux_qtmr_stop()
146 *ticks = QTMR_GetCurrentTimerCount(config->base, config->channel); in mcux_qtmr_get_value()
170 current = QTMR_GetCurrentTimerCount(config->base, config->channel); in mcux_qtmr_set_alarm()
178 config->base->CHANNEL[config->channel].COMP1 = ticks; in mcux_qtmr_set_alarm()
181 QTMR_EnableInterrupts(config->base, config->channel, data->interrupt_mask); in mcux_qtmr_set_alarm()
196 QTMR_DisableInterrupts(config->base, config->channel, data->interrupt_mask); in mcux_qtmr_cancel_alarm()
207 return QTMR_GetStatus(config->base, config->channel); in mcux_qtmr_get_pending_int()
223 if ((config->base->CHANNEL[config->channel].CTRL & TMR_CTRL_DIR_MASK) != 0U) { in mcux_qtmr_set_top_value()
225 config->base->CHANNEL[config->channel].CNTR = UINT16_MAX; in mcux_qtmr_set_top_value()
228 config->base->CHANNEL[config->channel].CNTR = 0; in mcux_qtmr_set_top_value()
237 QTMR_EnableInterrupts(config->base, config->channel, kQTMR_OverflowInterruptEnable); in mcux_qtmr_set_top_value()
287 QTMR_Init(config->base, config->channel, &config->qtmr_config); in mcux_qtmr_init()
318 .channel = DT_INST_PROP(n, channel), \