gpio  1.4.2
General Purpose I/O Package
gpioexport.cxx File Reference

Create GPIO exported interface. More...

#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/opts.h"
#include "rnr/pkg.h"
#include "rnr/gpio.h"
#include "version.h"

Go to the source code of this file.

Macros

#define APP_EC_OK   0
 success exit code
 
#define APP_EC_ARGS   2
 command-line options/arguments error exit code
 
#define APP_EC_EXEC   4
 execution exit code
 
#define NO_ARG   -1
 no argument
 

Functions

static void badCmdExit ()
 Exit program on bad command-line values.
 
static int strToInt (const string &str, int &val)
 Convert string to integer.
 
static int strToMode (const string &str, mode_t &mode)
 Convert string to file permissions.
 
static void mainInit (int argc, char *argv[])
 Main initialization. More...
 
int main (int argc, char *argv[])
 Main. More...
 

Variables

static char * Argv0
 the command
 
static char * OptsMode = NULL
 permissions
 
static int ArgsGpioNum
 gpio number
 
static int ArgsGpioDir
 gpio direction
 
static int ArgsGpioEdge
 gpio edge trigger type
 
static mode_t Permissions
 gpio permissions
 
static OptsPgmInfo_T PgmInfo
 Program information. More...
 
static OptsInfo_T OptsInfo []
 Command line options information. More...
 

Detailed Description

Create GPIO exported interface.

LastChangedDate
2015-04-08 17:22:10 -0600 (Wed, 08 Apr 2015)
Rev
3913
Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)

Definition in file gpioexport.cxx.