nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Enumerations | Functions | Variables
daq_test.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <stdint.h>
#include "daqc.h"
#include "daqc_internal.h"
#include "daqc_response.h"
#include "channel.h"
#include "trench.h"
#include "nds_logging.h"
Include dependency graph for daq_test.c:

Macros

#define MAX_GROUP_LIST   4096
 
#define MAX_EPOCH_LIST   65536UL
 
#define MAX_CHANNEL_LIST   209715200
 
#define MAX_MESSAGE_LEN   128UL
 
#define NEW_VECT(type, dim)   ( (type*)malloc( dim * sizeof( type ) ) )
 
#define NDS_EXIT_STATUS_FAIL   99 /* A general failure has occurred */
 
#define NDSSERVER_ENV   "NDSSERVER"
 
#define DEFAULT_DELTA   2
 

Enumerations

enum  pgm_mode {
  list_group, chan_list, chan_count, chan_crc,
  chan_data, server_protocol, server_version, epoch_list,
  cmd_exec
}
 

Functions

void set_node_and_port_from_env (const char **node_id, short *port_id)
 set_node_and_port_from_env attempts to extract port & host information from the environment More...
 
void dump_data (daq_t *daq, size_t spl, const char *fmt)
 
void dump_status (daq_t *daq)
 
int main (int argc, const char *argv[])
 

Variables

static int optimize_channel_fetch = 1
 

Macro Definition Documentation

#define DEFAULT_DELTA   2
#define MAX_CHANNEL_LIST   209715200
#define MAX_EPOCH_LIST   65536UL
#define MAX_GROUP_LIST   4096
#define MAX_MESSAGE_LEN   128UL
#define NDS_EXIT_STATUS_FAIL   99 /* A general failure has occurred */
#define NDSSERVER_ENV   "NDSSERVER"
#define NEW_VECT (   type,
  dim 
)    ( (type*)malloc( dim * sizeof( type ) ) )

Enumeration Type Documentation

enum pgm_mode
Enumerator
list_group 
chan_list 
chan_count 
chan_crc 
chan_data 
server_protocol 
server_version 
epoch_list 
cmd_exec 

Function Documentation

void dump_data ( daq_t daq,
size_t  spl,
const char *  fmt 
)
void dump_status ( daq_t daq)
int main ( int  argc,
const char *  argv[] 
)
void set_node_and_port_from_env ( const char **  node_id,
short *  port_id 
)

set_node_and_port_from_env attempts to extract port & host information from the environment

Parameters
node_idpointer to the node (host) pointer
port_idpointer to put a port number in
Note
if arguments or environment is invalid/NULL this does nothing

Variable Documentation

int optimize_channel_fetch = 1
static