Macros | Functions | Variables
pigs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "pigpio.h"
#include "command.h"
#include "pigs.h"
Include dependency graph for pigs.c:

Go to the source code of this file.

Macros

#define PRINT_ASCII   2
 
#define PRINT_HEX   1
 
#define SOCKET_OPEN_FAILED   -1
 

Functions

void get_extensions (int sock, int command, int res)
 
static int initOpts (int argc, char *argv[])
 
int main (int argc, char *argv[])
 
static int openSocket (void)
 
void print_result (int sock, int rv, cmdCmd_t cmd)
 
void report (int err, char *fmt,...)
 

Variables

char command_buf [CMD_MAX_EXTENSION]
 
int printFlags = 0
 
char response_buf [CMD_MAX_EXTENSION]
 
int status = PIGS_OK
 

Macro Definition Documentation

#define PRINT_ASCII   2

Definition at line 62 of file pigs.c.

#define PRINT_HEX   1

Definition at line 61 of file pigs.c.

#define SOCKET_OPEN_FAILED   -1

Definition at line 59 of file pigs.c.

Function Documentation

void get_extensions ( int  sock,
int  command,
int  res 
)

Definition at line 268 of file pigs.c.

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

Definition at line 80 of file pigs.c.

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

Definition at line 298 of file pigs.c.

static int openSocket ( void  )
static

Definition at line 110 of file pigs.c.

void print_result ( int  sock,
int  rv,
cmdCmd_t  cmd 
)

Definition at line 150 of file pigs.c.

void report ( int  err,
char *  fmt,
  ... 
)

Definition at line 64 of file pigs.c.

Variable Documentation

char command_buf[CMD_MAX_EXTENSION]

Definition at line 52 of file pigs.c.

int printFlags = 0

Definition at line 55 of file pigs.c.

char response_buf[CMD_MAX_EXTENSION]

Definition at line 53 of file pigs.c.

int status = PIGS_OK

Definition at line 57 of file pigs.c.



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