readcfg.c File Reference


Detailed Description

Routines to read camera configuration (.cfg) files and populate a PCI DV dependent structure for use by pdv_initcam.

Copyright (c) 1993-1997, Engineering Design Team, Inc.

DESCRIPTION reads the chosen camera config file into a structure

Definition in file readcfg.c.

#include "edtinc.h"
#include "initcam.h"

Go to the source code of this file.

Defines

#define COMPARE(str1, str2)   (strcasecmp(str1, str2) == 0)
#define DEBUG0   PDVLIB_MSG_FATAL
#define DEBUG1   PDVLIB_MSG_INFO_1
#define DEBUG2   PDVLIB_MSG_INFO_2

Functions

int check_byte_method (char *line, char *label, u_short *arg, char *cfgfile)
int check_cls_param (char *s, PdvDependent *dd_p, char *cfgfile)
int check_float_method (char *line, char *label, float *arg, char *cfgfile)
 check_hex_method (char *line, char *label, u_int *method, char *cfgfile)
int check_int_method (char *line, char *label, int *arg, char *cfgfile)
 check_label (char *str, char *label)
int check_method_param (char *s, Dependent *dd_p, Edtinfo *ei_p, char *cfgfile)
int check_other_param (char *s, Dependent *dd_p, char *cfgfile)
 check_path_method (char *line, char *label, char *arg, char *cfgfile)
 check_serial_init_method (char *line, char *label, char *cmd, char *cfgfile)
 check_str_method (char *line, char *label, char *arg, int max, char *cfgfile)
int check_ulong_method (char *line, char *label, u_long *arg, char *cfgfile)
int check_ushort_method (char *line, char *label, u_short *arg, char *cfgfile)
int check_xilinx_param (char *s, Dependent *dd_p, char *cfgfile)
void clear_dependent (Dependent *dd_p)
void dep_set_default (PdvDependent *dd_p)
char * get_next_string (int nofs_cfg, FILE *cfg_fp, char *ss, char *ds)
int is_method (char *method_type, char *name)
 parse_hex_str (char *str, char *buf)
int pdv_readcfg (char *cfgfile, Dependent *dd_p, Edtinfo *ei_p)
 Reads a configuration file and fills in the dependent and edtinfo structures based on the information in the file.
int pdv_readcfg_emb (char *cfgfile, Dependent *dd_p, Edtinfo *ei_p)
int printcfg (Dependent *dd_p)
int readcfg (char *cfgfile, Dependent *dd_p, Edtinfo *ei_p, int nofs_cfg)
int resolve_cameratype (Dependent *dd_p)
 set_method (Dependent *dd_p, Edtinfo *ei_p, char *method_type, int method_number)
void strip_ctrlm (char *s)
void strip_extra_whitespace (char *s)
 translate_method_arg (char *method_arg, int *method_number)

Variables

char * dmy_cfg [] = {""}
int nser = 0
u_char * xilinx


Generated on Mon May 12 16:39:06 2008 by  doxygen 1.5.1