Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
SimpleGPIO.cpp File Reference
#include "SimpleGPIO.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
Include dependency graph for SimpleGPIO.cpp:

Go to the source code of this file.

Functions

int gpio_export (unsigned int gpio)
 
int gpio_unexport (unsigned int gpio)
 
int gpio_set_dir (unsigned int gpio, PIN_DIRECTION out_flag)
 
int gpio_set_value (unsigned int gpio, PIN_VALUE value)
 
int gpio_get_value (unsigned int gpio, unsigned int *value)
 
int gpio_set_edge (unsigned int gpio, char *edge)
 
int gpio_fd_open (unsigned int gpio)
 
int gpio_fd_close (int fd)
 
int gpio_omap_mux_setup (const char *omap_pin0_name, const char *mode)
 

Function Documentation

◆ gpio_export()

int gpio_export ( unsigned int  gpio)

Definition at line 49 of file SimpleGPIO.cpp.

◆ gpio_fd_close()

int gpio_fd_close ( int  fd)

Definition at line 211 of file SimpleGPIO.cpp.

◆ gpio_fd_open()

int gpio_fd_open ( unsigned int  gpio)

Definition at line 193 of file SimpleGPIO.cpp.

◆ gpio_get_value()

int gpio_get_value ( unsigned int  gpio,
unsigned int *  value 
)

Definition at line 140 of file SimpleGPIO.cpp.

◆ gpio_omap_mux_setup()

int gpio_omap_mux_setup ( const char *  omap_pin0_name,
const char *  mode 
)

Definition at line 220 of file SimpleGPIO.cpp.

◆ gpio_set_dir()

int gpio_set_dir ( unsigned int  gpio,
PIN_DIRECTION  out_flag 
)

Definition at line 90 of file SimpleGPIO.cpp.

◆ gpio_set_edge()

int gpio_set_edge ( unsigned int  gpio,
char *  edge 
)

Definition at line 171 of file SimpleGPIO.cpp.

◆ gpio_set_value()

int gpio_set_value ( unsigned int  gpio,
PIN_VALUE  value 
)

Definition at line 115 of file SimpleGPIO.cpp.

◆ gpio_unexport()

int gpio_unexport ( unsigned int  gpio)

Definition at line 70 of file SimpleGPIO.cpp.