Lines Matching +full:pin +full:- +full:id
3 * SPDX-License-Identifier: Apache-2.0
8 * Public APIs for pin control drivers
15 * @brief Pin Controller Interface
16 * @defgroup pinctrl_interface Pin Controller Interface
36 * @name Pin control states
51 /** Pin control state configuration. */
53 /** Pin configurations. */
55 /** Number of pin configurations. */
58 uint8_t id; member
61 /** Pin controller configuration for a given device. */
140 * @brief Helper macro to define pins for a given pin control state.
152 * @brief Helper macro to initialize a pin control state.
163 .id = Z_PINCTRL_STATE_ID(state_idx, node_id) \
180 * @brief Helper macro to initialize pin control config.
214 * @brief Declare pin control configuration for a given node identifier.
216 * This macro should be used by tests or applications using runtime pin control
217 * to declare the pin control configuration for a device.
231 * @brief Define all pin control information for the given node identifier.
234 * defines and initializes the pin control configuration for the device
235 * represented by node_id. Each pin control state (pinctrl-0, ..., pinctrl-N) is
250 * @brief Define all pin control information for the given compatible index.
259 * @brief Obtain a reference to the pin control configuration given a node
267 * @brief Obtain a reference to the pin control configuration given current
278 * @brief Find the state configuration for the given state id.
280 * @param config Pin controller configuration.
281 * @param id Pin controller state id (see @ref PINCTRL_STATES).
285 * @retval -ENOENT If the state has not been found.
287 int pinctrl_lookup_state(const struct pinctrl_dev_config *config, uint8_t id,
304 * @retval -errno Negative errno for other failures.
312 * @param config Pin control configuration.
316 * @retval -errno Negative errno for other failures.
325 reg = config->reg; in pinctrl_apply_state_direct()
331 return pinctrl_configure_pins(state->pins, state->pin_cnt, reg); in pinctrl_apply_state_direct()
337 * @param config Pin control configuration.
338 * @param id Id of the state to be applied (see @ref PINCTRL_STATES).
341 * @retval -ENOENT If given state id does not exist.
342 * @retval -errno Negative errno for other failures.
345 uint8_t id) in pinctrl_apply_state() argument
350 ret = pinctrl_lookup_state(config, id, &state); in pinctrl_apply_state()
360 * @defgroup pinctrl_interface_dynamic Dynamic Pin Control
365 * @brief Helper macro to define the pins of a pin control state from
381 * @brief Utility macro to initialize a pin control state.
384 * when using dynamic pin control to define an alternative state configuration
394 * // uart0_alt_default node contains alternative pin config
419 .id = state \
430 * @param config Pin control configuration.
434 * @retval -EINVAL If the new configuration does not contain the same states as
436 * @retval -ENOSYS If the functionality is not available.
452 return -ENOSYS; in pinctrl_update_states()