GNU Radio 3.6.5 C++ API

fcdhidcmd.h File Reference

Go to the source code of this file.

Defines

#define FCD_HID_CMD_H   1
#define FCD_CMD_BL_QUERY   1
#define FCD_CMD_BL_RESET   8
#define FCD_CMD_BL_ERASE   24
#define FCD_CMD_BL_SET_BYTE_ADDR   25
#define FCD_CMD_BL_GET_BYTE_ADDR_RANGE   26
#define FCD_CMD_BL_WRITE_FLASH_BLOCK   27
#define FCD_CMD_BL_READ_FLASH_BLOCK   28
#define FCD_CMD_APP_SET_FREQ_KHZ   100
#define FCD_CMD_APP_SET_FREQ_HZ   101
#define FCD_CMD_APP_GET_FREQ_HZ   102
#define FCD_CMD_APP_GET_IF_RSSI   104
#define FCD_CMD_APP_GET_PLL_LOCK   105
#define FCD_CMD_APP_SET_DC_CORR   106
#define FCD_CMD_APP_GET_DC_CORR   107
#define FCD_CMD_APP_SET_IQ_CORR   108
#define FCD_CMD_APP_GET_IQ_CORR   109
#define FCD_CMD_APP_SET_LNA_GAIN   110
#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
#define FCD_CMD_APP_GET_LNA_GAIN   150
#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
#define FCD_CMD_APP_SEND_I2C_BYTE   200
#define FCD_CMD_APP_RECV_I2C_BYTE   201
#define FCD_CMD_APP_RESET   255

Enumerations

enum  TUNER_LNA_GAIN_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
}
enum  TUNER_LNA_ENHANCE_ENUM {
  TLEE_OFF = 0, TLEE_0 = 1, TLEE_1 = 3, TLEE_2 = 5,
  TLEE_3 = 7
}
enum  TUNER_BAND_ENUM { TBE_VHF2, TBE_VHF3, TBE_UHF, TBE_LBAND }
enum  TUNER_RF_FILTER_ENUM {
  TRFE_LPF268MHZ = 0, TRFE_LPF299MHZ = 8, TRFE_LPF509MHZ = 0, TRFE_LPF656MHZ = 8,
  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,
  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
}
enum  TUNER_MIXER_GAIN_ENUM { TMGE_P4_0DB = 0, TMGE_P12_0DB = 1 }
enum  TUNER_BIAS_CURRENT_ENUM { TBCE_LBAND = 0, TBCE_1 = 1, TBCE_2 = 2, TBCE_VUBAND = 3 }
enum  TUNER_MIXER_FILTER_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
}
enum  TUNER_IF_GAIN1_ENUM { TIG1E_N3_0DB = 0, TIG1E_P6_0DB = 1 }
enum  TUNER_IF_GAIN_MODE_ENUM { TIGME_LINEARITY = 0, TIGME_SENSITIVITY = 1 }
enum  TUNER_IF_RC_FILTER_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
}
enum  TUNER_IF_GAIN2_ENUM { TIG2E_P0_0DB = 0, TIG2E_P3_0DB = 1, TIG2E_P6_0DB = 2, TIG2E_P9_0DB = 3 }
enum  TUNER_IF_GAIN3_ENUM { TIG3E_P0_0DB = 0, TIG3E_P3_0DB = 1, TIG3E_P6_0DB = 2, TIG3E_P9_0DB = 3 }
enum  TUNER_IF_GAIN4_ENUM { TIG4E_P0_0DB = 0, TIG4E_P1_0DB = 1, TIG4E_P2_0DB = 2 }
enum  TUNER_IF_FILTER_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
}
enum  TUNER_IF_GAIN5_ENUM {
  TIG5E_P3_0DB = 0, TIG5E_P6_0DB = 1, TIG5E_P9_0DB = 2, TIG5E_P12_0DB = 3,
  TIG5E_P15_0DB = 4
}
enum  TUNER_IF_GAIN6_ENUM {
  TIG6E_P3_0DB = 0, TIG6E_P6_0DB = 1, TIG6E_P9_0DB = 2, TIG6E_P12_0DB = 3,
  TIG6E_P15_0DB = 4
}

Define Documentation

#define FCD_CMD_APP_GET_BAND   152
#define FCD_CMD_APP_GET_BIAS_CURRENT   155
#define FCD_CMD_APP_GET_BIAS_TEE   166

Bias T. 1=ON, 0=OFF.

#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_GET_FREQ_HZ   102

Returns 4 byte unsigned little endian frequency in Hz.

#define FCD_CMD_APP_GET_IF_FILTER   162
#define FCD_CMD_APP_GET_IF_GAIN1   157
#define FCD_CMD_APP_GET_IF_GAIN2   160
#define FCD_CMD_APP_GET_IF_GAIN3   161
#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_IF_GAIN_MODE   158
#define FCD_CMD_APP_GET_IF_RC_FILTER   159
#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_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_GET_LNA_ENHANCE   151
#define FCD_CMD_APP_GET_LNA_GAIN   150
#define FCD_CMD_APP_GET_MIXER_FILTER   156
#define FCD_CMD_APP_GET_MIXER_GAIN   154
#define FCD_CMD_APP_GET_PLL_LOCK   105

Returns 1 bit, true if locked.

#define FCD_CMD_APP_GET_RF_FILTER   153
#define FCD_CMD_APP_RECV_I2C_BYTE   201
#define FCD_CMD_APP_RESET   255
#define FCD_CMD_APP_SEND_I2C_BYTE   200
#define FCD_CMD_APP_SET_BAND   112
#define FCD_CMD_APP_SET_BIAS_CURRENT   115
#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_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_FREQ_HZ   101

Send with 4 byte unsigned little endian frequency in Hz, returns with actual frequency set 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_IF_FILTER   122
#define FCD_CMD_APP_SET_IF_GAIN1   117
#define FCD_CMD_APP_SET_IF_GAIN2   120
#define FCD_CMD_APP_SET_IF_GAIN3   121
#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_IF_GAIN_MODE   118
#define FCD_CMD_APP_SET_IF_RC_FILTER   119
#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_SET_LNA_ENHANCE   111
#define FCD_CMD_APP_SET_LNA_GAIN   110

Send a 1 byte value, see enums for reference.

#define FCD_CMD_APP_SET_MIXER_FILTER   116
#define FCD_CMD_APP_SET_MIXER_GAIN   114
#define FCD_CMD_APP_SET_RF_FILTER   113
#define FCD_CMD_BL_ERASE   24

Erase firmware from FCD flash.

#define FCD_CMD_BL_GET_BYTE_ADDR_RANGE   26

Get address range.

#define FCD_CMD_BL_QUERY   1

Returns string with "FCDAPP version".

#define FCD_CMD_BL_READ_FLASH_BLOCK   28

Read flash block.

#define FCD_CMD_BL_RESET   8

Reset to application mode.

#define FCD_CMD_BL_SET_BYTE_ADDR   25

TBD

#define FCD_CMD_BL_WRITE_FLASH_BLOCK   27

Write flash block.

#define FCD_HID_CMD_H   1

Enumeration Type Documentation

Enumerator:
TBE_VHF2 
TBE_VHF3 
TBE_UHF 
TBE_LBAND 
Enumerator:
TBCE_LBAND 
TBCE_1 
TBCE_2 
TBCE_VUBAND 
Enumerator:
TIFE_5_50MHZ 
TIFE_5_30MHZ 
TIFE_5_00MHZ 
TIFE_4_80MHZ 
TIFE_4_60MHZ 
TIFE_4_40MHZ 
TIFE_4_30MHZ 
TIFE_4_10MHZ 
TIFE_3_90MHZ 
TIFE_3_80MHZ 
TIFE_3_70MHZ 
TIFE_3_60MHZ 
TIFE_3_40MHZ 
TIFE_3_30MHZ 
TIFE_3_20MHZ 
TIFE_3_10MHZ 
TIFE_3_00MHZ 
TIFE_2_95MHZ 
TIFE_2_90MHZ 
TIFE_2_80MHZ 
TIFE_2_75MHZ 
TIFE_2_70MHZ 
TIFE_2_60MHZ 
TIFE_2_55MHZ 
TIFE_2_50MHZ 
TIFE_2_45MHZ 
TIFE_2_40MHZ 
TIFE_2_30MHZ 
TIFE_2_28MHZ 
TIFE_2_24MHZ 
TIFE_2_20MHZ 
TIFE_2_15MHZ 
Enumerator:
TIG1E_N3_0DB 
TIG1E_P6_0DB 
Enumerator:
TIG2E_P0_0DB 
TIG2E_P3_0DB 
TIG2E_P6_0DB 
TIG2E_P9_0DB 
Enumerator:
TIG3E_P0_0DB 
TIG3E_P3_0DB 
TIG3E_P6_0DB 
TIG3E_P9_0DB 
Enumerator:
TIG4E_P0_0DB 
TIG4E_P1_0DB 
TIG4E_P2_0DB 
Enumerator:
TIG5E_P3_0DB 
TIG5E_P6_0DB 
TIG5E_P9_0DB 
TIG5E_P12_0DB 
TIG5E_P15_0DB 
Enumerator:
TIG6E_P3_0DB 
TIG6E_P6_0DB 
TIG6E_P9_0DB 
TIG6E_P12_0DB 
TIG6E_P15_0DB 
Enumerator:
TIGME_LINEARITY 
TIGME_SENSITIVITY 
Enumerator:
T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