Lines Matching refs:polarity
568 nrf_gpiote_polarity_t polarity = in nrfx_gpiote_in_event_enable() local
571 if (polarity == NRF_GPIOTE_POLARITY_TOGGLE) in nrfx_gpiote_in_event_enable()
579 sense = (polarity == NRF_GPIOTE_POLARITY_LOTOHI) ? in nrfx_gpiote_in_event_enable()
700 nrf_gpiote_polarity_t polarity = port_handler_polarity_get(i); in port_event_handle() local
703 NRFX_LOG_DEBUG("PORT event for pin: %d, polarity: %d.", pin, polarity); in port_event_handle()
724 ((polarity == NRF_GPIOTE_POLARITY_TOGGLE) || in port_event_handle()
725 (sense == NRF_GPIO_PIN_SENSE_HIGH && polarity == NRF_GPIOTE_POLARITY_LOTOHI) || in port_event_handle()
726 (sense == NRF_GPIO_PIN_SENSE_LOW && polarity == NRF_GPIOTE_POLARITY_HITOLO))) in port_event_handle()
728 handler(pin, polarity); in port_event_handle()
785 nrf_gpiote_polarity_t polarity = port_handler_polarity_get(i); in port_event_handle() local
796 NRFX_LOG_DEBUG("PORT event for pin: %d, polarity: %d.", pin, polarity); in port_event_handle()
807 ((polarity == NRF_GPIOTE_POLARITY_TOGGLE) || in port_event_handle()
809 polarity == NRF_GPIOTE_POLARITY_LOTOHI) || in port_event_handle()
811 polarity == NRF_GPIOTE_POLARITY_HITOLO))) in port_event_handle()
813 handler(pin, polarity); in port_event_handle()
870 nrf_gpiote_polarity_t polarity = nrf_gpiote_event_polarity_get(NRF_GPIOTE, i); in nrfx_gpiote_irq_handler() local
872 NRFX_LOG_DEBUG("Pin: %d, polarity: %d.", pin, polarity); in nrfx_gpiote_irq_handler()
875 handler(pin, polarity); in nrfx_gpiote_irq_handler()