sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
gpio.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <wiringPi.h>
#include <wpiExtensions.h>
#include <gertboard.h>
#include <piFace.h>
#include "../version.h"

Macros

#define TRUE   (1==1)
 
#define FALSE   (1==2)
 
#define PI_USB_POWER_CONTROL   38
 
#define I2CDETECT   "i2cdetect"
 
#define MODPROBE   "modprobe"
 
#define RMMOD   "rmmod"
 

Functions

void doReadall (void)
 
void doAllReadall (void)
 
void doQmode (int argc, char *argv[])
 
void doExport (int argc, char *argv[])
 
void doWfi (int argc, char *argv[])
 
void doEdge (int argc, char *argv[])
 
void doUnexport (int argc, char *argv[])
 
void doUnexportall (char *progName)
 
void doMode (int argc, char *argv[])
 
void doRead (int argc, char *argv[])
 
void doAread (int argc, char *argv[])
 
void doToggle (int argc, char *argv[])
 
void doBlink (int argc, char *argv[])
 
void doPwmTone (int argc, char *argv[])
 
void doClock (int argc, char *argv[])
 
void doPwm (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Variables

int wiringPiDebug
 
int wpMode
 
char * usage
 

Macro Definition Documentation

#define FALSE   (1==2)
#define I2CDETECT   "i2cdetect"
#define MODPROBE   "modprobe"
#define PI_USB_POWER_CONTROL   38
#define RMMOD   "rmmod"
#define TRUE   (1==1)

Function Documentation

void doAllReadall ( void  )
void doAread ( int  argc,
char *  argv[] 
)
void doBlink ( int  argc,
char *  argv[] 
)
void doClock ( int  argc,
char *  argv[] 
)
void doEdge ( int  argc,
char *  argv[] 
)
void doExport ( int  argc,
char *  argv[] 
)
void doMode ( int  argc,
char *  argv[] 
)
void doPwm ( int  argc,
char *  argv[] 
)
void doPwmTone ( int  argc,
char *  argv[] 
)
void doQmode ( int  argc,
char *  argv[] 
)
void doRead ( int  argc,
char *  argv[] 
)
void doReadall ( void  )
void doToggle ( int  argc,
char *  argv[] 
)
void doUnexport ( int  argc,
char *  argv[] 
)
void doUnexportall ( char *  progName)
void doWfi ( int  argc,
char *  argv[] 
)
int main ( int  argc,
char *  argv[] 
)

Variable Documentation

char* usage
Initial value:
= "Usage: gpio -v\n"
" gpio -h\n"
" gpio [-g|-1] ...\n"
" gpio [-d] ...\n"
" [-x extension:params] [[ -x ...]] ...\n"
" gpio [-p] <read/write/wb> ...\n"
" gpio <mode/read/write/aread/awritewb/pwm/pwmTone/clock> ...\n"
" gpio <toggle/blink> <pin>\n"
" gpio readall\n"
" gpio unexportall/exports\n"
" gpio export/edge/unexport ...\n"
" gpio wfi <pin> <mode>\n"
" gpio drive <group> <value>\n"
" gpio pwm-bal/pwm-ms \n"
" gpio pwmr <range> \n"
" gpio pwmc <divider> \n"
" gpio load spi/i2c\n"
" gpio unload spi/i2c\n"
" gpio i2cd/i2cdetect\n"
" gpio rbx/rbd\n"
" gpio wb <value>\n"
" gpio usbp high/low\n"
" gpio gbr <channel>\n"
" gpio gbw <channel> <value>"
int wiringPiDebug
int wpMode