Lines Matching refs:idx

276 NRF_STATIC_INLINE void nrf_gpiote_event_enable(NRF_GPIOTE_Type * p_reg, uint32_t idx);
284 NRF_STATIC_INLINE void nrf_gpiote_event_disable(NRF_GPIOTE_Type * p_reg, uint32_t idx);
295 uint32_t idx,
307 NRF_STATIC_INLINE uint32_t nrf_gpiote_event_pin_get(NRF_GPIOTE_Type const * p_reg, uint32_t idx);
318 uint32_t idx);
326 NRF_STATIC_INLINE void nrf_gpiote_task_enable(NRF_GPIOTE_Type * p_reg, uint32_t idx);
334 NRF_STATIC_INLINE void nrf_gpiote_task_disable(NRF_GPIOTE_Type * p_reg, uint32_t idx);
348 uint32_t idx,
361 uint32_t idx,
370 NRF_STATIC_INLINE void nrf_gpiote_te_default(NRF_GPIOTE_Type * p_reg, uint32_t idx);
380 NRF_STATIC_INLINE bool nrf_gpiote_te_is_enabled(NRF_GPIOTE_Type const * p_reg, uint32_t idx);
496 NRF_STATIC_INLINE void nrf_gpiote_event_enable(NRF_GPIOTE_Type * p_reg, uint32_t idx) in nrf_gpiote_event_enable() argument
498 p_reg->CONFIG[idx] |= GPIOTE_CONFIG_MODE_Event; in nrf_gpiote_event_enable()
501 NRF_STATIC_INLINE void nrf_gpiote_event_disable(NRF_GPIOTE_Type * p_reg, uint32_t idx) in nrf_gpiote_event_disable() argument
503 p_reg->CONFIG[idx] &= ~GPIOTE_CONFIG_MODE_Event; in nrf_gpiote_event_disable()
507 uint32_t idx, in nrf_gpiote_event_configure() argument
511 p_reg->CONFIG[idx] &= ~(GPIOTE_CONFIG_PORT_PIN_Msk | GPIOTE_CONFIG_POLARITY_Msk); in nrf_gpiote_event_configure()
512 p_reg->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) | in nrf_gpiote_event_configure()
516 NRF_STATIC_INLINE uint32_t nrf_gpiote_event_pin_get(NRF_GPIOTE_Type const * p_reg, uint32_t idx) in nrf_gpiote_event_pin_get() argument
518 return ((p_reg->CONFIG[idx] & GPIOTE_CONFIG_PORT_PIN_Msk) >> GPIOTE_CONFIG_PSEL_Pos); in nrf_gpiote_event_pin_get()
522 uint32_t idx) in nrf_gpiote_event_polarity_get() argument
524 return (nrf_gpiote_polarity_t)((p_reg->CONFIG[idx] & GPIOTE_CONFIG_POLARITY_Msk) >> in nrf_gpiote_event_polarity_get()
528 NRF_STATIC_INLINE void nrf_gpiote_task_enable(NRF_GPIOTE_Type * p_reg, uint32_t idx) in nrf_gpiote_task_enable() argument
530 uint32_t final_config = p_reg->CONFIG[idx] | GPIOTE_CONFIG_MODE_Task; in nrf_gpiote_task_enable()
537 p_reg->CONFIG[idx] = final_config | in nrf_gpiote_task_enable()
543 p_reg->CONFIG[idx] = final_config; in nrf_gpiote_task_enable()
546 NRF_STATIC_INLINE void nrf_gpiote_task_disable(NRF_GPIOTE_Type * p_reg, uint32_t idx) in nrf_gpiote_task_disable() argument
548 p_reg->CONFIG[idx] &= ~GPIOTE_CONFIG_MODE_Task; in nrf_gpiote_task_disable()
552 uint32_t idx, in nrf_gpiote_task_configure() argument
557 p_reg->CONFIG[idx] &= ~(GPIOTE_CONFIG_PORT_PIN_Msk | in nrf_gpiote_task_configure()
561 p_reg->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) | in nrf_gpiote_task_configure()
567 uint32_t idx, in nrf_gpiote_task_force() argument
570 p_reg->CONFIG[idx] = (p_reg->CONFIG[idx] & ~GPIOTE_CONFIG_OUTINIT_Msk) | in nrf_gpiote_task_force()
574 NRF_STATIC_INLINE void nrf_gpiote_te_default(NRF_GPIOTE_Type * p_reg, uint32_t idx) in nrf_gpiote_te_default() argument
576 p_reg->CONFIG[idx] = 0; in nrf_gpiote_te_default()
579 NRF_STATIC_INLINE bool nrf_gpiote_te_is_enabled(NRF_GPIOTE_Type const * p_reg, uint32_t idx) in nrf_gpiote_te_is_enabled() argument
581 return (p_reg->CONFIG[idx] & GPIOTE_CONFIG_MODE_Msk) != GPIOTE_CONFIG_MODE_Disabled; in nrf_gpiote_te_is_enabled()