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