#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include "spinpts.h"
#include "FTD2XX/FTD2XX.h"
Functions | |
SPINPTS_API int | set_pts (double frequency, int phase, PTSDevice *device) |
SPINPTS_API char * | spinpts_get_error () |
SPINPTS_API char * | spinpts_get_version () |
To get the latest version of this code, or to contact us for support, please visit http://www.spincore.com
SPINPTS_API int set_pts | ( | double | frequency, | |
int | phase, | |||
PTSDevice * | device | |||
) |
Set the frequency and phase to a PTS Device. The PTSDevice parameter is optional. Specifying a PTS Device structure will include frequency and phase bounds checking when setting the device.
frequency | Double values (greater than 0.) | |
phase | Must be equal to 0, 90, 180, 270 | |
device | (OPTIONAL) Pointer to PTSDevice structure. This argument can be NULL. |
SPINPTS_API char* spinpts_get_error | ( | ) |
Decodes error codes defined in spinpts.h
SPINPTS_API char* spinpts_get_version | ( | ) |
Gets the current version of the SpinPTS API being used.