![]() |
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 int | strToBits (const string &str, byte_t *p) |
| static void | mainInit (int argc, char *argv[]) |
| Main initialization. More... | |
| static int | sysfsBitBang () |
| Bit bang bit pattern. 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 | OptsIbd = 1000 |
| inter-bit delay | |
| static int | ArgsGpio |
| gpio number | |
| static byte_t * | ArgsPattern |
| bit pattern to write | |
| static size_t | PatByteCount |
| pattern byte count | |
| static size_t | PatBitCount |
| pattern bit count | |
| 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 308 of file gpiobitbang.cxx.
References APP_EC_ARGS, ArgsGpio, ArgsPattern, mainInit(), OptsIbd, OptsMethod, PatByteCount, and sysfsBitBang().
Referenced by mainInit().
|
static |
Main initialization.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 190 of file gpiobitbang.cxx.
References APP_EC_ARGS, ArgsGpio, ArgsPattern, Argv0, OptsInfo, PatBitCount, PatByteCount, PgmInfo, and PkgInfo.
Referenced by main().
|
static |
Bit bang bit pattern.
Method: sysfs
Definition at line 244 of file gpiobitbang.cxx.
References APP_EC_EXEC, APP_EC_OK, ArgsGpio, ArgsPattern, gpioBitBang(), gpioClose(), gpioOpen(), OptsIbd, and PatBitCount.
Referenced by main().
|
static |
Program information.
Definition at line 69 of file gpiobitbang.cxx.
Referenced by mainInit().