WVTAT ::
This command returns the id of the waveform currently
-being transmitted.
+being transmitted. Chained waves are not supported.
Returns the waveform id or one of the following special
values:
return 0;
}
-int gpioCfgInternals(unsigned cfgWhat, unsigned cfgVal)
-{
- int retVal = PI_BAD_CFG_INTERNAL;
-
- DBG(DBG_USER, "cfgWhat=%u, cfgVal=%d", cfgWhat, cfgVal);
-
- switch(cfgWhat)
- {
- case 562484977:
-
- if (cfgVal) gpioCfg.internals |= PI_CFG_STATS;
- else gpioCfg.internals &= (~PI_CFG_STATS);
-
- DBG(DBG_ALWAYS, "show stats is %u", cfgVal);
-
- retVal = 0;
-
- break;
-
- case 984762879:
-
- if ((cfgVal >= DBG_ALWAYS) && (cfgVal <= DBG_MAX_LEVEL))
- {
-
- gpioCfg.dbgLevel = cfgVal;
- gpioCfg.internals = (gpioCfg.internals & (~0xF)) | cfgVal;
-
- DBG(DBG_ALWAYS, "Debug level is %u", cfgVal);
-
- retVal = 0;
- }
-
- break;
- }
-
- return retVal;
-}
-
/* include any user customisations */
If the library is initialised the [*gpioCfg**] functions will return
error PI_INITIALISED.
+If you intend to rely on signals sent to your application, you should
+turn off the internal signal handling as show in this example:
+. .
+int cfg = gpioCfgGetInternals();
+cfg |= PI_CFG_NOSIGHANDLER; // (1<<10)
+gpioCfgSetInternals(cfg);
+int status = gpioInitialise();
+. .
+
TEXT*/
/*OVERVIEW
gpioCfgMemAlloc Configure DMA memory allocation mode
gpioCfgNetAddr Configure allowed network addresses
-gpioCfgInternals Configure misc. internals (DEPRECATED)
gpioCfgGetInternals Get internal configuration settings
gpioCfgSetInternals Set internal configuration settings
D*/
-/*F*/
-int gpioCfgInternals(unsigned cfgWhat, unsigned cfgVal);
-/*D
-Used to tune internal settings.
-
-. .
-cfgWhat: see source code
- cfgVal: see source code
-. .
-D*/
-
-
/*F*/
uint32_t gpioCfgGetInternals(void);
/*D
. .
cfgVal: see source code
. .
+
D*/