forked from IW0HDV/extio-hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhermes.h
45 lines (31 loc) · 1.07 KB
/
hermes.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
#if !defined __HERMES_H__
#define __HERMES_H__
#include "hpsdr.h"
#include "gui.h"
class HermesEthernet: public Ethernet {
public:
HermesEthernet (Gui *p): Ethernet(), pg(p)
{}
void FatalError (const char *pMsg) { pg->SetHw (pMsg); };
void TrasmissionTmo (const char *pMsg) { pg->AppendMessage (pMsg); };
Gui *pg;
};
bool HermesInit (int sample_rate, HermesEthernet *);
//bool HermesStart (int nrx, const METIS_CARD *pCard, METIS_FATAL_ERROR_CALLBACK cbFatal, METIS_FATAL_ERROR_CALLBACK cbTrTmo );
bool HermesStart (int nrx, HermesEthernet *pHermes );
//bool HermesStop ();
bool HermesStop (HermesEthernet *pHermes);
const char *HermesGetFirmwareVersion (void);
bool HermesSetFreq (long);
bool HermesGetFreq (long &);
bool HermesSetSampleRate (int);
bool HermesGetSampleRate (int &sr);
bool HermesSetReceiversNumber (int n);
bool HermesSetAttenuator (int);
bool HermesSetAttenuator (int newAtt);
bool HermesSetPreamp (int p);
bool HermesSetDither (int d);
bool HermesSetRandomizer (int r);
//#include "metis.h"
//const METIS_CARD *HermesGetAddress(void);
#endif