![]() |
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 | |
Functions | |
| static int | strToInt (const string &str, int &val) |
| static void | printValue (int val) |
| static void | mainInit (int argc, char *argv[]) |
| Main initialization. More... | |
| static int | sysfsRead () |
| Read GPIO value(s). More... | |
| int | main (int argc, char *argv[]) |
| Main. More... | |
Variables | |
| static char * | Argv0 |
| the command | |
| static char * | OptsMethod = (char *)"sysfs" |
| system file system | |
| static int | OptsCount = 1 |
| number of reads | |
| static double | OptsInterval = 1.0 |
| read interval in seconds | |
| static bool_t | OptsVerbose = false |
| permissions | |
| static int | ArgsGpio |
| 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 324 of file gpioread.cxx.
References APP_EC_ARGS, mainInit(), OptsMethod, and sysfsRead().
|
static |
Main initialization.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 188 of file gpioread.cxx.
References APP_EC_ARGS, ArgsGpio, Argv0, OptsCount, OptsInfo, OptsInterval, PgmInfo, and PkgInfo.
Referenced by main().
|
static |
Read GPIO value(s).
Method: sysfs
Definition at line 228 of file gpioread.cxx.
References APP_EC_EXEC, APP_EC_OK, ArgsGpio, gpioClose(), gpioOpen(), gpioQuickRead(), OptsCount, and OptsInterval.
Referenced by main().
|
static |
Program information.
Definition at line 70 of file gpioread.cxx.
Referenced by mainInit().