view DDS4xAD9912.h @ 196:87dae6d62a61

New AD9912 client code to communicate with improved server code
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 31 Mar 2014 17:03:32 +0200
parents d96f0b04f7fe
children
line wrap: on
line source

#ifndef __DDS4XAD9912_H__
#define __DDS4XAD9912_H__

typedef struct {
	char *host;
	int port[4];
	double clock;
	double frequency[4];
} DDS4xAD9912_Data;

#ifdef __cplusplus
    extern "C" {
#endif

double DDS4xAD9912_GetFrequency(DDS4xAD9912_Data *dds, int channel);
void DDS4xAD9912_Init(DDS4xAD9912_Data *d, const char *host, double clock);
int DDS4xAD9912_SetFrequency(DDS4xAD9912_Data * Instance, int DDSNum, double Freq);
int DDS4xAD9912_Reset(DDS4xAD9912_Data * Instance);
int DDS4xAD9912_RampFrequency(DDS4xAD9912_Data *dds, int channel, double f2, double fstep);
int DDS4xAD9912_RampFrequency2(DDS4xAD9912_Data *dds, int channel, double f1, double f2, double fstep);

#ifdef __cplusplus
    }
#endif

#endif