![]() |
gpio
1.4.2
General Purpose I/O Package
|
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 | |
| #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 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... | |
| 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. | |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 295 of file gpioexport.cxx.
References APP_EC_EXEC, APP_EC_OK, ArgsGpioDir, ArgsGpioEdge, ArgsGpioNum, gpioExport(), gpioMakeDirname(), gpioSetDirection(), gpioSetEdge(), mainInit(), NO_ARG, OptsMode, and Permissions.
|
static |
Main initialization.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 201 of file gpioexport.cxx.
References ArgsGpioDir, ArgsGpioEdge, ArgsGpioNum, Argv0, badCmdExit(), GPIO_DIR_IN, GPIO_DIR_IN_STR, GPIO_DIR_OUT, GPIO_DIR_OUT_STR, GPIO_EDGE_BOTH, GPIO_EDGE_BOTH_STR, GPIO_EDGE_FALLING, GPIO_EDGE_FALLING_STR, GPIO_EDGE_NONE, GPIO_EDGE_NONE_STR, GPIO_EDGE_RISING, GPIO_EDGE_RISING_STR, NO_ARG, OptsInfo, OptsMode, Permissions, PgmInfo, PkgInfo, strToInt(), and strToMode().
Referenced by main().
|
static |
Command line options information.
Definition at line 100 of file gpioexport.cxx.
Referenced by mainInit().
|
static |
Program information.
Definition at line 68 of file gpionotify.cxx.
Referenced by mainInit().
|
static |
Program information.
Definition at line 72 of file gpioexport.cxx.
Referenced by mainInit().