." Process this file with ." groff -man -Tascii pig2vcd.1 ." .TH pig2vcd 1 2012-2015 Linux "pigpio archive" .SH NAME pig2vd - A utility to convert pigpio notifications to VCD. .SH SYNOPSIS pig2vcd file.VCD .SH DESCRIPTION .ad l .nh pig2vcd is a utility which reads notifications on stdin and writes the output as a Value Change Dump (VCD) file on stdout. .br .br The VCD file can be viewed using GTKWave. .br .br .SS Notifications .br .br Notifications consist of 12 bytes with the following binary format. .br .br .EX typedef struct .br { .br uint16_t seqno; .br uint16_t flags; .br uint32_t tick; .br uint32_t level; .br } gpioReport_t; .br .EE .br .br seqno: starts at 0 each time the handle is opened and then increments by one for each report. .br .br flags: two flags are defined, PI_NTFY_FLAGS_WDOG and PI_NTFY_FLAGS_ALIVE. If bit 5 is set (PI_NTFY_FLAGS_WDOG) then bits 0-4 of the flags indicate a gpio which has had a watchdog timeout; if bit 6 is set (PI_NTFY_FLAGS_ALIVE) this indicates a keep alive signal on the pipe/socket and is sent once a minute in the absence of other notification activity. .br .br tick: the number of microseconds since system boot. It wraps around after 1h12m. .br .br level: indicates the level of each gpio. If bit 1<