Lines Matching full:pin
50 /**@brief Input pin configuration. */
55 …ol is_watcher : 1; /**< True when the input pin is tracking an output pin. */
60 /**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect low-to-high transiti…
70 /**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect high-to-low transiti…
80 /**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect any change on the pi…
90 /**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect low-to-high transiti…
102 /**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect high-to-low transiti…
114 /**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect any change on the pi…
127 /**@brief Output pin configuration. */
130 nrf_gpiote_polarity_t action; /**< Configuration of the pin task. */
131 nrf_gpiote_outinit_t init_state; /**< Initial state of the output pin. */
132 bool task_pin; /**< True if the pin is controlled by a GPIOTE task. */
135 /**@brief Macro for configuring a pin to use as output. GPIOTE is not used for the pin. */
142 /**@brief Macro for configuring a pin to use the GPIO OUT TASK to change the state from high to low.
143 * @details The task will clear the pin. Therefore, the pin is set initially. */
151 /**@brief Macro for configuring a pin to use the GPIO OUT TASK to change the state from low to high.
152 * @details The task will set the pin. Therefore, the pin is cleared initially. */
160 /**@brief Macro for configuring a pin to use the GPIO OUT TASK to toggle the pin state.
161 * @details The initial pin state must be provided. */
169 /** @brief Pin. */
173 * @brief Pin event handler prototype.
175 * @param pin Pin that triggered this event.
178 typedef void (*nrfx_gpiote_evt_handler_t)(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action);
208 * @brief Function for initializing a GPIOTE output pin.
209 * @details The output pin can be controlled by the CPU or by PPI. The initial
214 * @param[in] pin Pin.
218 * @retval NRFX_ERROR_INVALID_STATE If the driver is not initialized or the pin is already used.
221 nrfx_err_t nrfx_gpiote_out_init(nrfx_gpiote_pin_t pin,
225 * @brief Function for uninitializing a GPIOTE output pin.
226 * @details The driver frees the GPIOTE channel if the output pin was using one.
228 * @param[in] pin Pin.
230 void nrfx_gpiote_out_uninit(nrfx_gpiote_pin_t pin);
233 * @brief Function for setting a GPIOTE output pin.
235 * @param[in] pin Pin.
237 void nrfx_gpiote_out_set(nrfx_gpiote_pin_t pin);
240 * @brief Function for clearing a GPIOTE output pin.
242 * @param[in] pin Pin.
244 void nrfx_gpiote_out_clear(nrfx_gpiote_pin_t pin);
247 * @brief Function for toggling a GPIOTE output pin.
249 * @param[in] pin Pin.
251 void nrfx_gpiote_out_toggle(nrfx_gpiote_pin_t pin);
254 * @brief Function for enabling a GPIOTE output pin task.
256 * @param[in] pin Pin.
258 void nrfx_gpiote_out_task_enable(nrfx_gpiote_pin_t pin);
261 * @brief Function for disabling a GPIOTE output pin task.
263 * @param[in] pin Pin.
265 void nrfx_gpiote_out_task_disable(nrfx_gpiote_pin_t pin);
270 * @param[in] pin Pin.
274 uint32_t nrfx_gpiote_out_task_addr_get(nrfx_gpiote_pin_t pin);
280 * @param[in] pin Pin.
284 uint32_t nrfx_gpiote_set_task_addr_get(nrfx_gpiote_pin_t pin);
291 * @param[in] pin Pin.
295 uint32_t nrfx_gpiote_clr_task_addr_get(nrfx_gpiote_pin_t pin);
299 * @brief Function for initializing a GPIOTE input pin.
300 * @details The input pin can act in two ways:
308 * In low accuracy mode SENSE feature is used. In this case only one active pin
313 * @param[in] pin Pin.
318 * @retval NRFX_ERROR_INVALID_STATE If the driver is not initialized or the pin is already used.
321 nrfx_err_t nrfx_gpiote_in_init(nrfx_gpiote_pin_t pin,
326 * @brief Function for uninitializing a GPIOTE input pin.
327 * @details The driver frees the GPIOTE channel if the input pin was using one.
329 * @param[in] pin Pin.
331 void nrfx_gpiote_in_uninit(nrfx_gpiote_pin_t pin);
334 * @brief Function for enabling sensing of a GPIOTE input pin.
336 * @details If the input pin is configured as high-accuracy pin, the function
341 * @param[in] pin Pin.
342 * @param[in] int_enable True to enable the interrupt. Always valid for a high-accuracy pin.
344 void nrfx_gpiote_in_event_enable(nrfx_gpiote_pin_t pin, bool int_enable);
347 * @brief Function for disabling a GPIOTE input pin.
349 * @param[in] pin Pin.
351 void nrfx_gpiote_in_event_disable(nrfx_gpiote_pin_t pin);
354 * @brief Function for checking if a GPIOTE input pin is set.
356 * @param[in] pin Pin.
358 * @retval true If the input pin is set.
359 * @retval false If the input pin is not set.
361 bool nrfx_gpiote_in_is_set(nrfx_gpiote_pin_t pin);
364 * @brief Function for getting the address of a GPIOTE input pin event.
365 …* @details If the pin is configured to use low-accuracy mode, the address of the PORT event is ret…
367 * @param[in] pin Pin.
369 uint32_t nrfx_gpiote_in_event_addr_get(nrfx_gpiote_pin_t pin);
372 * @brief Function for forcing a specific state on the pin configured as task.
374 * @param[in] pin Pin.
375 * @param[in] state Pin state.
377 void nrfx_gpiote_out_task_force(nrfx_gpiote_pin_t pin, uint8_t state);
382 * @param[in] pin Pin.
384 void nrfx_gpiote_out_task_trigger(nrfx_gpiote_pin_t pin);
390 * @param[in] pin Pin.
392 void nrfx_gpiote_set_task_trigger(nrfx_gpiote_pin_t pin);
399 * @param[in] pin Pin.
401 void nrfx_gpiote_clr_task_trigger(nrfx_gpiote_pin_t pin);