20 #ifndef MBED_GPIO_API_H    21 #define MBED_GPIO_API_H   100 void gpio_mode(gpio_t *obj, PinMode mode);
   107 void gpio_dir(gpio_t *obj, PinDirection direction);
   165 void gpio_init_inout(gpio_t *gpio, PinName pin, PinDirection direction, PinMode mode, 
int value);
 void gpio_init_inout(gpio_t *gpio, PinName pin, PinDirection direction, PinMode mode, int value)
Init the pin to be in/out. 
const PinMap * gpio_pinmap(void)
Get the pins that support all GPIO tests. 
void gpio_init(gpio_t *obj, PinName pin)
Initialize the GPIO pin. 
int gpio_is_connected(const gpio_t *obj)
Checks if gpio object is connected (pin was not initialized with NC) 
void gpio_write(gpio_t *obj, int value)
Set the output value. 
int gpio_read(gpio_t *obj)
Read the input value. 
void gpio_dir(gpio_t *obj, PinDirection direction)
Set the pin direction. 
uint32_t gpio_set(PinName pin)
Set the given pin as GPIO. 
void gpio_init_out(gpio_t *gpio, PinName pin)
Init the output pin as an output, with predefined output value 0. 
void gpio_mode(gpio_t *obj, PinMode mode)
Set the input pin mode. 
void gpio_init_out_ex(gpio_t *gpio, PinName pin, int value)
Init the pin as an output and set the output value. 
void gpio_init_in(gpio_t *gpio, PinName pin)
Init the input pin and set mode to PullDefault. 
void gpio_free(gpio_t *obj)
Releases the GPIO pin. 
void gpio_init_in_ex(gpio_t *gpio, PinName pin, PinMode mode)
Init the input pin and set the mode.