Port pin configuration structure.
Configuration structure for a port pin instance. This structure should be initialized by the system_pinmux_get_config_defaults() function before being modified by the user application.
#include <pinmux.h>
Data Fields | |
enum system_pinmux_pin_dir | direction |
Port buffer input/output direction. More... | |
enum system_pinmux_pin_pull | input_pull |
Logic level pull of the input buffer. More... | |
uint8_t | mux_position |
MUX index of the peripheral that should control the pin, if peripheral control is desired. More... | |
bool | powersave |
Enable lowest possible powerstate on the pin. More... | |
enum system_pinmux_pin_dir system_pinmux_config::direction |
Port buffer input/output direction.
Referenced by _i2c_slave_set_config(), _spi_set_config(), _system_pinmux_config(), config_clock_output_and_extwake_pin(), configure_ac_channel(), configure_ccl_lut0(), configure_ccl_lut1(), configure_non_inverting_pga_opamp0(), configure_opamp2(), dac_chan_set_config(), extint_chan_set_config(), extint_nmi_set_config(), main(), port_group_set_config(), port_pin_set_config(), run_ac_init_test(), setup_ac_callback_mode_test(), setup_ac_window_mode_test(), system_pinmux_get_config_defaults(), tc_init(), tcc_init(), and usart_init().
enum system_pinmux_pin_pull system_pinmux_config::input_pull |
Logic level pull of the input buffer.
Referenced by _adc_configure_ain_pin(), _spi_set_config(), _system_pinmux_config(), config_clock_output_and_extwake_pin(), dac_chan_set_config(), extint_chan_set_config(), extint_nmi_set_config(), main(), port_group_set_config(), port_pin_set_config(), system_pinmux_get_config_defaults(), and usart_init().
uint8_t system_pinmux_config::mux_position |
MUX index of the peripheral that should control the pin, if peripheral control is desired.
For GPIO use, this should be set to SYSTEM_PINMUX_GPIO.
Referenced by _adc_configure_ain_pin(), _i2c_slave_set_config(), _spi_set_config(), _system_pinmux_config(), config_clock_output_and_extwake_pin(), configure_ac_channel(), configure_ccl_lut0(), configure_ccl_lut1(), configure_non_inverting_pga_opamp0(), configure_opamp2(), dac_chan_set_config(), extint_chan_set_config(), extint_nmi_set_config(), main(), port_group_set_config(), port_pin_set_config(), run_ac_init_test(), setup_ac_callback_mode_test(), setup_ac_window_mode_test(), system_pinmux_get_config_defaults(), tc_init(), tcc_init(), usart_init(), and usb_init().
bool system_pinmux_config::powersave |
Enable lowest possible powerstate on the pin.
Referenced by _system_pinmux_config(), port_group_set_config(), port_pin_set_config(), and system_pinmux_get_config_defaults().