TwiceAsNice  2019-02-18
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Macros | Functions | Variables
main.h File Reference
#include "hpdi32_api.h"
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Macros

#define VERSION   "1.02"
 
#define ARRAY_ELEMENTS(a)   (sizeof((a))/sizeof((a)[0]))
 
#define BLOCK_COUNT_LIMIT   (100L * 1024L * 1024L)
 
#define BLOCK_SAMPLES_LIMIT   (10L * 1024L * 1024L)
 
#define TRANSFER_PERIOD_LIMIT_DAYS   7
 
#define SECONDS_PER_YEAR   (60L * 60 * 24 * 7 * 52)
 
#define SECONDS_PER_WEEK   (60L * 60 * 24 * 7)
 
#define SECONDS_PER_DAY   (60L * 60 * 24)
 
#define SECONDS_PER_HOUR   (60L * 60)
 
#define SECONDS_PER_MINUTE   (60L)
 

Functions

void actual_duration (long begin)
 
U32 estimate_duration (U32 clock, U32 size, double bytes)
 
void format_value (U32 u32, const char *units)
 
U32 read_config_file (void *device, const char *name)
 
U32 rx_process (void *device)
 
U32 show_data_rate (U32 which, U32 clock, U32 size)
 
U32 show_data_set (void *device, U32 which, unsigned long *size, double *bytes)
 
U32 test_status (U32 status, const char *service)
 
U32 tx_process (void *device)
 
U32 tx_rx_tristate (void *device)
 

Variables

U32 block_count
 
U32 block_samples
 
U32 io_clock
 

Macro Definition Documentation

◆ ARRAY_ELEMENTS

#define ARRAY_ELEMENTS (   a)    (sizeof((a))/sizeof((a)[0]))

◆ BLOCK_COUNT_LIMIT

#define BLOCK_COUNT_LIMIT   (100L * 1024L * 1024L)

◆ BLOCK_SAMPLES_LIMIT

#define BLOCK_SAMPLES_LIMIT   (10L * 1024L * 1024L)

◆ SECONDS_PER_DAY

#define SECONDS_PER_DAY   (60L * 60 * 24)

◆ SECONDS_PER_HOUR

#define SECONDS_PER_HOUR   (60L * 60)

◆ SECONDS_PER_MINUTE

#define SECONDS_PER_MINUTE   (60L)

◆ SECONDS_PER_WEEK

#define SECONDS_PER_WEEK   (60L * 60 * 24 * 7)

◆ SECONDS_PER_YEAR

#define SECONDS_PER_YEAR   (60L * 60 * 24 * 7 * 52)

◆ TRANSFER_PERIOD_LIMIT_DAYS

#define TRANSFER_PERIOD_LIMIT_DAYS   7

◆ VERSION

#define VERSION   "1.02"

Function Documentation

◆ actual_duration()

void actual_duration ( long  begin)

◆ estimate_duration()

U32 estimate_duration ( U32  clock,
U32  size,
double  bytes 
)

◆ format_value()

void format_value ( U32  u32,
const char *  units 
)

◆ read_config_file()

U32 read_config_file ( void *  device,
const char *  name 
)

◆ rx_process()

U32 rx_process ( void *  device)

◆ show_data_rate()

U32 show_data_rate ( U32  which,
U32  clock,
U32  size 
)

◆ show_data_set()

U32 show_data_set ( void *  device,
U32  which,
unsigned long size,
double *  bytes 
)

◆ test_status()

U32 test_status ( U32  status,
const char *  service 
)

◆ tx_process()

U32 tx_process ( void *  device)

◆ tx_rx_tristate()

U32 tx_rx_tristate ( void *  device)

Variable Documentation

◆ block_count

U32 block_count

◆ block_samples

U32 block_samples

◆ io_clock

U32 io_clock