areaDetector  3-14
EPICS areaDetector framework
Classes | Macros | Typedefs | Functions
firewiretool.cpp File Reference
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <getopt.h>
#include <ellLib.h>
#include <dc1394/dc1394.h>

Classes

struct  dc1394_colorCodeString_t
 
struct  camLinkedList
 
struct  fwtooloptions_t
 
struct  camNode_t
 

Macros

#define FDC_DC1394_NUM_BUFFERS   5
 Number of image buffers the dc1394 library will use internally. More...
 
#define ERR(errCode)
 Print an errorcode to stderr. More...
 

Typedefs

typedef struct camLinkedList camListItem_t
 
typedef struct camNode_t camNode_t
 

Functions

void parseOptions (int argc, char *argv[])
 
dc1394camera_t * findcam (dc1394camera_t **cams, int ncams, char *guid)
 
int allocate_cams (dc1394_t *bus, dc1394camera_list_t *list, dc1394camera_t **cams, int verbose)
 
void reportModes (dc1394camera_t *cam)
 
void reportFeatures (dc1394camera_t *cam)
 
const char * getColorCodeString (dc1394color_coding_t code)
 
void reset_bus ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ ERR

#define ERR (   errCode)
Value:
do { \
int __err__ = (errCode); \
if (__err__ != 0) \
fprintf(stderr, \
"ERROR [%s:%d]: dc1394 code: %d\n", \
__FILE__, __LINE__, __err__); \
} while (0)

Print an errorcode to stderr.

◆ FDC_DC1394_NUM_BUFFERS

#define FDC_DC1394_NUM_BUFFERS   5

Number of image buffers the dc1394 library will use internally.

Typedef Documentation

◆ camListItem_t

typedef struct camLinkedList camListItem_t

◆ camNode_t

typedef struct camNode_t camNode_t

Function Documentation

◆ allocate_cams()

int allocate_cams ( dc1394_t *  bus,
dc1394camera_list_t *  list,
dc1394camera_t **  cams,
int  verbose 
)

◆ findcam()

dc1394camera_t * findcam ( dc1394camera_t **  cams,
int  ncams,
char *  guid 
)

◆ getColorCodeString()

const char * getColorCodeString ( dc1394color_coding_t  code)

◆ main()

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

◆ parseOptions()

void parseOptions ( int  argc,
char *  argv[] 
)

◆ reportFeatures()

void reportFeatures ( dc1394camera_t *  cam)

◆ reportModes()

void reportModes ( dc1394camera_t *  cam)

◆ reset_bus()

void reset_bus ( )