fcdcmd.h
Go to the documentation of this file.
//#ifndef FCDCMD_INCLUDED__H
#define FCDCMD_INCLUDED__H
#define FCD_HID_CMD_H 1
#define FCD_HID_CMD_QUERY 1 // Returns string with "FCDAPP version"
#define FCD_HID_CMD_SET_FREQUENCY_KHZ \
100 // Send with 3 byte unsigned little endian frequency in kHz.
#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
#define FCD_HID_CMD_GET_FREQUENCY_HZ \
102 // Returns 4 byte unsigned little endian frequency in Hz.
#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. */
#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, \
* 32768 is the default centre value for gain. */
#define FCD_HID_CMD_SET_LNA_GAIN 110 // Send one byte, 1 on, 0 off
#define FCD_HID_CMD_SET_RF_FILTER 113 // Send one byte enum, see TUNERRFFILTERENUM
#define FCD_HID_CMD_SET_MIXER_GAIN 114 // Send one byte, 1 on, 0 off
#define FCD_HID_CMD_SET_IF_GAIN 117 // Send one byte value, valid value 0 to 59 (dB)
#define FCD_HID_CMD_SET_IF_FILTER 122 // Send one byte enum, see TUNERIFFILTERENUM
#define FCD_HID_CMD_SET_BIAS_TEE 126 // Send one byte, 1 on, 0 off
#define FCD_HID_CMD_GET_LNA_GAIN 150 // Returns one byte, 1 on, 0 off
#define FCD_HID_CMD_GET_RF_FILTER 153 // Returns one byte enum, see TUNERRFFILTERENUM
#define FCD_HID_CMD_GET_MIXER_GAIN 154 // Returns one byte, 1 on, 0 off
#define FCD_HID_CMD_GET_IF_GAIN 157 // Returns one byte value, valid value 0 to 59 (dB)
#define FCD_HID_CMD_GET_IF_FILTER 162 // Returns one byte enum, see TUNERIFFILTERENUM
#define FCD_HID_CMD_GET_BIAS_TEE 166 // Returns one byte, 1 on, 0 off
#define FCD_RESET 255 // Reset to bootloader
typedef enum {
TRFE_0_4,
TRFE_4_8,
TRFE_8_16,
TRFE_16_32,
TRFE_32_75,
TRFE_75_125,
TRFE_125_250,
TRFE_145,
TRFE_410_875,
TRFE_435,
TRFE_875_2000
} TUNERRFFILTERENUM;
typedef enum {
TIFE_200KHZ = 0,
TIFE_300KHZ = 1,
TIFE_600KHZ = 2,
TIFE_1536KHZ = 3,
TIFE_5MHZ = 4,
TIFE_6MHZ = 5,
TIFE_7MHZ = 6,
TIFE_8MHZ = 7
} TUNERIFFILTERENUM;
typedef enum { TMGE_P4_0DB = 0, TMGE_P12_0DB = 1 } TUNER_MIXER_GAIN_ENUM;
//#endif
TUNER_MIXER_GAIN_ENUM
TUNER_MIXER_GAIN_ENUM
Definition fcdcmd.h:65
TMGE_P4_0DB
@ TMGE_P4_0DB
Definition fcdcmd.h:65
TMGE_P12_0DB
@ TMGE_P12_0DB
Definition fcdcmd.h:65
TUNERRFFILTERENUM
TUNERRFFILTERENUM
Definition fcdcmd.h:40
TRFE_32_75
@ TRFE_32_75
Definition fcdcmd.h:45
TRFE_875_2000
@ TRFE_875_2000
Definition fcdcmd.h:51
TRFE_125_250
@ TRFE_125_250
Definition fcdcmd.h:47
TRFE_75_125
@ TRFE_75_125
Definition fcdcmd.h:46
TRFE_4_8
@ TRFE_4_8
Definition fcdcmd.h:42
TRFE_8_16
@ TRFE_8_16
Definition fcdcmd.h:43
TRFE_0_4
@ TRFE_0_4
Definition fcdcmd.h:41
TRFE_435
@ TRFE_435
Definition fcdcmd.h:50
TRFE_145
@ TRFE_145
Definition fcdcmd.h:48
TRFE_410_875
@ TRFE_410_875
Definition fcdcmd.h:49
TRFE_16_32
@ TRFE_16_32
Definition fcdcmd.h:44
TUNERIFFILTERENUM
TUNERIFFILTERENUM
Definition fcdcmd.h:54
TIFE_7MHZ
@ TIFE_7MHZ
Definition fcdcmd.h:61
TIFE_5MHZ
@ TIFE_5MHZ
Definition fcdcmd.h:59
TIFE_1536KHZ
@ TIFE_1536KHZ
Definition fcdcmd.h:58
TIFE_600KHZ
@ TIFE_600KHZ
Definition fcdcmd.h:57
TIFE_200KHZ
@ TIFE_200KHZ
Definition fcdcmd.h:55
TIFE_6MHZ
@ TIFE_6MHZ
Definition fcdcmd.h:60
TIFE_8MHZ
@ TIFE_8MHZ
Definition fcdcmd.h:62
TIFE_300KHZ
@ TIFE_300KHZ
Definition fcdcmd.h:56