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_INIT * | llc200_init |
int | llc200_init_count |
ACQ216 precooking file.
Definition in file build_prams.cpp.
#define MAXLINE 256 |
Definition at line 127 of file build_prams.cpp.
Referenced by DefinitionFileHandler< T >::getMaxLines(), and DefinitionFileHandler< T >::processFile().
typedef unsigned u32 |
Definition at line 75 of file build_prams.cpp.
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] |
Definition at line 258 of file build_prams.cpp.
References InputLineHandler< T >::getCount(), initBuf(), llc200_init_count, DefinitionFileHandler< T >::processFile(), InputLineHandler< T >::setArray(), and InputLineHandler< T >::setMaxCount().
Referenced by main().
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().
struct LLC200_INIT* llc200_init |
Definition at line 81 of file build_prams.cpp.
Definition at line 82 of file build_prams.cpp.
Referenced by initBuf(), load(), and writeOutput().