GNU Radio's HOWTO Package
fcdcmd.h
Go to the documentation of this file.
1//#ifndef FCDCMD_INCLUDED__H
2#define FCDCMD_INCLUDED__H
3
4#define FCD_HID_CMD_H 1
5#define FCD_HID_CMD_QUERY 1 // Returns string with "FCDAPP version"
6
7#define FCD_HID_CMD_SET_FREQUENCY_KHZ 100 // Send with 3 byte unsigned little endian frequency in kHz.
8#define FCD_HID_CMD_SET_FREQUENCY_HZ 101 // Send with 4 byte unsigned little endian frequency in Hz, returns with actual frequency set in Hz
9#define FCD_HID_CMD_GET_FREQUENCY_HZ 102 // Returns 4 byte unsigned little endian frequency in Hz.
10
11#define FCD_CMD_APP_SET_DC_CORR 106 /*!< Send with 2 byte unsigned I DC correction followed by 2 byte unsigned Q DC correction. 32768 is the default centre value. */
12
13#define FCD_CMD_APP_SET_IQ_CORR 108 /*!< Send with 2 byte signed phase correction followed by 2 byte unsigned gain correction. 0 is the default centre value for phase correction,
14 * 32768 is the default centre value for gain. */
15
16#define FCD_HID_CMD_SET_LNA_GAIN 110 // Send one byte, 1 on, 0 off
17#define FCD_HID_CMD_SET_RF_FILTER 113 // Send one byte enum, see TUNERRFFILTERENUM
18#define FCD_HID_CMD_SET_MIXER_GAIN 114 // Send one byte, 1 on, 0 off
19#define FCD_HID_CMD_SET_IF_GAIN 117 // Send one byte value, valid value 0 to 59 (dB)
20#define FCD_HID_CMD_SET_IF_FILTER 122 // Send one byte enum, see TUNERIFFILTERENUM
21#define FCD_HID_CMD_SET_BIAS_TEE 126 // Send one byte, 1 on, 0 off
22
23#define FCD_HID_CMD_GET_LNA_GAIN 150 // Returns one byte, 1 on, 0 off
24#define FCD_HID_CMD_GET_RF_FILTER 153 // Returns one byte enum, see TUNERRFFILTERENUM
25#define FCD_HID_CMD_GET_MIXER_GAIN 154 // Returns one byte, 1 on, 0 off
26#define FCD_HID_CMD_GET_IF_GAIN 157 // Returns one byte value, valid value 0 to 59 (dB)
27#define FCD_HID_CMD_GET_IF_FILTER 162 // Returns one byte enum, see TUNERIFFILTERENUM
28#define FCD_HID_CMD_GET_BIAS_TEE 166 // Returns one byte, 1 on, 0 off
29
30#define FCD_RESET 255 // Reset to bootloader
31
32typedef enum
33{
46
47typedef enum
48{
56 TIFE_8MHZ=7
58
59typedef enum
60{
64//#endif
TUNER_MIXER_GAIN_ENUM
Definition: fcdcmd.h:60
@ TMGE_P4_0DB
Definition: fcdcmd.h:61
@ TMGE_P12_0DB
Definition: fcdcmd.h:62
TUNERRFFILTERENUM
Definition: fcdcmd.h:33
@ TRFE_32_75
Definition: fcdcmd.h:38
@ TRFE_875_2000
Definition: fcdcmd.h:44
@ TRFE_125_250
Definition: fcdcmd.h:40
@ TRFE_75_125
Definition: fcdcmd.h:39
@ TRFE_4_8
Definition: fcdcmd.h:35
@ TRFE_8_16
Definition: fcdcmd.h:36
@ TRFE_0_4
Definition: fcdcmd.h:34
@ TRFE_435
Definition: fcdcmd.h:43
@ TRFE_145
Definition: fcdcmd.h:41
@ TRFE_410_875
Definition: fcdcmd.h:42
@ TRFE_16_32
Definition: fcdcmd.h:37
TUNERIFFILTERENUM
Definition: fcdcmd.h:48
@ TIFE_7MHZ
Definition: fcdcmd.h:55
@ TIFE_5MHZ
Definition: fcdcmd.h:53
@ TIFE_1536KHZ
Definition: fcdcmd.h:52
@ TIFE_600KHZ
Definition: fcdcmd.h:51
@ TIFE_200KHZ
Definition: fcdcmd.h:49
@ TIFE_6MHZ
Definition: fcdcmd.h:54
@ TIFE_8MHZ
Definition: fcdcmd.h:56
@ TIFE_300KHZ
Definition: fcdcmd.h:50