![]() |
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 | mainInit (int argc, char *argv[]) |
| Main initialization. More... | |
| static int | sysfsSetDirection () |
| Set GPIO directiion. 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 | ArgsGpio |
| gpio number | |
| static int | ArgsDirection |
| gpio direction | |
| static OptsPgmInfo_T | PgmInfo |
| Program information. More... | |
| static OptsInfo_T | OptsInfo [] |
| Command line options information. More... | |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 237 of file gpiodirection.cxx.
References APP_EC_ARGS, mainInit(), OptsMethod, and sysfsSetDirection().
|
static |
Main initialization.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 130 of file gpiodirection.cxx.
References APP_EC_ARGS, ArgsDirection, ArgsGpio, Argv0, GPIO_DIR_IN, GPIO_DIR_IN_STR, GPIO_DIR_OUT, GPIO_DIR_OUT_STR, OptsInfo, PgmInfo, and PkgInfo.
Referenced by main().
|
static |
Set GPIO directiion.
Method: sysfs
Definition at line 181 of file gpiodirection.cxx.
References APP_EC_EXEC, APP_EC_OK, ArgsDirection, ArgsGpio, and gpioSetDirection().
Referenced by main().
|
static |
Command line options information.
Definition at line 86 of file gpiodirection.cxx.
Referenced by mainInit().
|
static |
Program information.
Definition at line 65 of file gpiodirection.cxx.
Referenced by mainInit().