-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathqo100trx.h
68 lines (62 loc) · 1.46 KB
/
qo100trx.h
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <signal.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/syscall.h>
#include "libs/include/iio.h"
#include "libs/include/ad9361.h"
#include "libs/include/liquid.h"
#include "kmlib/km_helper.h"
#include "kmlib/kmfifo.h"
#include "kmlib/kmtimer.h"
#include "kmlib/rotary.h"
#include "udp/udp.h"
#include "liquid/liquiddrv.h"
#include "pluto/pluto.h"
#include "libkmaudio/libkmaudio.h"
// is defined in the makefile !
// don't define it here
// #define DRIVER_SERIAL 161 // V1.61
#define GUI_UDPPORT 40820
#define AUDIOSAMPRATE 48000 // internal audio rate (not the soundcard rate)
void init_rx();
void init_tx();
void init_fft();
void close_fft();
void setSendtone(int onoff);
extern int RXfifo;
extern int TXfifo;
extern int FFTfifo;
extern int CWfifo;
extern int pbidx, capidx;
extern char gui_ip[20];
extern int RXoffsetfreq;
extern int TXoffsetfreq;
extern uint8_t audioloop;
extern uint8_t ptt;
extern uint8_t mute;
extern uint8_t rfloop;
extern int compressor;
extern int rxfilter;
extern int txfilter;
extern int rxmute;
extern int refoffset;
extern int bcnoffset;
extern int beaconlock;
extern int fftspeed;
extern int audiohighpass;
extern int txpower;
extern float rxvolume;
extern int sendtone;
extern int micboost;
extern int agcvalue;