Lines Matching full:channel

181 __STATIC_INLINE nrfx_gpiote_evt_handler_t channel_handler_get(uint32_t channel)  in channel_handler_get()  argument
183 return m_cb.handlers[channel]; in channel_handler_get()
187 static int8_t channel_port_alloc(uint32_t pin, nrfx_gpiote_evt_handler_t handler, bool channel) in channel_port_alloc() argument
192 uint32_t start_idx = channel ? 0 : GPIOTE_CH_NUM; in channel_port_alloc()
194 channel ? GPIOTE_CH_NUM : (GPIOTE_CH_NUM + NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS); in channel_port_alloc()
202 pin_in_use_by_te_set(pin, i, handler, channel); in channel_port_alloc()
309 int8_t channel = channel_port_alloc(pin, NULL, true); in nrfx_gpiote_out_init() local
311 if (channel != NO_CHANNELS) in nrfx_gpiote_out_init()
313 nrf_gpiote_task_configure((uint32_t)channel, in nrfx_gpiote_out_init()
513 /* Only one GPIOTE channel can be assigned to one physical pin. */ in nrfx_gpiote_in_init()
520 int8_t channel = channel_port_alloc(pin, evt_handler, p_config->hi_accuracy); in nrfx_gpiote_in_init() local
521 if (channel != NO_CHANNELS) in nrfx_gpiote_in_init()
538 nrf_gpiote_event_configure((uint32_t)channel, pin, p_config->sense); in nrfx_gpiote_in_init()
542 m_cb.port_handlers_pins[channel - in nrfx_gpiote_in_init()
582 int32_t channel = (int32_t)channel_port_get(pin); in nrfx_gpiote_in_event_enable() local
583 nrf_gpiote_events_t event = TE_IDX_TO_EVENT_ADDR((uint32_t)channel); in nrfx_gpiote_in_event_enable()
585 nrf_gpiote_event_enable((uint32_t)channel); in nrfx_gpiote_in_event_enable()
594 nrf_gpiote_int_enable(1 << channel); in nrfx_gpiote_in_event_enable()
611 int32_t channel = (int32_t)channel_port_get(pin); in nrfx_gpiote_in_event_disable() local
612 nrf_gpiote_event_disable((uint32_t)channel); in nrfx_gpiote_in_event_disable()
613 nrf_gpiote_int_disable(1 << channel); in nrfx_gpiote_in_event_disable()