HOPS
HOPS class reference
Macros | Functions | Variables
CorAsc2.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "type_000.h"
#include "type_100.h"
#include "type_101.h"
#include "type_120.h"
#include "T1.h"
#include "type_200.h"
#include "type_201.h"
#include "type_202.h"
#include "type_203.h"
#include "type_204.h"
#include "type_205.h"
#include "type_206.h"
#include "type_207.h"
#include "type_208.h"
#include "type_210.h"
#include "type_212.h"
#include "type_220.h"
#include "type_221.h"
#include "type_222.h"
#include "type_230.h"
#include "type_300.h"
#include "type_301.h"
#include "type_302.h"
#include "type_303.h"
#include "type_304.h"
#include "type_306.h"
#include "type_307.h"
#include "type_308.h"
#include "type_309.h"
#include "tapeDB.h"
#include "hops_complex.h"

Macros

#define DBGMSG   " DEBUG: "
 
#define ERRMSG   " ERROR: "
 
#define flip_double(a)   (flip ? r_double_reverse(a) : a)
 
#define flip_float(a)   (flip ? r_float_reverse(a) : a)
 
#define flip_int(a)   (flip ? r_int_reverse(a) : a)
 
#define flip_long(a)   (flip ? r_long_reverse(a) : a)
 
#define flip_short(a)   (flip ? r_short_reverse(a) : a)
 
#define flip_unsig(a)   (flip ? r_unsig_reverse(a) : a)
 
#define MBUFF   16777216 /* Length of buff[] */
 
#define NNAMES   35
 
#define NPOLCHAR   32
 
#define POL_ALL   0
 
#define POL_IXY   31
 
#define POL_LL   0
 
#define POL_LR   2
 
#define POL_RL   3
 
#define POL_RR   1
 
#define POLCHAR_OFFSET   64
 
#define POLMASK_LL   1
 
#define POLMASK_LR   4
 
#define POLMASK_RL   8
 
#define POLMASK_RR   2
 
#define SYSCLK   32.0e6 /* Hz */
 
#define TWO31   2147483648.0
 
#define TWO32   4294967296.0
 

Functions

void determine_polprod (char *polstr, char *pol_list)
 
int main (int argc, char *argv[])
 
double r_double_reverse (double j)
 
float r_float_reverse (float j)
 
int r_int_reverse (int j)
 
long r_long_reverse (long j)
 
short r_short_reverse (short i)
 
unsigned short r_unsig_reverse (unsigned short i)
 
int t2s (double arg, char *ps)
 

Variables

char buff [MBUFF]
 
char * byte = (char*)&word
 
int mbuff
 
char * me
 
int msglev = 1
 
short int word = 0x0001
 

Macro Definition Documentation

◆ DBGMSG

#define DBGMSG   " DEBUG: "

◆ ERRMSG

#define ERRMSG   " ERROR: "

◆ flip_double

#define flip_double (   a)    (flip ? r_double_reverse(a) : a)

◆ flip_float

#define flip_float (   a)    (flip ? r_float_reverse(a) : a)

◆ flip_int

#define flip_int (   a)    (flip ? r_int_reverse(a) : a)

◆ flip_long

#define flip_long (   a)    (flip ? r_long_reverse(a) : a)

◆ flip_short

#define flip_short (   a)    (flip ? r_short_reverse(a) : a)

◆ flip_unsig

#define flip_unsig (   a)    (flip ? r_unsig_reverse(a) : a)

◆ MBUFF

#define MBUFF   16777216 /* Length of buff[] */

◆ NNAMES

#define NNAMES   35

◆ NPOLCHAR

#define NPOLCHAR   32

◆ POL_ALL

#define POL_ALL   0

◆ POL_IXY

#define POL_IXY   31

◆ POL_LL

#define POL_LL   0

◆ POL_LR

#define POL_LR   2

◆ POL_RL

#define POL_RL   3

◆ POL_RR

#define POL_RR   1

◆ POLCHAR_OFFSET

#define POLCHAR_OFFSET   64

◆ POLMASK_LL

#define POLMASK_LL   1

◆ POLMASK_LR

#define POLMASK_LR   4

◆ POLMASK_RL

#define POLMASK_RL   8

◆ POLMASK_RR

#define POLMASK_RR   2

◆ SYSCLK

#define SYSCLK   32.0e6 /* Hz */

◆ TWO31

#define TWO31   2147483648.0

◆ TWO32

#define TWO32   4294967296.0

Function Documentation

◆ determine_polprod()

void determine_polprod ( char *  polstr,
char *  pol_list 
)

◆ main()

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

◆ r_double_reverse()

double r_double_reverse ( double  j)

◆ r_float_reverse()

float r_float_reverse ( float  j)

◆ r_int_reverse()

int r_int_reverse ( int  j)

◆ r_long_reverse()

long r_long_reverse ( long  j)

◆ r_short_reverse()

short r_short_reverse ( short  i)

◆ r_unsig_reverse()

unsigned short r_unsig_reverse ( unsigned short  i)

◆ t2s()

int t2s ( double  arg,
char *  ps 
)

Variable Documentation

◆ buff

char buff[MBUFF]

◆ byte

char* byte = (char*)&word

◆ mbuff

int mbuff

◆ me

char* me

◆ msglev

int msglev = 1

◆ word

short int word = 0x0001