blob: 06fedccf66c50799b225f0e5c061f4aea3400156 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef MSDD6000_H
#define MSDD6000_H
#include <netinet/in.h>
#include <arpa/inet.h>
#include <linux/socket.h>
#define DEBUG(A) printf("=debug=> %s\n", A)
#define STATE_STOPPED 0
#define STATE_STARTED 1
class MSDD6000 {
public:
MSDD6000(char* addr);
void set_decim(int decim_pow2);
void set_fc(int center_mhz, int offset_hz);
void set_ddc_gain(int gain);
void set_rf_attn(int attn);
void set_output(int mode, void* arg);
void start();
void stop();
void send_request(float,float,float,float,float);
int read(char*, int);
private:
int d_decim;
int d_fc_mhz;
int d_offset_hz;
int d_rf_attn;
int d_ddc_gain;
// in_addr d_adx;
in_addr d_myadx;
struct sockaddr_in d_sockaddr;
struct sockaddr_in d_mysockaddr;
int d_sock;
int d_state;
};
#endif
|