General functions for Pinmux driver.
More...
General functions for Pinmux driver.
◆ pinmux_set_pin_elec_config()
Configures all electrical parameters for a given pin.
- Parameters
-
| pin_name | Name of the pin to configure. |
| elec_config | Pointer to electrical configuration structure. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_get_pin_elec_config()
Retrieves all electrical parameters for a given pin.
- Parameters
-
| pin_name | Name of the pin to query. |
| elec_config | Pointer to structure to be populated with the current electrical configuration. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_set_pin_elec_param()
Configures a single electrical parameter for a pin.
- Parameters
-
| pin_name | Name of the pin. |
| param | Parameter to configure (pinmux_elec_params_en). |
| value | Value to set for the specified parameter. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_get_pin_elec_param()
Reads a single electrical parameter for a pin.
- Parameters
-
| pin_name | Name of the pin. |
| param | Parameter to read (pinmux_elec_params_en). |
| value | Pointer to receive the value of the parameter. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_set_pin_function()
Routes a peripheral function to a specified pin
- Parameters
-
| pin_name | Name of the pin. |
| function | Function to route to the pin. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_get_pin_function()
Retrieves the function currently routed to a pin.
- Parameters
-
| pin_name | Name of the pin. |
| function | Pointer to receive the function enum. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_config_all()
Configures electrical parameters and function for a single pin.
- Parameters
-
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.
◆ pinmux_config_all_mult()
Configures multiple pins in one call.
- Parameters
-
| config_all | Pointer to array of configuration structures (pinmux_config_all_t). |
| num_pins | Number of pins to configure. |
- Returns
- pinmux_status_en Status code indicating success or the reason for failure.