TwiceAsNice  2019-02-18
Macros | Functions
DaqLibHLAux.c File Reference
#include "PDNA.h"
#include "PDNA_private.h"
#include "primes.h"
#include "math.h"
Include dependency graph for DaqLibHLAux.c:

Macros

#define TFNAME   "c:\\testlog.txt"
 
#define absf(A)   (((A) > 0)?(A):(-A))
 

Functions

int DAQLIB DqAdvSetClockSource (int hd, int devn, uint32 clock, uint32 source, uint32 edge)
 
int DAQLIB DqAdvSetTriggerSource (int hd, int devn, uint32 trigger, uint32 source, uint32 edge)
 
int DAQLIB DqAdvDnrpRead (int hd, int devn, int CLSize, uint32 *cl, uint32 *bData, double *fData)
 
int DAQLIB DqAdvDnrpSetConfig (int hd, int devn, uint32 action, uint32 *config)
 
int DAQLIB DqAdvDnxpRead (int hd, int devn, int CLSize, uint32 *cl, uint32 *bData, double *fData)
 
int DAQLIB DqAdvDnxpSetConfig (int hd, int devn, uint32 action, uint32 *config)
 
int DAQLIB DqAdvLayerAccessDio (int hd, int devn, uint16 config, uint16 d_out, uint32 *d_in)
 
int DAQLIB DqAdvAssignIsoDio (int hd, int devn, uint32 dio_line, uint32 direction, uint32 signal)
 
int DAQLIB DqAdvAssignIsoSync (int hd, int devn, uint32 sync_line, uint32 signal)
 
int DAQLIB DqAdvAssignSyncx (int hd, int devn, uint32 sync_line, uint32 signal)
 
int DAQLIB DqAdvWriteSignalRouting (int hd, int devn, pSGNLS psignals)
 
int DAQLIB DqAdvRouteSyncIn (int hd, int line)
 
int DAQLIB DqAdvRouteSyncTest (int hd, int devn, int line, int level)
 
int DAQLIB DqAdvRouteSyncOut (int hd, int line)
 
int DAQLIB DqAdvRouteSyncClockIn (int hd, int line)
 
int DAQLIB DqAdvRouteSyncClockOut (int hd, int line)
 
int DAQLIB DqAdvRouteSyncTrigIn (int hd, int line)
 
int DAQLIB DqAdvRouteSyncTrigOut (int hd, int line)
 
double roundn (double x, int n)
 
int calculate_divider (double rq_frq, double *real_frq, int base, int *pll_div, int *main_div)
 
double calculate_pq (double rq, double *f_real, int *pt, int *qt, int minp, int maxp, int minq, int maxq, double minvco, double maxvco, double base)
 
int DAQLIB DqAdvRoutePll (int hd, double frequency, double *f_actual, int line)
 
int DAQLIB DqAdvRouteTrigIn (int hd, int devn, int line)
 
int DAQLIB DqAdvRouteClockIn (int hd, int devn, int line)
 
int DAQLIB DqAdvRouteTrigOut (int hd, int devn, int line)
 
int DAQLIB DqAdvRouteClockOut (int hd, int devn, int line)
 
int DAQLIB DqAdvSetScansPerPkt (int hd, int dev, int ss, int scans)
 
int DAQLIB DqAdvSetNetworkBuffers (int hd, int dev, int ss, int nbufs)
 
int DAQLIB DqAdvHwTestsCpuLayerTestStart (int hd)
 
int DAQLIB DqAdvHwTestsCpuLayerTestAbort (int hd)
 
int DAQLIB DqAdvHwTestsCpuLayerTestGetStatus (int hd, uint32 *busy, char *str)
 
int DAQLIB DqAdvHwTestsCpuLayerTestGetResults (int hd, uint32 *error, char *str)
 
int DAQLIB DqAdvHwTestsIOLayerTest (int hd, int devn, uint32 testtype, uint32 *error, char *str, uint32 *data_bus_staus, uint32 *addr_bus_staus)
 
int DAQLIB DqAdvSetWirelessState (int hd, int devn, uint32 cmd, uint32 data)
 
int DAQLIB DqAdvRWExtDevice (int hd, int devn, uint32 id, uint32 cmd, uint32 d2dev, uint32 count, uint32 *d_fr_dev)
 

Macro Definition Documentation

◆ absf

#define absf (   A)    (((A) > 0)?(A):(-A))

◆ TFNAME

#define TFNAME   "c:\\testlog.txt"

Function Documentation

◆ calculate_divider()

int calculate_divider ( double  rq_frq,
double *  real_frq,
int  base,
int *  pll_div,
int *  main_div 
)

◆ calculate_pq()

double calculate_pq ( double  rq,
double *  f_real,
int *  pt,
int *  qt,
int  minp,
int  maxp,
int  minq,
int  maxq,
double  minvco,
double  maxvco,
double  base 
)

◆ DqAdvAssignIsoDio()

int DAQLIB DqAdvAssignIsoDio ( int  hd,
int  devn,
uint32  dio_line,
uint32  direction,
uint32  signal 
)

◆ DqAdvAssignIsoSync()

int DAQLIB DqAdvAssignIsoSync ( int  hd,
int  devn,
uint32  sync_line,
uint32  signal 
)

◆ DqAdvAssignSyncx()

int DAQLIB DqAdvAssignSyncx ( int  hd,
int  devn,
uint32  sync_line,
uint32  signal 
)

◆ DqAdvDnrpRead()

int DAQLIB DqAdvDnrpRead ( int  hd,
int  devn,
int  CLSize,
uint32 cl,
uint32 bData,
double *  fData 
)

◆ DqAdvDnrpSetConfig()

int DAQLIB DqAdvDnrpSetConfig ( int  hd,
int  devn,
uint32  action,
uint32 config 
)

◆ DqAdvDnxpRead()

int DAQLIB DqAdvDnxpRead ( int  hd,
int  devn,
int  CLSize,
uint32 cl,
uint32 bData,
double *  fData 
)

◆ DqAdvDnxpSetConfig()

int DAQLIB DqAdvDnxpSetConfig ( int  hd,
int  devn,
uint32  action,
uint32 config 
)

◆ DqAdvHwTestsCpuLayerTestAbort()

int DAQLIB DqAdvHwTestsCpuLayerTestAbort ( int  hd)

◆ DqAdvHwTestsCpuLayerTestGetResults()

int DAQLIB DqAdvHwTestsCpuLayerTestGetResults ( int  hd,
uint32 error,
char *  str 
)

◆ DqAdvHwTestsCpuLayerTestGetStatus()

int DAQLIB DqAdvHwTestsCpuLayerTestGetStatus ( int  hd,
uint32 busy,
char *  str 
)

◆ DqAdvHwTestsCpuLayerTestStart()

int DAQLIB DqAdvHwTestsCpuLayerTestStart ( int  hd)

◆ DqAdvHwTestsIOLayerTest()

int DAQLIB DqAdvHwTestsIOLayerTest ( int  hd,
int  devn,
uint32  testtype,
uint32 error,
char *  str,
uint32 data_bus_staus,
uint32 addr_bus_staus 
)

◆ DqAdvLayerAccessDio()

int DAQLIB DqAdvLayerAccessDio ( int  hd,
int  devn,
uint16  config,
uint16  d_out,
uint32 d_in 
)

◆ DqAdvRouteClockIn()

int DAQLIB DqAdvRouteClockIn ( int  hd,
int  devn,
int  line 
)

◆ DqAdvRouteClockOut()

int DAQLIB DqAdvRouteClockOut ( int  hd,
int  devn,
int  line 
)

◆ DqAdvRoutePll()

int DAQLIB DqAdvRoutePll ( int  hd,
double  frequency,
double *  f_actual,
int  line 
)

◆ DqAdvRouteSyncClockIn()

int DAQLIB DqAdvRouteSyncClockIn ( int  hd,
int  line 
)

◆ DqAdvRouteSyncClockOut()

int DAQLIB DqAdvRouteSyncClockOut ( int  hd,
int  line 
)

◆ DqAdvRouteSyncIn()

int DAQLIB DqAdvRouteSyncIn ( int  hd,
int  line 
)

◆ DqAdvRouteSyncOut()

int DAQLIB DqAdvRouteSyncOut ( int  hd,
int  line 
)

◆ DqAdvRouteSyncTest()

int DAQLIB DqAdvRouteSyncTest ( int  hd,
int  devn,
int  line,
int  level 
)

◆ DqAdvRouteSyncTrigIn()

int DAQLIB DqAdvRouteSyncTrigIn ( int  hd,
int  line 
)

◆ DqAdvRouteSyncTrigOut()

int DAQLIB DqAdvRouteSyncTrigOut ( int  hd,
int  line 
)

◆ DqAdvRouteTrigIn()

int DAQLIB DqAdvRouteTrigIn ( int  hd,
int  devn,
int  line 
)

◆ DqAdvRouteTrigOut()

int DAQLIB DqAdvRouteTrigOut ( int  hd,
int  devn,
int  line 
)

◆ DqAdvRWExtDevice()

int DAQLIB DqAdvRWExtDevice ( int  hd,
int  devn,
uint32  id,
uint32  cmd,
uint32  d2dev,
uint32  count,
uint32 d_fr_dev 
)

◆ DqAdvSetClockSource()

int DAQLIB DqAdvSetClockSource ( int  hd,
int  devn,
uint32  clock,
uint32  source,
uint32  edge 
)

◆ DqAdvSetNetworkBuffers()

int DAQLIB DqAdvSetNetworkBuffers ( int  hd,
int  dev,
int  ss,
int  nbufs 
)

◆ DqAdvSetScansPerPkt()

int DAQLIB DqAdvSetScansPerPkt ( int  hd,
int  dev,
int  ss,
int  scans 
)

◆ DqAdvSetTriggerSource()

int DAQLIB DqAdvSetTriggerSource ( int  hd,
int  devn,
uint32  trigger,
uint32  source,
uint32  edge 
)

◆ DqAdvSetWirelessState()

int DAQLIB DqAdvSetWirelessState ( int  hd,
int  devn,
uint32  cmd,
uint32  data 
)

◆ DqAdvWriteSignalRouting()

int DAQLIB DqAdvWriteSignalRouting ( int  hd,
int  devn,
pSGNLS  psignals 
)

◆ roundn()

double roundn ( double  x,
int  n 
)