Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
#include "SimpleGPIO.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
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) |
int gpio_export | ( | unsigned int | gpio | ) |
Definition at line 49 of file SimpleGPIO.cpp.
int gpio_fd_close | ( | int | fd | ) |
Definition at line 211 of file SimpleGPIO.cpp.
int gpio_fd_open | ( | unsigned int | gpio | ) |
Definition at line 193 of file SimpleGPIO.cpp.
int gpio_get_value | ( | unsigned int | gpio, |
unsigned int * | value | ||
) |
Definition at line 140 of file SimpleGPIO.cpp.
int gpio_omap_mux_setup | ( | const char * | omap_pin0_name, |
const char * | mode | ||
) |
Definition at line 220 of file SimpleGPIO.cpp.
int gpio_set_dir | ( | unsigned int | gpio, |
PIN_DIRECTION | out_flag | ||
) |
Definition at line 90 of file SimpleGPIO.cpp.
int gpio_set_edge | ( | unsigned int | gpio, |
char * | edge | ||
) |
Definition at line 171 of file SimpleGPIO.cpp.
int gpio_set_value | ( | unsigned int | gpio, |
PIN_VALUE | value | ||
) |
Definition at line 115 of file SimpleGPIO.cpp.
int gpio_unexport | ( | unsigned int | gpio | ) |
Definition at line 70 of file SimpleGPIO.cpp.