Data Structures | Defines | Typedefs | Functions | Variables

build_prams.cpp File Reference

ACQ216 precooking file. More...

#include "local.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
#include <popt.h>
#include "acq32busprot.h"
#include "llcontrol.h"
#include "CONSTS/M2-consts.h"
#include "CONSTS/M5-consts.h"
#include "CONSTS/M2-consts.c"
#include "CONSTS/M5-consts.c"

Go to the source code of this file.

Data Structures

struct  ULL_LUT
class  InputLineHandler< T >
class  TextFileReader
class  DefinitionFileHandler< T >
class  FtwHandler
 processes DDS Frequency Tuning Word. More...
class  QdacHandler
 processes DDS Frequency Tuning Word. More...
class  IntclkHandler
 processes Internal Clock settings. More...
class  InputOffsetHandler
 Input Offsets are value,value,value 16 per line. More...
class  VRangeHandler

Defines

#define MAXLINE   256

Typedefs

typedef unsigned u32

Functions

static unsigned char hexval (char hexchar)
 ASCII coding assumed.
static void initBuf (DefinitionFileHandler< struct LLC200_INIT > *fileHandler)
static void load (InputLineHandler< struct LLC200_INIT > *lineHandler, const char *def_file)
int strsplit (char *str, char *argv[], int maxargs, const char *delim)
 strsplit() splits str into args, returns args.
static char * chomp (char *str)
static void writeOutput (const char *outfile)
int main (int argc, const char *argv[])

Variables

struct LLC200_INITllc200_init
int llc200_init_count

Detailed Description

ACQ216 precooking file.

Definition in file build_prams.cpp.


Define Documentation

#define MAXLINE   256

Typedef Documentation

typedef unsigned u32

Definition at line 75 of file build_prams.cpp.


Function Documentation

static char* chomp ( char *  str  )  [static]

Definition at line 338 of file build_prams.cpp.

Referenced by VRangeHandler::handleLine().

static unsigned char hexval ( char  hexchar  )  [static]

ASCII coding assumed.

Definition at line 172 of file build_prams.cpp.

Referenced by FtwHandler::handleLine().

static void initBuf ( DefinitionFileHandler< struct LLC200_INIT > *  fileHandler  )  [static]

Definition at line 187 of file build_prams.cpp.

References DefinitionFileHandler< T >::getMaxLines(), llc200_init_count, and LLC200_INIT_SZ.

Referenced by load().

static void load ( InputLineHandler< struct LLC200_INIT > *  lineHandler,
const char *  def_file 
) [static]
int main ( int  argc,
const char *  argv[] 
)

Definition at line 397 of file build_prams.cpp.

References load(), and writeOutput().

int strsplit ( char *  str,
char *  argv[],
int  maxargs,
const char *  delim 
)

strsplit() splits str into args, returns args.

Definition at line 296 of file build_prams.cpp.

Referenced by InputOffsetHandler::handleLine().

static void writeOutput ( const char *  outfile  )  [static]

Definition at line 385 of file build_prams.cpp.

References fclose(), llc200_init_count, and LLC200_INIT_SZ.

Referenced by main().


Variable Documentation

Definition at line 81 of file build_prams.cpp.

Definition at line 82 of file build_prams.cpp.

Referenced by initBuf(), load(), and writeOutput().