mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 15:51:47 -05:00
Moved FCD HID commands in their respective includes for Pro and Pro+
This commit is contained in:
parent
208d3deb6e
commit
bf330c00fc
@ -53,9 +53,9 @@ If you use your own location for libbladeRF install directory you need to specif
|
||||
|
||||
<h2>FunCube Dongle</h2>
|
||||
|
||||
At the moment only the Pro+ is supported with the plugin in fcdproplus. This is a work in progress. Support of features is still limited (no IF gain, no filter settings).
|
||||
Both Pro and Pro+ are supported with the plugins in fcdpro and fcdproplus respectively. This is a work in progress. Support of features is still limited for Pro+ (no IF gain, no filter settings) and inadapted for Pro which is just a copy from Pro+ apart from some constants to make it work with Pro.
|
||||
|
||||
The control interface is based on qthid and has been built in the software in the fcdhid library. You don't need anything else than libusb support.
|
||||
The control interface is based on qthid and has been built in the software in the fcdhid library. You don't need anything else than libusb support. Library fcdlib is used to store the constants for each dongle type.
|
||||
|
||||
<h2>RTL-SDR</h2>
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
#ifndef FCDHIDCMD_H
|
||||
#define FCDHIDCMD_H
|
||||
|
||||
|
||||
/* Commands applicable in bootloader mode */
|
||||
#define FCD_CMD_BL_QUERY 1 /*!< Returns string with "FCDAPP version". */
|
||||
#define FCD_CMD_BL_RESET 8 /*!< Reset to application mode. */
|
||||
@ -33,273 +32,13 @@
|
||||
#define FCD_CMD_BL_READ_FLASH_BLOCK 28 /*!< Read flash block. */
|
||||
|
||||
/* Commands applicable in application mode */
|
||||
#define FCD_CMD_APP_SET_FREQ_KHZ 100 /*!< Send with 3 byte unsigned little endian frequency in kHz. */
|
||||
#define FCD_CMD_APP_SET_FREQ_HZ 101 /*!< Send with 4 byte unsigned little endian frequency in Hz, returns with actual frequency set in Hz */
|
||||
#define FCD_CMD_APP_GET_FREQ_HZ 102 /*!< Returns 4 byte unsigned little endian frequency in Hz. */
|
||||
#define FCD_CMD_APP_SET_FREQ_KHZ 100 /*!< Send with 3 byte unsigned little endian frequency in kHz. */
|
||||
#define FCD_CMD_APP_SET_FREQ_HZ 101 /*!< Send with 4 byte unsigned little endian frequency in Hz, returns with actual frequency set in Hz */
|
||||
#define FCD_CMD_APP_GET_FREQ_HZ 102 /*!< Returns 4 byte unsigned little endian frequency in Hz. */
|
||||
|
||||
#define FCD_CMD_APP_GET_IF_RSSI 104 /*!< Supposed to return 1 byte unsigned IF RSSI (-35dBm=0, -10dBm=70) but it is not functional. */
|
||||
#define FCD_CMD_APP_GET_PLL_LOCK 105 /*!< Returns 1 bit, true if locked. */
|
||||
|
||||
#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_GET_DC_CORR 107 /*!< Returns 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_CMD_APP_GET_IQ_CORR 109 /*!< Returns 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_CMD_APP_SET_LNA_GAIN 110 /*!< Send a 1 byte value, see enums for reference. */
|
||||
#define FCD_CMD_APP_SET_LNA_ENHANCE 111
|
||||
#define FCD_CMD_APP_SET_BAND 112
|
||||
#define FCD_CMD_APP_SET_RF_FILTER 113
|
||||
#define FCD_CMD_APP_SET_MIXER_GAIN 114
|
||||
#define FCD_CMD_APP_SET_BIAS_CURRENT 115
|
||||
#define FCD_CMD_APP_SET_MIXER_FILTER 116
|
||||
#define FCD_CMD_APP_SET_IF_GAIN1 117
|
||||
#define FCD_CMD_APP_SET_IF_GAIN_MODE 118
|
||||
#define FCD_CMD_APP_SET_IF_RC_FILTER 119
|
||||
#define FCD_CMD_APP_SET_IF_GAIN2 120
|
||||
#define FCD_CMD_APP_SET_IF_GAIN3 121
|
||||
#define FCD_CMD_APP_SET_IF_FILTER 122
|
||||
#define FCD_CMD_APP_SET_IF_GAIN4 123
|
||||
#define FCD_CMD_APP_SET_IF_GAIN5 124
|
||||
#define FCD_CMD_APP_SET_IF_GAIN6 125
|
||||
#define FCD_CMD_APP_SET_BIAS_TEE 126 /*!< Bias T for ext LNA. Send with one byte: 1=ON, 0=OFF. */
|
||||
|
||||
#define FCD_CMD_APP_GET_LNA_GAIN 150 // Retrieve a 1 byte value, see enums for reference
|
||||
#define FCD_CMD_APP_GET_LNA_ENHANCE 151
|
||||
#define FCD_CMD_APP_GET_BAND 152
|
||||
#define FCD_CMD_APP_GET_RF_FILTER 153
|
||||
#define FCD_CMD_APP_GET_MIXER_GAIN 154
|
||||
#define FCD_CMD_APP_GET_BIAS_CURRENT 155
|
||||
#define FCD_CMD_APP_GET_MIXER_FILTER 156
|
||||
#define FCD_CMD_APP_GET_IF_GAIN1 157
|
||||
#define FCD_CMD_APP_GET_IF_GAIN_MODE 158
|
||||
#define FCD_CMD_APP_GET_IF_RC_FILTER 159
|
||||
#define FCD_CMD_APP_GET_IF_GAIN2 160
|
||||
#define FCD_CMD_APP_GET_IF_GAIN3 161
|
||||
#define FCD_CMD_APP_GET_IF_FILTER 162
|
||||
#define FCD_CMD_APP_GET_IF_GAIN4 163
|
||||
#define FCD_CMD_APP_GET_IF_GAIN5 164
|
||||
#define FCD_CMD_APP_GET_IF_GAIN6 165
|
||||
#define FCD_CMD_APP_GET_BIAS_TEE 166 /*!< Bias T. 1=ON, 0=OFF. */
|
||||
|
||||
#define FCD_CMD_APP_SEND_I2C_BYTE 200
|
||||
#define FCD_CMD_APP_RECV_I2C_BYTE 201
|
||||
|
||||
#define FCD_CMD_APP_RESET 255 // Reset to bootloader
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TLGE_N5_0DB=0,
|
||||
TLGE_N2_5DB=1,
|
||||
TLGE_P0_0DB=4,
|
||||
TLGE_P2_5DB=5,
|
||||
TLGE_P5_0DB=6,
|
||||
TLGE_P7_5DB=7,
|
||||
TLGE_P10_0DB=8,
|
||||
TLGE_P12_5DB=9,
|
||||
TLGE_P15_0DB=10,
|
||||
TLGE_P17_5DB=11,
|
||||
TLGE_P20_0DB=12,
|
||||
TLGE_P25_0DB=13,
|
||||
TLGE_P30_0DB=14
|
||||
} TUNER_LNA_GAIN_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TLEE_OFF=0,
|
||||
TLEE_0=1,
|
||||
TLEE_1=3,
|
||||
TLEE_2=5,
|
||||
TLEE_3=7
|
||||
} TUNER_LNA_ENHANCE_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TBE_VHF2,
|
||||
TBE_VHF3,
|
||||
TBE_UHF,
|
||||
TBE_LBAND
|
||||
} TUNER_BAND_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
// Band 0, VHF II
|
||||
TRFE_LPF268MHZ=0,
|
||||
TRFE_LPF299MHZ=8,
|
||||
// Band 1, VHF III
|
||||
TRFE_LPF509MHZ=0,
|
||||
TRFE_LPF656MHZ=8,
|
||||
// Band 2, UHF
|
||||
TRFE_BPF360MHZ=0,
|
||||
TRFE_BPF380MHZ=1,
|
||||
TRFE_BPF405MHZ=2,
|
||||
TRFE_BPF425MHZ=3,
|
||||
TRFE_BPF450MHZ=4,
|
||||
TRFE_BPF475MHZ=5,
|
||||
TRFE_BPF505MHZ=6,
|
||||
TRFE_BPF540MHZ=7,
|
||||
TRFE_BPF575MHZ=8,
|
||||
TRFE_BPF615MHZ=9,
|
||||
TRFE_BPF670MHZ=10,
|
||||
TRFE_BPF720MHZ=11,
|
||||
TRFE_BPF760MHZ=12,
|
||||
TRFE_BPF840MHZ=13,
|
||||
TRFE_BPF890MHZ=14,
|
||||
TRFE_BPF970MHZ=15,
|
||||
// Band 2, L band
|
||||
TRFE_BPF1300MHZ=0,
|
||||
TRFE_BPF1320MHZ=1,
|
||||
TRFE_BPF1360MHZ=2,
|
||||
TRFE_BPF1410MHZ=3,
|
||||
TRFE_BPF1445MHZ=4,
|
||||
TRFE_BPF1460MHZ=5,
|
||||
TRFE_BPF1490MHZ=6,
|
||||
TRFE_BPF1530MHZ=7,
|
||||
TRFE_BPF1560MHZ=8,
|
||||
TRFE_BPF1590MHZ=9,
|
||||
TRFE_BPF1640MHZ=10,
|
||||
TRFE_BPF1660MHZ=11,
|
||||
TRFE_BPF1680MHZ=12,
|
||||
TRFE_BPF1700MHZ=13,
|
||||
TRFE_BPF1720MHZ=14,
|
||||
TRFE_BPF1750MHZ=15
|
||||
} TUNER_RF_FILTER_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TMGE_P4_0DB=0,
|
||||
TMGE_P12_0DB=1
|
||||
} TUNER_MIXER_GAIN_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TBCE_LBAND=0,
|
||||
TBCE_1=1,
|
||||
TBCE_2=2,
|
||||
TBCE_VUBAND=3
|
||||
} TUNER_BIAS_CURRENT_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TMFE_27_0MHZ=0,
|
||||
TMFE_4_6MHZ=8,
|
||||
TMFE_4_2MHZ=9,
|
||||
TMFE_3_8MHZ=10,
|
||||
TMFE_3_4MHZ=11,
|
||||
TMFE_3_0MHZ=12,
|
||||
TMFE_2_7MHZ=13,
|
||||
TMFE_2_3MHZ=14,
|
||||
TMFE_1_9MHZ=15
|
||||
} TUNER_MIXER_FILTER_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG1E_N3_0DB=0,
|
||||
TIG1E_P6_0DB=1
|
||||
} TUNER_IF_GAIN1_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIGME_LINEARITY=0,
|
||||
TIGME_SENSITIVITY=1
|
||||
} TUNER_IF_GAIN_MODE_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIRFE_21_4MHZ=0,
|
||||
TIRFE_21_0MHZ=1,
|
||||
TIRFE_17_6MHZ=2,
|
||||
TIRFE_14_7MHZ=3,
|
||||
TIRFE_12_4MHZ=4,
|
||||
TIRFE_10_6MHZ=5,
|
||||
TIRFE_9_0MHZ=6,
|
||||
TIRFE_7_7MHZ=7,
|
||||
TIRFE_6_4MHZ=8,
|
||||
TIRFE_5_3MHZ=9,
|
||||
TIRFE_4_4MHZ=10,
|
||||
TIRFE_3_4MHZ=11,
|
||||
TIRFE_2_6MHZ=12,
|
||||
TIRFE_1_8MHZ=13,
|
||||
TIRFE_1_2MHZ=14,
|
||||
TIRFE_1_0MHZ=15
|
||||
} TUNER_IF_RC_FILTER_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG2E_P0_0DB=0,
|
||||
TIG2E_P3_0DB=1,
|
||||
TIG2E_P6_0DB=2,
|
||||
TIG2E_P9_0DB=3
|
||||
} TUNER_IF_GAIN2_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG3E_P0_0DB=0,
|
||||
TIG3E_P3_0DB=1,
|
||||
TIG3E_P6_0DB=2,
|
||||
TIG3E_P9_0DB=3
|
||||
} TUNER_IF_GAIN3_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG4E_P0_0DB=0,
|
||||
TIG4E_P1_0DB=1,
|
||||
TIG4E_P2_0DB=2
|
||||
} TUNER_IF_GAIN4_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIFE_5_50MHZ=0,
|
||||
TIFE_5_30MHZ=1,
|
||||
TIFE_5_00MHZ=2,
|
||||
TIFE_4_80MHZ=3,
|
||||
TIFE_4_60MHZ=4,
|
||||
TIFE_4_40MHZ=5,
|
||||
TIFE_4_30MHZ=6,
|
||||
TIFE_4_10MHZ=7,
|
||||
TIFE_3_90MHZ=8,
|
||||
TIFE_3_80MHZ=9,
|
||||
TIFE_3_70MHZ=10,
|
||||
TIFE_3_60MHZ=11,
|
||||
TIFE_3_40MHZ=12,
|
||||
TIFE_3_30MHZ=13,
|
||||
TIFE_3_20MHZ=14,
|
||||
TIFE_3_10MHZ=15,
|
||||
TIFE_3_00MHZ=16,
|
||||
TIFE_2_95MHZ=17,
|
||||
TIFE_2_90MHZ=18,
|
||||
TIFE_2_80MHZ=19,
|
||||
TIFE_2_75MHZ=20,
|
||||
TIFE_2_70MHZ=21,
|
||||
TIFE_2_60MHZ=22,
|
||||
TIFE_2_55MHZ=23,
|
||||
TIFE_2_50MHZ=24,
|
||||
TIFE_2_45MHZ=25,
|
||||
TIFE_2_40MHZ=26,
|
||||
TIFE_2_30MHZ=27,
|
||||
TIFE_2_28MHZ=28,
|
||||
TIFE_2_24MHZ=29,
|
||||
TIFE_2_20MHZ=30,
|
||||
TIFE_2_15MHZ=31
|
||||
} TUNER_IF_FILTER_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG5E_P3_0DB=0,
|
||||
TIG5E_P6_0DB=1,
|
||||
TIG5E_P9_0DB=2,
|
||||
TIG5E_P12_0DB=3,
|
||||
TIG5E_P15_0DB=4
|
||||
} TUNER_IF_GAIN5_ENUM;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG6E_P3_0DB=0,
|
||||
TIG6E_P6_0DB=1,
|
||||
TIG6E_P9_0DB=2,
|
||||
TIG6E_P12_0DB=3,
|
||||
TIG6E_P15_0DB=4
|
||||
} TUNER_IF_GAIN6_ENUM;
|
||||
#define FCD_CMD_APP_RESET 255 //!< Reset to bootloader
|
||||
|
||||
#include "fcdprohidcmd.h"
|
||||
#include "fcdproplushidcmd.h"
|
||||
|
||||
#endif // FCDHIDCMD_H
|
||||
|
263
fcdhid/fcdprohidcmd.h
Normal file
263
fcdhid/fcdprohidcmd.h
Normal file
@ -0,0 +1,263 @@
|
||||
#ifndef _FCDPRO_HID_CMD_H_
|
||||
#define _FCDPRO_HID_CMD_H_
|
||||
|
||||
#define FCDPRO_HID_CMD_GET_IF_RSSI 104 // Returns 1 byte unsigned IF RSSI, -35dBm ~=0, -10dBm ~=70.
|
||||
#define FCDPRO_HID_CMD_GET_PLL_LOCK 105 // Returns 1 bit, true if locked
|
||||
|
||||
#define FCDPRO_HID_CMD_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 FCDPRO_HID_CMD_GET_DC_CORR 107 // Returns 2 byte unsigned I DC correction followed by 2 byte unsigned Q DC correction. 32768 is the default centre value.
|
||||
#define FCDPRO_HID_CMD_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 FCDPRO_HID_CMD_GET_IQ_CORR 109 // Returns 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 FCDPRO_HID_CMD_SET_LNA_GAIN 110 // Send a 1 byte value, see enums for reference
|
||||
#define FCDPRO_HID_CMD_SET_LNA_ENHANCE 111
|
||||
#define FCDPRO_HID_CMD_SET_BAND 112
|
||||
#define FCDPRO_HID_CMD_SET_RF_FILTER 113
|
||||
#define FCDPRO_HID_CMD_SET_MIXER_GAIN 114
|
||||
#define FCDPRO_HID_CMD_SET_BIAS_CURRENT 115
|
||||
#define FCDPRO_HID_CMD_SET_MIXER_FILTER 116
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN1 117
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN_MODE 118
|
||||
#define FCDPRO_HID_CMD_SET_IF_RC_FILTER 119
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN2 120
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN3 121
|
||||
#define FCDPRO_HID_CMD_SET_IF_FILTER 122
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN4 123
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN5 124
|
||||
#define FCDPRO_HID_CMD_SET_IF_GAIN6 125
|
||||
|
||||
#define FCDPRO_HID_CMD_GET_LNA_GAIN 150 // Retrieve a 1 byte value, see enums for reference
|
||||
#define FCDPRO_HID_CMD_GET_LNA_ENHANCE 151
|
||||
#define FCDPRO_HID_CMD_GET_BAND 152
|
||||
#define FCDPRO_HID_CMD_GET_RF_FILTER 153
|
||||
#define FCDPRO_HID_CMD_GET_MIXER_GAIN 154
|
||||
#define FCDPRO_HID_CMD_GET_BIAS_CURRENT 155
|
||||
#define FCDPRO_HID_CMD_GET_MIXER_FILTER 156
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN1 157
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN_MODE 158
|
||||
#define FCDPRO_HID_CMD_GET_IF_RC_FILTER 159
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN2 160
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN3 161
|
||||
#define FCDPRO_HID_CMD_GET_IF_FILTER 162
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN4 163
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN5 164
|
||||
#define FCDPRO_HID_CMD_GET_IF_GAIN6 165
|
||||
|
||||
#define FCDPRO_HID_CMD_I2C_SEND_BYTE 200
|
||||
#define FCDPRO_HID_CMD_I2C_RECEIVE_BYTE 201
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TLGE_N5_0DB=0,
|
||||
TLGE_N2_5DB=1,
|
||||
TLGE_P0_0DB=4,
|
||||
TLGE_P2_5DB=5,
|
||||
TLGE_P5_0DB=6,
|
||||
TLGE_P7_5DB=7,
|
||||
TLGE_P10_0DB=8,
|
||||
TLGE_P12_5DB=9,
|
||||
TLGE_P15_0DB=10,
|
||||
TLGE_P17_5DB=11,
|
||||
TLGE_P20_0DB=12,
|
||||
TLGE_P25_0DB=13,
|
||||
TLGE_P30_0DB=14
|
||||
} fcdpro_tuner_lna_gains;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TLEE_OFF=0,
|
||||
TLEE_0=1,
|
||||
TLEE_1=3,
|
||||
TLEE_2=5,
|
||||
TLEE_3=7
|
||||
} fcdpro_tuner_lna_enhance;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TBE_VHF2,
|
||||
TBE_VHF3,
|
||||
TBE_UHF,
|
||||
TBE_LBAND
|
||||
} fcdpro_tuner_bands;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
// Band 0, VHF II
|
||||
TRFE_LPF268MHZ=0,
|
||||
TRFE_LPF299MHZ=8,
|
||||
// Band 1, VHF III
|
||||
TRFE_LPF509MHZ=0,
|
||||
TRFE_LPF656MHZ=8,
|
||||
// Band 2, UHF
|
||||
TRFE_BPF360MHZ=0,
|
||||
TRFE_BPF380MHZ=1,
|
||||
TRFE_BPF405MHZ=2,
|
||||
TRFE_BPF425MHZ=3,
|
||||
TRFE_BPF450MHZ=4,
|
||||
TRFE_BPF475MHZ=5,
|
||||
TRFE_BPF505MHZ=6,
|
||||
TRFE_BPF540MHZ=7,
|
||||
TRFE_BPF575MHZ=8,
|
||||
TRFE_BPF615MHZ=9,
|
||||
TRFE_BPF670MHZ=10,
|
||||
TRFE_BPF720MHZ=11,
|
||||
TRFE_BPF760MHZ=12,
|
||||
TRFE_BPF840MHZ=13,
|
||||
TRFE_BPF890MHZ=14,
|
||||
TRFE_BPF970MHZ=15,
|
||||
// Band 2, L band
|
||||
TRFE_BPF1300MHZ=0,
|
||||
TRFE_BPF1320MHZ=1,
|
||||
TRFE_BPF1360MHZ=2,
|
||||
TRFE_BPF1410MHZ=3,
|
||||
TRFE_BPF1445MHZ=4,
|
||||
TRFE_BPF1460MHZ=5,
|
||||
TRFE_BPF1490MHZ=6,
|
||||
TRFE_BPF1530MHZ=7,
|
||||
TRFE_BPF1560MHZ=8,
|
||||
TRFE_BPF1590MHZ=9,
|
||||
TRFE_BPF1640MHZ=10,
|
||||
TRFE_BPF1660MHZ=11,
|
||||
TRFE_BPF1680MHZ=12,
|
||||
TRFE_BPF1700MHZ=13,
|
||||
TRFE_BPF1720MHZ=14,
|
||||
TRFE_BPF1750MHZ=15
|
||||
} fcdpro_rf_filters;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TMGE_P4_0DB=0,
|
||||
TMGE_P12_0DB=1
|
||||
} fcdpro_tuner_mixer_gains;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TBCE_LBAND=0,
|
||||
TBCE_1=1,
|
||||
TBCE_2=2,
|
||||
TBCE_VUBAND=3
|
||||
} fcdpro_tuner_bias_currents;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TMFE_27_0MHZ=0,
|
||||
TMFE_4_6MHZ=8,
|
||||
TMFE_4_2MHZ=9,
|
||||
TMFE_3_8MHZ=10,
|
||||
TMFE_3_4MHZ=11,
|
||||
TMFE_3_0MHZ=12,
|
||||
TMFE_2_7MHZ=13,
|
||||
TMFE_2_3MHZ=14,
|
||||
TMFE_1_9MHZ=15
|
||||
} fcdpro_tuner_mixer_filters;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG1E_N3_0DB=0,
|
||||
TIG1E_P6_0DB=1
|
||||
} fcdpro_tuner_if_gains1;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIGME_LINEARITY=0,
|
||||
TIGME_SENSITIVITY=1
|
||||
} fcdpro_tuner_if_gain_modes;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIRFE_21_4MHZ=0,
|
||||
TIRFE_21_0MHZ=1,
|
||||
TIRFE_17_6MHZ=2,
|
||||
TIRFE_14_7MHZ=3,
|
||||
TIRFE_12_4MHZ=4,
|
||||
TIRFE_10_6MHZ=5,
|
||||
TIRFE_9_0MHZ=6,
|
||||
TIRFE_7_7MHZ=7,
|
||||
TIRFE_6_4MHZ=8,
|
||||
TIRFE_5_3MHZ=9,
|
||||
TIRFE_4_4MHZ=10,
|
||||
TIRFE_3_4MHZ=11,
|
||||
TIRFE_2_6MHZ=12,
|
||||
TIRFE_1_8MHZ=13,
|
||||
TIRFE_1_2MHZ=14,
|
||||
TIRFE_1_0MHZ=15
|
||||
} fcdpro_tuner_if_rc_filters;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG2E_P0_0DB=0,
|
||||
TIG2E_P3_0DB=1,
|
||||
TIG2E_P6_0DB=2,
|
||||
TIG2E_P9_0DB=3
|
||||
} fcdpro_tuner_if_gains2;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG3E_P0_0DB=0,
|
||||
TIG3E_P3_0DB=1,
|
||||
TIG3E_P6_0DB=2,
|
||||
TIG3E_P9_0DB=3
|
||||
} fcdpro_tuner_if_gains3;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG4E_P0_0DB=0,
|
||||
TIG4E_P1_0DB=1,
|
||||
TIG4E_P2_0DB=2
|
||||
} fcdpro_tuner_if_gains4;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIFE_5_50MHZ=0,
|
||||
TIFE_5_30MHZ=1,
|
||||
TIFE_5_00MHZ=2,
|
||||
TIFE_4_80MHZ=3,
|
||||
TIFE_4_60MHZ=4,
|
||||
TIFE_4_40MHZ=5,
|
||||
TIFE_4_30MHZ=6,
|
||||
TIFE_4_10MHZ=7,
|
||||
TIFE_3_90MHZ=8,
|
||||
TIFE_3_80MHZ=9,
|
||||
TIFE_3_70MHZ=10,
|
||||
TIFE_3_60MHZ=11,
|
||||
TIFE_3_40MHZ=12,
|
||||
TIFE_3_30MHZ=13,
|
||||
TIFE_3_20MHZ=14,
|
||||
TIFE_3_10MHZ=15,
|
||||
TIFE_3_00MHZ=16,
|
||||
TIFE_2_95MHZ=17,
|
||||
TIFE_2_90MHZ=18,
|
||||
TIFE_2_80MHZ=19,
|
||||
TIFE_2_75MHZ=20,
|
||||
TIFE_2_70MHZ=21,
|
||||
TIFE_2_60MHZ=22,
|
||||
TIFE_2_55MHZ=23,
|
||||
TIFE_2_50MHZ=24,
|
||||
TIFE_2_45MHZ=25,
|
||||
TIFE_2_40MHZ=26,
|
||||
TIFE_2_30MHZ=27,
|
||||
TIFE_2_28MHZ=28,
|
||||
TIFE_2_24MHZ=29,
|
||||
TIFE_2_20MHZ=30,
|
||||
TIFE_2_15MHZ=31
|
||||
} fcdpro_tuner_if_filters;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG5E_P3_0DB=0,
|
||||
TIG5E_P6_0DB=1,
|
||||
TIG5E_P9_0DB=2,
|
||||
TIG5E_P12_0DB=3,
|
||||
TIG5E_P15_0DB=4
|
||||
} fcdpro_tuner_if_gains5;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TIG6E_P3_0DB=0,
|
||||
TIG6E_P6_0DB=1,
|
||||
TIG6E_P9_0DB=2,
|
||||
TIG6E_P12_0DB=3,
|
||||
TIG6E_P15_0DB=4
|
||||
} fcdpro_tuner_if_gains6;
|
||||
|
||||
#endif // _FCDPRO_HID_CMD_H_
|
47
fcdhid/fcdproplushidcmd.h
Normal file
47
fcdhid/fcdproplushidcmd.h
Normal file
@ -0,0 +1,47 @@
|
||||
#ifndef _FCD_PRO_PLUS_HID_CMD_H_
|
||||
#define _FCD_PRO_PLUS_HID_CMD_H_
|
||||
|
||||
#define FCDPROPLUS_HID_CMD_SET_LNA_GAIN 110 // Send one byte, 1 on, 0 off
|
||||
#define FCDPROPLUS_HID_CMD_SET_RF_FILTER 113 // Send one byte enum, see TUNERRFFILTERENUM
|
||||
#define FCDPROPLUS_HID_CMD_SET_MIXER_GAIN 114 // Send one byte, 1 on, 0 off
|
||||
#define FCDPROPLUS_HID_CMD_SET_IF_GAIN 117 // Send one byte value, valid value 0 to 59 (dB)
|
||||
#define FCDPROPLUS_HID_CMD_SET_IF_FILTER 122 // Send one byte enum, see TUNERIFFILTERENUM
|
||||
#define FCDPROPLUS_HID_CMD_SET_BIAS_TEE 126 // Send one byte, 1 on, 0 off
|
||||
|
||||
#define FCDPROPLUS_HID_CMD_GET_LNA_GAIN 150 // Returns one byte, 1 on, 0 off
|
||||
#define FCDPROPLUS_HID_CMD_GET_RF_FILTER 153 // Returns one byte enum, see TUNERRFFILTERENUM
|
||||
#define FCDPROPLUS_HID_CMD_GET_MIXER_GAIN 154 // Returns one byte, 1 on, 0 off
|
||||
#define FCDPROPLUS_HID_CMD_GET_IF_GAIN 157 // Returns one byte value, valid value 0 to 59 (dB)
|
||||
#define FCDPROPLUS_HID_CMD_GET_IF_FILTER 162 // Returns one byte enum, see TUNERIFFILTERENUM
|
||||
#define FCDPROPLUS_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
|
||||
} fcdproplus_tuner_rf_filters;
|
||||
|
||||
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
|
||||
} fcdproplus_tuner_if_filters;
|
||||
|
||||
#endif // _FCD_PRO_PLUS_HID_CMD_H_
|
@ -277,14 +277,16 @@ void FCDProInput::set_bias_t(bool on)
|
||||
{
|
||||
quint8 cmd = on ? 1 : 0;
|
||||
|
||||
fcdAppSetParam(m_dev, FCD_CMD_APP_SET_BIAS_TEE, &cmd, 1);
|
||||
// TODO: use FCD Pro controls
|
||||
//fcdAppSetParam(m_dev, FCD_CMD_APP_SET_BIAS_TEE, &cmd, 1);
|
||||
}
|
||||
|
||||
void FCDProInput::set_lna_gain(bool on)
|
||||
{
|
||||
quint8 cmd = on ? 1 : 0;
|
||||
|
||||
fcdAppSetParam(m_dev, FCD_CMD_APP_SET_LNA_GAIN, &cmd, 1);
|
||||
// TODO: use FCD Pro controls
|
||||
//fcdAppSetParam(m_dev, FCD_CMD_APP_SET_LNA_GAIN, &cmd, 1);
|
||||
}
|
||||
|
||||
|
||||
|
@ -278,14 +278,14 @@ void FCDProPlusInput::set_bias_t(bool on)
|
||||
{
|
||||
quint8 cmd = on ? 1 : 0;
|
||||
|
||||
fcdAppSetParam(m_dev, FCD_CMD_APP_SET_BIAS_TEE, &cmd, 1);
|
||||
fcdAppSetParam(m_dev, FCDPROPLUS_HID_CMD_SET_BIAS_TEE, &cmd, 1);
|
||||
}
|
||||
|
||||
void FCDProPlusInput::set_lna_gain(bool on)
|
||||
{
|
||||
quint8 cmd = on ? 1 : 0;
|
||||
|
||||
fcdAppSetParam(m_dev, FCD_CMD_APP_SET_LNA_GAIN, &cmd, 1);
|
||||
fcdAppSetParam(m_dev, FCDPROPLUS_HID_CMD_SET_LNA_GAIN, &cmd, 1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user