Developer World
Spresense SDK Library v3.2.0-ebc0364
cxd56_gpioif.h File Reference
#include <nuttx/config.h>
#include <stdint.h>
#include <stdbool.h>
#include <nuttx/irq.h>

Go to the source code of this file.

Macros

#define EXTERN   extern "C"
 
Pin Pull Setting

Pin floating, pull up, pull down definitions

#define PIN_FLOAT   (0) /* Floating */
 
#define PIN_PULLUP   (1) /* Internal Weak Pull Up */
 
#define PIN_PULLDOWN   (2) /* Internal Weak Pull Down */
 
#define PIN_BUSKEEPER   (3) /* Internal Bus-Keeper */
 

GPIO Interrupt Setting

GPIO interrupt level and edge trigger types

#define INT_HIGH_LEVEL   (2) /* High Level */
 
#define INT_LOW_LEVEL   (3) /* Low Level */
 
#define INT_RISING_EDGE   (4) /* Rising Edge */
 
#define INT_FALLING_EDGE   (5) /* Falling Edge */
 
#define INT_BOTH_EDGE   (7) /* Both Edge */
 
int board_gpio_config (uint32_t pin, int mode, bool input, bool drive, int pull)
 
int board_gpio_status (uint32_t pin, bool *input, bool *output, bool *drive, int *pull)
 
void board_gpio_write (uint32_t pin, int value)
 
int board_gpio_read (uint32_t pin)
 
int board_gpio_intconfig (uint32_t pin, int mode, bool filter, xcpt_t isr)
 
int board_gpio_intstatus (uint32_t pin, int *mode, bool *filter, bool *enabled)
 
int board_gpio_int (uint32_t pin, bool enable)