Lines Matching full:pin
64 * @brief Macro for mapping port and pin numbers to values understandable for nrf_gpio functions.
66 #define NRF_GPIO_PIN_MAP(port, pin) (((port) << 5) | ((pin) & 0x1F)) argument
69 * @brief Pin direction definitions.
87 …* @brief Enumerator used for selecting the pin to be pulled down or up at the time of pin configur…
91 NRF_GPIO_PIN_NOPULL = GPIO_PIN_CNF_PULL_Disabled, ///< Pin pull-up resistor disabled.
92 NRF_GPIO_PIN_PULLDOWN = GPIO_PIN_CNF_PULL_Pulldown, ///< Pin pull-down resistor enabled.
93 NRF_GPIO_PIN_PULLUP = GPIO_PIN_CNF_PULL_Pullup, ///< Pin pull-up resistor enabled.
112 * @brief Enumerator used for selecting the pin to sense high or low level on the pin input.
116 NRF_GPIO_PIN_NOSENSE = GPIO_PIN_CNF_SENSE_Disabled, ///< Pin sense level disabled.
117 NRF_GPIO_PIN_SENSE_LOW = GPIO_PIN_CNF_SENSE_Low, ///< Pin sense low level.
118 NRF_GPIO_PIN_SENSE_HIGH = GPIO_PIN_CNF_SENSE_High, ///< Pin sense high level.
122 * @brief Function for configuring the GPIO pin range as output pins with normal drive strength.
123 …* This function can be used to configure pin range as simple output with gate driving GPIO_…
125 …* @param pin_range_start Specifies the start number (inclusive) in the range of pin numbers to be …
127 …* @param pin_range_end Specifies the end number (inclusive) in the range of pin numbers to be conf…
129 * @note For configuring only one pin as output, use @ref nrf_gpio_cfg_output.
130 …* Sense capability on the pin is disabled and input is disconnected from the buffer as the p…
135 …* @brief Function for configuring the GPIO pin range as input pins with given initial value set, h…
136 * This function can be used to configure pin range as simple input.
138 …* @param pin_range_start Specifies the start number (inclusive) in the range of pin numbers to be …
140 …* @param pin_range_end Specifies the end number (inclusive) in the range of pin numbers to be conf…
142 * @param pull_config State of the pin range pull resistor (no pull, pulled down, or pulled high).
144 * @note For configuring only one pin as input, use @ref nrf_gpio_cfg_input.
145 …* Sense capability on the pin is disabled and input is connected to buffer so that the GPIO…
152 * @brief Pin configuration function.
154 * The main pin configuration function.
156 * @param pin_number Specifies the pin number.
157 * @param dir Pin direction.
161 * @param sense Pin sensing mechanism.
172 * @brief Function for configuring the given GPIO pin number as output, hiding inner details.
173 …* This function can be used to configure a pin as simple output with gate driving GPIO_PIN_…
175 * @param pin_number Specifies the pin number.
177 …* @note Sense capability on the pin is disabled and input is disconnected from the buffer as the …
182 * @brief Function for configuring the given GPIO pin number as input, hiding inner details.
183 * This function can be used to configure a pin as simple input.
185 * @param pin_number Specifies the pin number.
186 * @param pull_config State of the pin range pull resistor (no pull, pulled down, or pulled high).
188 …* @note Sense capability on the pin is disabled and input is connected to buffer so that the GPIO…
193 * @brief Function for resetting pin configuration to its default state.
195 * @param pin_number Specifies the pin number.
200 * @brief Function for configuring the given GPIO pin number as a watcher. Only input is connected.
202 * @param pin_number Specifies the pin number.
210 * @param pin_number Specifies the pin number.
216 * @brief Function for configuring the given GPIO pin number as input, hiding inner details.
217 * This function can be used to configure pin range as simple input.
218 …* Sense capability on the pin is configurable and input is connected to buffer so that the …
220 * @param pin_number Specifies the pin number.
221 * @param pull_config State of the pin pull resistor (no pull, pulled down, or pulled high).
222 * @param sense_config Sense level of the pin (no sense, sense low, or sense high).
231 * @param pin_number Specifies the pin number.
238 * @brief Function for setting the direction for a GPIO pin.
240 * @param pin_number Specifies the pin number for which to set the direction.
247 * @brief Function for setting a GPIO pin.
249 * Note that the pin must be configured as an output for this function to have any effect.
251 * @param pin_number Specifies the pin number to set.
256 * @brief Function for clearing a GPIO pin.
258 * Note that the pin must be configured as an output for this
261 * @param pin_number Specifies the pin number to clear.
266 * @brief Function for toggling a GPIO pin.
268 * Note that the pin must be configured as an output for this
271 * @param pin_number Specifies the pin number to toggle.
276 * @brief Function for writing a value to a GPIO pin.
278 * Note that the pin must be configured as an output for this
281 * @param pin_number Specifies the pin number to write.
283 * @param value Specifies the value to be written to the pin.
284 * @arg 0 Clears the pin.
285 * @arg >=1 Sets the pin.
290 * @brief Function for reading the input level of a GPIO pin.
292 * Note that the pin must have input connected for the value
295 * @param pin_number Specifies the pin number to read.
297 * @return 0 if the pin input level is low. Positive value if the pin is high.
302 * @brief Function for reading the output level of a GPIO pin.
304 * @param pin_number Specifies the pin number to read.
306 * @return 0 if the pin output level is low. Positive value if pin output is high.
311 * @brief Function for reading the sense configuration of a GPIO pin.
313 * @param pin_number Specifies the pin number to read.
320 * @brief Function for reading the direction configuration of a GPIO pin.
322 * @param pin_number Specifies the pin number to read.
329 * @brief Function for reading the pull configuration of a GPIO pin.
331 * @param pin_number Specifies the pin number to read.
359 …* @param dir_mask Mask specifying the direction of pins. Bit set means that the given pin is confi…
369 …* @retval Pin configuration of the current direction settings. Bit set means that the given pin is…
439 * @brief Function for reading latch state of single pin.
441 * @param pin_number Pin number.
448 * @brief Function for clearing latch state of a single pin.
450 * @param pin_number Pin number.
459 * @brief Function for extracting port and relative pin number from absolute pin number.
461 * @param[inout] Pointer to absolute pin number which is overriden by relative to port pin number.