Macros | Functions | Variables
freq_count_2.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <pigpio.h>
Include dependency graph for freq_count_2.c:

Go to the source code of this file.

Macros

#define MAX_GPIOS   32
 
#define OPT_P_DEF   20
 
#define OPT_P_MAX   1000
 
#define OPT_P_MIN   1
 
#define OPT_R_DEF   5
 
#define OPT_R_MAX   10
 
#define OPT_R_MIN   1
 
#define OPT_S_DEF   5
 
#define OPT_S_MAX   10
 
#define OPT_S_MIN   1
 

Functions

void fatal (int show_usage, char *fmt,...)
 
static int initOpts (int argc, char *argv[])
 
int main (int argc, char *argv[])
 
void samples (const gpioSample_t *samples, int numSamples)
 
void usage ()
 

Variables

static int g_gpio [MAX_GPIOS]
 
static uint32_t g_mask
 
static int g_num_gpios
 
static int g_opt_p = OPT_P_DEF
 
static int g_opt_r = OPT_R_DEF
 
static int g_opt_s = OPT_S_DEF
 
static int g_opt_t = 0
 
static volatile int g_pulse_count [MAX_GPIOS]
 
static volatile int g_reset_counts
 

Macro Definition Documentation

#define MAX_GPIOS   32

Definition at line 44 of file freq_count_2.c.

#define OPT_P_DEF   20

Definition at line 48 of file freq_count_2.c.

#define OPT_P_MAX   1000

Definition at line 47 of file freq_count_2.c.

#define OPT_P_MIN   1

Definition at line 46 of file freq_count_2.c.

#define OPT_R_DEF   5

Definition at line 52 of file freq_count_2.c.

#define OPT_R_MAX   10

Definition at line 51 of file freq_count_2.c.

#define OPT_R_MIN   1

Definition at line 50 of file freq_count_2.c.

#define OPT_S_DEF   5

Definition at line 56 of file freq_count_2.c.

#define OPT_S_MAX   10

Definition at line 55 of file freq_count_2.c.

#define OPT_S_MIN   1

Definition at line 54 of file freq_count_2.c.

Function Documentation

void fatal ( int  show_usage,
char *  fmt,
  ... 
)

Definition at line 89 of file freq_count_2.c.

static int initOpts ( int  argc,
char *  argv[] 
)
static

Definition at line 107 of file freq_count_2.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 175 of file freq_count_2.c.

void samples ( const gpioSample_t samples,
int  numSamples 
)

Definition at line 147 of file freq_count_2.c.

void usage ( )

Definition at line 70 of file freq_count_2.c.

Variable Documentation

int g_gpio[MAX_GPIOS]
static

Definition at line 63 of file freq_count_2.c.

uint32_t g_mask
static

Definition at line 60 of file freq_count_2.c.

int g_num_gpios
static

Definition at line 62 of file freq_count_2.c.

int g_opt_p = OPT_P_DEF
static

Definition at line 65 of file freq_count_2.c.

int g_opt_r = OPT_R_DEF
static

Definition at line 66 of file freq_count_2.c.

int g_opt_s = OPT_S_DEF
static

Definition at line 67 of file freq_count_2.c.

int g_opt_t = 0
static

Definition at line 68 of file freq_count_2.c.

volatile int g_pulse_count[MAX_GPIOS]
static

Definition at line 58 of file freq_count_2.c.

volatile int g_reset_counts
static

Definition at line 59 of file freq_count_2.c.



cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:57