AWS IoT for ESP32 v1.0.0
An ESP-IDF based solution
lib_gpio.h File Reference

GPIO library header file. More...

Go to the source code of this file.

Typedefs

typedef void(* gpio_intr_handler) (void *arg)
 GPIO interrupt handler callback function. The application should define it and provide it in GPIO_pinMode as parameter.
 

Functions

void GPIO_pinMode (gpio_num_t, gpio_mode_t, GPIO_INT_TYPE, gpio_intr_handler)
 Configure GPIO pin, mode, interrupt & interrupt handler. More...
 

Detailed Description

GPIO library header file.

Function Documentation

◆ GPIO_pinMode()

void GPIO_pinMode ( gpio_num_t  ,
gpio_mode_t  ,
GPIO_INT_TYPE  ,
gpio_intr_handler   
)

Configure GPIO pin, mode, interrupt & interrupt handler.

Parameters
gpioNumGPIO number
modeGPIO mode
intrTypeGPIO interrupt type
handlerGPIO interrupt callback handler
Returns
none