comparison DDSBes.h @ 0:d9aae7d7f2c6

Import
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Tue, 03 Jul 2012 10:38:59 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d9aae7d7f2c6
1 //
2 // Title: DDSBes.h
3 // Purpose: header for the Besancon DDS crypto-class
4 //
5 // Created on: by YLC
6 // Copyright: syrte. All Rights Reserved.
7 //
8 //==============================================================================
9
10 #ifndef __DDSBES_H__
11 #define __DDSBES_H__
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17
18 // DDSBes_Data : the data of crypto class DDSBesancon
19
20 typedef struct {
21 double ClockFrequency ; // in Hz
22 double Frequency ; // the real frequency (in Hz) which is at the DDS output
23 double Amplitude ;
24 } DDSBes_Data ;
25
26
27 /************** Member Function Declarations (Private) **************/
28
29 static int delai(int t);
30 static int Strb_adress(unsigned char ad);
31 static int Strb_data(unsigned char da);
32 static int Strb_nWrite(void);
33 static int Strb_Update(void);
34 static int Strb_MReset(void);
35
36
37 /************** Member Function Declarations (Public) **************/
38
39 extern void DDSBes_Initialize(DDSBes_Data * Instance);
40 extern void DDSBes_Close(DDSBes_Data * Instance);
41 extern void DDSBes_SetClockFrequency(DDSBes_Data * Instance, double ClockFrequency);
42 extern void DDSBes_SetFrequency(DDSBes_Data * Instance, double Frequency); // In Instance->Frequency, the real output frequency is stored
43 // (<> from requested frequency due to rounding effect
44 extern void DDSBes_SetAmplitude(DDSBes_Data * Instance, int Amplitude);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* ndef __DDSBES_H__ */