nidas v1.2.3
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <nidas/linux/diamond/dmd_mmat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
Macros | |
#define | NUM_ADC_TEST_CHANNELS_DEFAULT 16 |
#define | ADC_SAMPLE_RATE_DEFAULT 10 |
#define | ADC_GAIN_DEFAULT 2 |
#define | V_LIMIT_HIGH_DEFAULT 2.510 |
#define | V_LIMIT_LOW_DEFAULT 2.490 |
Functions | |
void | print_app_usage (void) |
float | ctov (int code, int gain) |
int | main (int argc, char **argv) |
#define ADC_GAIN_DEFAULT 2 |
Referenced by main().
#define ADC_SAMPLE_RATE_DEFAULT 10 |
Referenced by main(), and print_app_usage().
#define NUM_ADC_TEST_CHANNELS_DEFAULT 16 |
Referenced by main(), and print_app_usage().
#define V_LIMIT_HIGH_DEFAULT 2.510 |
Referenced by main(), and print_app_usage().
#define V_LIMIT_LOW_DEFAULT 2.490 |
Referenced by main(), and print_app_usage().
float ctov | ( | int | code, |
int | gain ) |
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
References ADC_GAIN_DEFAULT, ADC_SAMPLE_RATE_DEFAULT, ctov(), DMMAT_A2D_GET_STATUS, DMMAT_START, DMMAT_STOP, fd, nidas_a2d_config::latencyUsecs, dsm_sample::length, MAX_A2D_CHANNELS, NIDAS_A2D_CONFIG_SAMPLE, NIDAS_A2D_GET_NCHAN, NIDAS_A2D_SET_CONFIG, NIDAS_FILTER_PICKOFF, NUM_ADC_TEST_CHANNELS_DEFAULT, print_app_usage(), printf(), nidas_a2d_config::scanRate, SIZEOF_DSM_SAMPLE_HEADER, dsm_sample::timetag, USECS_PER_SEC, V_LIMIT_HIGH_DEFAULT, and V_LIMIT_LOW_DEFAULT.
void print_app_usage | ( | void | ) |
References ADC_SAMPLE_RATE_DEFAULT, NUM_ADC_TEST_CHANNELS_DEFAULT, printf(), V_LIMIT_HIGH_DEFAULT, and V_LIMIT_LOW_DEFAULT.
Referenced by main().