Defines | Functions | Variables

channelize.196.c File Reference

takes a block of data and dechannelize to logical channels. More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Go to the source code of this file.

Defines

#define SSZ   (sizeof(short))
#define INPUT   fd_in
#define OUTPUT   fd_out

Functions

int acq200_lookup_pchan (int lchannel)
int acq200_lookup_lchan (int pchan)
static void open_files (const char *fname_in)
static int load (short *input, int ndata)
static void channelize (short *output, short *input, int nchan, int nsamples)
static void store (short *output, int ndata)
int main (int argc, char *argv[])

Variables

int fd_in
FILE * fd_out

Detailed Description

takes a block of data and dechannelize to logical channels.

usage: channelize.196 [nchan]

Definition in file channelize.196.c.


Define Documentation

#define INPUT   fd_in

Definition at line 23 of file channelize.196.c.

Referenced by load().

#define OUTPUT   fd_out

Definition at line 24 of file channelize.196.c.

Referenced by store().

#define SSZ   (sizeof(short))

Definition at line 18 of file channelize.196.c.

Referenced by load(), main(), and store().


Function Documentation

int acq200_lookup_lchan ( int  pchan  ) 

Definition at line 75 of file channelize.196.c.

Referenced by channelize().

int acq200_lookup_pchan ( int  lchannel  ) 

Definition at line 26 of file channelize.196.c.

static void channelize ( short output,
short input,
int  nchan,
int  nsamples 
) [static]

Definition at line 155 of file channelize.196.c.

References acq200_lookup_lchan().

Referenced by main().

static int load ( short input,
int  ndata 
) [static]

Definition at line 136 of file channelize.196.c.

References INPUT, and SSZ.

Referenced by main().

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

Definition at line 179 of file channelize.196.c.

References channelize(), load(), open_files(), SSZ, and store().

static void open_files ( const char *  fname_in  )  [static]

Definition at line 124 of file channelize.196.c.

References fd_in, and fd_out.

Referenced by main().

static void store ( short output,
int  ndata 
) [static]

Definition at line 172 of file channelize.196.c.

References OUTPUT, and SSZ.

Referenced by main().


Variable Documentation

int fd_in

Definition at line 20 of file channelize.196.c.

Referenced by mmapBigBuffer(), mmapDmaBuffer(), and open_files().

FILE* fd_out