Mercurial > hg > fxanalyse
comparison dds.h @ 213:fcc988c6f841
Fix ad9956 sweep rate setting. Disable clock divider on init. Simplify
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 14 Apr 2014 12:43:25 +0200 |
parents | c700a2d38fb8 |
children | 5296f3bcd160 |
comparison
equal
deleted
inserted
replaced
212:3d63702b33c1 | 213:fcc988c6f841 |
---|---|
1 #ifndef __FXANALYSE_DDS_H__ | 1 #ifndef __FXANALYSE_DDS_H__ |
2 #define __FXANALYSE_DDS_H__ | 2 #define __FXANALYSE_DDS_H__ |
3 | 3 |
4 #define usleep(t) Delay((t) / 1000000.0) | 4 #define usleep(t) Delay((t) / 1000000.0) |
5 #define strdup(s) StrDup(s) | 5 #define strdup(s) StrDup(s) |
6 #define streq(x, y) (strcmp((x), (y)) == 0) | |
7 | 6 |
7 | |
8 typedef long long int64; | |
8 typedef unsigned long long uint64; | 9 typedef unsigned long long uint64; |
9 | 10 |
10 static inline uint64 ftw(double clock, double freq) | 11 static inline uint64 ftw(double clock, double freq) |
11 { | 12 { |
12 uint64 ftw = freq * ((double)(1ULL << 48) / clock); | 13 uint64 ftw = freq * ((double)(1ULL << 48) / clock); |