![]() |
gpio
1.4.2
General Purpose I/O Package
|
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 <fcntl.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 | |
Functions | |
| static void | badCmdExit () |
| Exit program on bad command-line values. | |
| static int | strToInt (const string &str, int &val) |
| Convert string to integer. | |
| 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 bool_t | OptsMonitor = false |
| do [not] keep listening for events | |
| static double | OptsTimeout = 0.0 |
| event timeout (none) | |
| static int | ArgsGpioNum |
| gpio number | |
| static OptsPgmInfo_T | PgmInfo |
| Program information. More... | |
| static OptsInfo_T | OptsInfo [] |
| Command line options information. | |
Create GPIO exported interface.
Definition in file gpionotify.cxx.
|
static |
Main initialization.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 168 of file gpionotify.cxx.
References APP_EC_EXEC, APP_EC_OK, ArgsGpioNum, Argv0, badCmdExit(), gpioNotify(), gpioOpen(), gpioQuickRead(), main(), OptsInfo, OptsMonitor, OptsTimeout, PgmInfo, PkgInfo, and strToInt().