." Process this file with
." groff -man -Tascii pig2vcd.1
."
-.TH pig2vcd 1 2012-2017 Linux "pigpio archive"
+.TH pig2vcd 1 2012-2018 Linux "pigpio archive"
.SH NAME
pig2vd - A utility to convert pigpio notifications to VCD.
pigpiod(1), pigs(1), pigpio(3), pigpiod_if(3), pigpiod_if2(3)
.SH AUTHOR
-joan@abyz.co.uk
+joan@abyz.me.uk
." Process this file with
." groff -man -Tascii pigpio.3
."
-.TH pigpio 3 2012-2017 Linux "pigpio archive"
+.TH pigpio 3 2012-2018 Linux "pigpio archive"
.SH NAME
pigpio - A C library to manipulate the Pi's GPIO.
.EE
+.br
+
+.br
+See \fBhttp://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/BCM2835-ARM-Peripherals.pdf\fP page 102 for an overview of the modes.
+
.IP "\fBint gpioGetMode(unsigned gpio)\fP"
.IP "" 4
Gets the GPIO mode.
.br
+.br
+
+.EX
+Parameter Value Meaning
+.br
+
+.br
+GPIO 0-53 The GPIO which has changed state
+.br
+
+.br
+level 0-2 0 = change to low (a falling edge)
+.br
+ 1 = change to high (a rising edge)
+.br
+ 2 = no level change (interrupt timeout)
+.br
+
+.br
+tick 32 bit The number of microseconds since boot
+.br
+ WARNING: this wraps around from
+.br
+ 4294967295 to 0 roughly every 72 minutes
+.br
+
+.EE
+
+.br
+
.br
The underlying Linux sysfs GPIO interface is used to provide
the interrupt services.
.br
+.br
+
+.EX
+Parameter Value Meaning
+.br
+
+.br
+GPIO 0-53 The GPIO which has changed state
+.br
+
+.br
+level 0-2 0 = change to low (a falling edge)
+.br
+ 1 = change to high (a rising edge)
+.br
+ 2 = no level change (interrupt timeout)
+.br
+
+.br
+tick 32 bit The number of microseconds since boot
+.br
+ WARNING: this wraps around from
+.br
+ 4294967295 to 0 roughly every 72 minutes
+.br
+
+.br
+userdata pointer Pointer to an arbitrary object
+.br
+
+.EE
+
+.br
+
.br
Only one of \fBgpioSetISRFunc\fP or \fBgpioSetISRFuncEx\fP can be
registered per GPIO.
.br
.br
-See \fBhttp://abyz.co.uk/rpi/pigpio/pigs.html#Scripts\fP for details.
+See \fBhttp://abyz.me.uk/rpi/pigpio/pigs.html#Scripts\fP for details.
.br
pigpiod(1), pig2vcd(1), pigs(1), pigpiod_if(3), pigpiod_if2(3)
.SH AUTHOR
-joan@abyz.co.uk
+joan@abyz.me.uk
For more information, please refer to <http://unlicense.org/>
*/
-/* pigpio version 64 */
+/* pigpio version 65 */
/* include ------------------------------------------------------- */
#define DO_DBG(level, format, arg...) \
{ \
- if (gpioCfg.dbgLevel >= level && \
- (gpioCfg.internals & PI_CFG_SIGHANDLER)) \
+ if ((gpioCfg.dbgLevel >= level) && \
+ (!(gpioCfg.internals & PI_CFG_SIGHANDLER))) \
fprintf(stderr, "%s %s: " format "\n" , \
myTimeStamp(), __FUNCTION__ , ## arg); \
}
PI_DEFAULT_MEM_ALLOC_MODE,
0, /* dbgLevel */
0, /* alertFreq */
- PI_CFG_SIGHANDLER, /* internals */
+ 0, /* internals */
};
/* no initialisation required */
}
#ifndef EMBEDDED_IN_VM
- if(gpioCfg.internals & PI_CFG_SIGHANDLER)
+ if (!(gpioCfg.internals & PI_CFG_SIGHANDLER))
sigSetHandler();
#endif
#ifndef EMBEDDED_IN_VM
if ((gpioCfg.internals & PI_CFG_STATS) &&
- (gpioCfg.internals & PI_CFG_SIGHANDLER))
+ (!(gpioCfg.internals & PI_CFG_SIGHANDLER)))
{
fprintf(stderr,
"\n#####################################################\n");
#include <stdint.h>
#include <pthread.h>
-#define PIGPIO_VERSION 64
+#define PIGPIO_VERSION 6507
/*TEXT
gpioSetMode(22,PI_ALT0); // Set GPIO22 to alternative mode 0.
...
+
+See [[http://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/BCM2835-ARM-Peripherals.pdf]] page 102 for an overview of the modes.
D*/
current tick. The level will be PI_TIMEOUT if the optional
interrupt timeout expires.
+. .
+Parameter Value Meaning
+
+GPIO 0-53 The GPIO which has changed state
+
+level 0-2 0 = change to low (a falling edge)
+ 1 = change to high (a rising edge)
+ 2 = no level change (interrupt timeout)
+
+tick 32 bit The number of microseconds since boot
+ WARNING: this wraps around from
+ 4294967295 to 0 roughly every 72 minutes
+. .
+
The underlying Linux sysfs GPIO interface is used to provide
the interrupt services.
The function is passed the GPIO, the current level, the
current tick, and the userdata pointer.
+. .
+Parameter Value Meaning
+
+GPIO 0-53 The GPIO which has changed state
+
+level 0-2 0 = change to low (a falling edge)
+ 1 = change to high (a rising edge)
+ 2 = no level change (interrupt timeout)
+
+tick 32 bit The number of microseconds since boot
+ WARNING: this wraps around from
+ 4294967295 to 0 roughly every 72 minutes
+
+userdata pointer Pointer to an arbitrary object
+. .
+
Only one of [*gpioSetISRFunc*] or [*gpioSetISRFuncEx*] can be
registered per GPIO.
/*D
This function stores a null terminated script for later execution.
-See [[http://abyz.co.uk/rpi/pigpio/pigs.html#Scripts]] for details.
+See [[http://abyz.me.uk/rpi/pigpio/pigs.html#Scripts]] for details.
. .
script: the text of the script
." Process this file with
." groff -man -Tascii pigpiod.1
."
-.TH pigpiod 1 2012-2017 Linux "pigpio archive"
+.TH pigpiod 1 2012-2018 Linux "pigpio archive"
.SH NAME
pigpiod - A utility to start the pigpio library as a daemon.
pig2vcd(1), pigs(1), pigpio(3), pigpiod_if(3), pigpiod_if2(3)
.SH AUTHOR
-joan@abyz.co.uk
+joan@abyz.me.uk
." Process this file with
." groff -man -Tascii pigpiod_if.3
."
-.TH pigpiod_if 3 2012-2017 Linux "pigpio archive"
+.TH pigpiod_if 3 2012-2018 Linux "pigpio archive"
.SH NAME
pigpiod_if - A C library to interface to the pigpio daemon.
pigpiod(1), pig2vcd(1), pigs(1), pigpio(3), pigpiod_if2(3)
.SH AUTHOR
-joan@abyz.co.uk
+joan@abyz.me.uk
." Process this file with
." groff -man -Tascii pigpiod_if2.3
."
-.TH pigpiod_if2 3 2012-2017 Linux "pigpio archive"
+.TH pigpiod_if2 3 2012-2018 Linux "pigpio archive"
.SH NAME
pigpiod_if2 - A C library to interface to the pigpio daemon.
pigpiod(1), pig2vcd(1), pigs(1), pigpio(3), pigpiod_if(3)
.SH AUTHOR
-joan@abyz.co.uk
+joan@abyz.me.uk
." Process this file with
." groff -man -Tascii foo.1
."
-.TH pigs 1 2012-2017 Linux "pigpio archive"
+.TH pigs 1 2012-2018 Linux "pigpio archive"
.SH NAME
pigs - command line socket access to the pigpio daemon.
pigpiod(1), pig2vcd(1), pigpio(3), pigpiod_if(3), pigpiod_if2(3)
.SH AUTHOR
-joan@abyz.co.uk
+joan@abyz.me.uk