#include <sys/types.h>#include <sys/stat.h>#include <pwd.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <fcntl.h>#include <errno.h>#include <unistd.h>#include <syslog.h>#include <string.h>#include <signal.h>#include <ctype.h>#include <sys/socket.h>#include <netdb.h>#include "pigpio.h"
Go to the source code of this file.
Functions | |
| static uint32_t | checkAddr (char *addrStr) |
| void | fatal (char *fmt,...) |
| static uint64_t | getNum (char *str, int *err) |
| static void | initOpts (int argc, char *argv[]) |
| int | main (int argc, char **argv) |
| void | terminate (int signum) |
| void | usage () |
Variables | |
| static unsigned | bufferSizeMilliseconds = PI_DEFAULT_BUFFER_MILLIS |
| static uint32_t | cfgInternals = PI_DEFAULT_CFG_INTERNALS |
| static unsigned | clockMicros = PI_DEFAULT_CLK_MICROS |
| static unsigned | clockPeripheral = PI_DEFAULT_CLK_PERIPHERAL |
| static unsigned | DMAprimaryChannel = PI_DEFAULT_DMA_PRIMARY_CHANNEL |
| static unsigned | DMAsecondaryChannel = PI_DEFAULT_DMA_SECONDARY_CHANNEL |
| static FILE * | errFifo |
| static int | foreground = PI_DEFAULT_FOREGROUND |
| static unsigned | ifFlags = PI_DEFAULT_IF_FLAGS |
| static unsigned | memAllocMode = PI_DEFAULT_MEM_ALLOC_MODE |
| static int | numSockNetAddr = 0 |
| static unsigned | socketPort = PI_DEFAULT_SOCKET_PORT |
| static uint32_t | sockNetAddr [MAX_CONNECT_ADDRESSES] |
| static uint64_t | updateMask = -1 |
| static int | updateMaskSet = 0 |
unsigned bufferSizeMilliseconds = PI_DEFAULT_BUFFER_MILLIS [static] |
uint32_t cfgInternals = PI_DEFAULT_CFG_INTERNALS [static] |
unsigned clockMicros = PI_DEFAULT_CLK_MICROS [static] |
unsigned clockPeripheral = PI_DEFAULT_CLK_PERIPHERAL [static] |
unsigned DMAprimaryChannel = PI_DEFAULT_DMA_PRIMARY_CHANNEL [static] |
unsigned DMAsecondaryChannel = PI_DEFAULT_DMA_SECONDARY_CHANNEL [static] |
int foreground = PI_DEFAULT_FOREGROUND [static] |
unsigned ifFlags = PI_DEFAULT_IF_FLAGS [static] |
unsigned memAllocMode = PI_DEFAULT_MEM_ALLOC_MODE [static] |
int numSockNetAddr = 0 [static] |
unsigned socketPort = PI_DEFAULT_SOCKET_PORT [static] |
uint32_t sockNetAddr[MAX_CONNECT_ADDRESSES] [static] |
uint64_t updateMask = -1 [static] |
int updateMaskSet = 0 [static] |