bool sol_pin_mux_select_mux(const char *board)
Select Pin Multiplexer instructions of a given board.
int sol_pin_mux_setup_pwm(int device, int channel)
Setup the given pin to operate as PWM.
sol_io_protocol
Flags to describe pin capabilities (as the supported protocols).
Definition: sol-pin-mux.h:44
Structure to hold the configuration of a GPIO device.
Definition: sol-gpio.h:150
GPIO capability.
Definition: sol-pin-mux.h:46
UART capability.
Definition: sol-pin-mux.h:50
These routines are used for GPIO access under Soletta.
int sol_pin_mux_setup_aio(int device, int pin)
Setup the given pin to operate as Analog I/O.
SPI capability.
Definition: sol-pin-mux.h:49
I2C capability.
Definition: sol-pin-mux.h:47
AIO capability.
Definition: sol-pin-mux.h:45
int sol_pin_mux_map(const char *label, const enum sol_io_protocol prot,...)
Maps a pin label to the parameters necessary so it works on the desired protocol. ...
int sol_pin_mux_setup_i2c(uint8_t bus)
Setup the pins used of the given i2c bus number to operate in I2C mode.
PWM capability.
Definition: sol-pin-mux.h:48
int sol_pin_mux_setup_gpio(uint32_t pin, const struct sol_gpio_config *config)
Setup the given pin to operate in the given GPIO configuration.