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"
#include <string.h>

Go to the source code of this file.

Defines

#define COMPARE(str1, str2)   (strcasecmp(str1, str2) == 0)

Functions

void add_serial_init_node (Edtinfo *ei_p, enum serial_tag tag, char *serial_init)
int check_byte_method (char *line, char *label, u_char *arg, const char *cfgfile)
int check_cls_param (char *s, Dependent *dd_p, const char *cfgfile)
int check_float_method (char *line, char *label, float *arg, const char *cfgfile)
int check_hex_method (char *line, char *label, u_int *method, const char *cfgfile)
int check_int_method (char *line, char *label, int *arg, const char *cfgfile)
int check_label (char *str, char *label)
int check_method_param (char *s, Dependent *dd_p, Edtinfo *ei_p, const char *cfgfile)
int check_other_param (char *s, Dependent *dd_p, Edtinfo *ei_p, const char *cfgfile)
int check_path_method (char *line, char *label, char *arg, const char *cfgfile)
int check_serial_init_method (char *line, char *label, char *cmd, const char *cfgfile)
int check_str_method (char *line, char *label, char *arg, int max, const char *cfgfile)
int check_ulong_method (char *line, char *label, u_long *arg, const char *cfgfile)
int check_ushort_method (char *line, char *label, u_short *arg, const char *cfgfile)
int check_xilinx_param (char *s, Dependent *dd_p, const char *cfgfile)
void clear_dependent (Dependent *dd_p)
char * get_next_string (int nofs_cfg, FILE *cfg_fp, char *ss, char *ds)
int is_method (char *method_type, char *name)
int parse_hex_str (char *str, char *buf)
void pdv_dep_set_default (PdvDependent *dd_p)
int pdv_readcfg (const 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 (const char *cfgfile, Dependent *dd_p, Edtinfo *ei_p, int nofs_cfg)
int resolve_cameratype (Dependent *dd_p)
int 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)
int translate_method_arg (char *method_arg, int *method_number)

Variables

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


Generated on 19 Jun 2015 by  doxygen 1.4.7