Microchip® Advanced Software Framework

system_pinmux_config Struct Reference

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
enum system_pinmux_pin_pull system_pinmux_config::input_pull
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 _spi_set_config(), _system_pinmux_config(), port_group_set_config(), port_pin_set_config(), and system_pinmux_get_config_defaults().

bool system_pinmux_config::powersave

Enable lowest possible powerstate on the pin.

Note
All other configurations will be ignored, the pin will be disabled.

Referenced by _system_pinmux_config(), port_group_set_config(), port_pin_set_config(), and system_pinmux_get_config_defaults().