Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libgpio/libgpio.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* GPIO pin configuration. | * GPIO pin configuration. | ||||
* | * | ||||
* Retrieve the configuration of a specific GPIO pin. The pin number is | * Retrieve the configuration of a specific GPIO pin. The pin number is | ||||
* passed through the gpio_config_t structure. | * passed through the gpio_config_t structure. | ||||
*/ | */ | ||||
int gpio_pin_config(gpio_handle_t, gpio_config_t *); | int gpio_pin_config(gpio_handle_t, gpio_config_t *); | ||||
/* | /* | ||||
* Sets the GPIO pin name. The pin number and pin name to be set are passed | |||||
* as parameters. | |||||
*/ | |||||
int gpio_pin_set_name(gpio_handle_t, gpio_pin_t, char *); | |||||
/* | |||||
* Sets the GPIO flags on a specific GPIO pin. The pin number and the flags | * Sets the GPIO flags on a specific GPIO pin. The pin number and the flags | ||||
* to be set are passed through the gpio_config_t structure. | * to be set are passed through the gpio_config_t structure. | ||||
*/ | */ | ||||
int gpio_pin_set_flags(gpio_handle_t, gpio_config_t *); | int gpio_pin_set_flags(gpio_handle_t, gpio_config_t *); | ||||
/* | /* | ||||
* GPIO pin values. | * GPIO pin values. | ||||
*/ | */ | ||||
int gpio_pin_get(gpio_handle_t, gpio_pin_t); | int gpio_pin_get(gpio_handle_t, gpio_pin_t); | ||||
Show All 24 Lines |