iPXE
Data Fields
gpio_operations Struct Reference

GPIO operations. More...

#include <gpio.h>

Data Fields

int(* in )(struct gpios *gpios, struct gpio *gpio)
 Get current GPIO input value. More...
 
void(* out )(struct gpios *gpios, struct gpio *gpio, int active)
 Set current GPIO output value. More...
 
int(* config )(struct gpios *gpios, struct gpio *gpio, unsigned int config)
 Configure GPIO pin. More...
 

Detailed Description

GPIO operations.

Definition at line 57 of file gpio.h.

Field Documentation

◆ in

int( * gpio_operations::in) (struct gpios *gpios, struct gpio *gpio)

Get current GPIO input value.

Parameters
gpiosGPIO controller
gpioGPIO pin
Return values
activePin is in the active state

Definition at line 65 of file gpio.h.

Referenced by gpio_in().

◆ out

void( * gpio_operations::out) (struct gpios *gpios, struct gpio *gpio, int active)

Set current GPIO output value.

Parameters
gpiosGPIO controller
gpioGPIO pin
activeSet pin to active state

Definition at line 73 of file gpio.h.

Referenced by gpio_out().

◆ config

int( * gpio_operations::config) (struct gpios *gpios, struct gpio *gpio, unsigned int config)

Configure GPIO pin.

Parameters
gpiosGPIO controller
gpioGPIO pin
configConfiguration
Return values
rcReturn status code

Definition at line 82 of file gpio.h.

Referenced by gpio_config().


The documentation for this struct was generated from the following file: