kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' into cbayer-857-pwr-levels-cal
commit
069b0bf5b0
|
@ -58,7 +58,7 @@ int commradio_transaction(RIG *rig, const unsigned char *cmd, int cmd_len,
|
|||
{
|
||||
goto transaction_quit;
|
||||
}
|
||||
ret = unpack_frame(data, rx, ret);
|
||||
ret = commradio_unpack_frame(data, rx, ret);
|
||||
if (ret < RIG_OK)
|
||||
{
|
||||
goto transaction_quit;
|
||||
|
|
|
@ -20,7 +20,7 @@ struct rig_caps ctx10_caps =
|
|||
RIG_MODEL(RIG_MODEL_CTX10),
|
||||
.model_name = "CTX-10",
|
||||
.mfg_name = "Commradio",
|
||||
.version = "20240802.0",
|
||||
.version = "20240809.0",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
|
|
@ -104,7 +104,7 @@ int frame_message(unsigned char frame[], const unsigned char *data,
|
|||
return frame_len;
|
||||
}
|
||||
|
||||
int unpack_frame(unsigned char msg[], const unsigned char *frame,
|
||||
int commradio_unpack_frame(unsigned char msg[], const unsigned char *frame,
|
||||
const int frame_len)
|
||||
{
|
||||
if (frame_len < 5)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
int frame_message(unsigned char frame[], const unsigned char *data,
|
||||
int data_len);
|
||||
|
||||
int unpack_frame(unsigned char msg[], const unsigned char *frame, int frame_len);
|
||||
int commradio_unpack_frame(unsigned char msg[], const unsigned char *frame, int frame_len);
|
||||
|
||||
#endif /* _FRAME_H */
|
||||
|
||||
|
|
|
@ -226,19 +226,6 @@ enum ft857_digi
|
|||
FT857_DIGI_USER_U,
|
||||
};
|
||||
|
||||
#define FT857_PWR_CAL { 9, \
|
||||
{ \
|
||||
{ 0x00, 0.0f }, \
|
||||
{ 0x01, 10.0f }, \
|
||||
{ 0x02, 15.0f }, \
|
||||
{ 0x03, 20.0f }, \
|
||||
{ 0x04, 34.0f }, \
|
||||
{ 0x05, 50.0f }, \
|
||||
{ 0x06, 66.0f }, \
|
||||
{ 0x07, 82.f }, \
|
||||
{ 0x08, 100.0f } \
|
||||
} }
|
||||
|
||||
#define FT857_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_USB|\
|
||||
RIG_MODE_LSB|RIG_MODE_RTTY|RIG_MODE_FM|RIG_MODE_PKTUSB)
|
||||
#define FT857_SSB_CW_RX_MODES (RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_USB|RIG_MODE_LSB)
|
||||
|
@ -277,7 +264,7 @@ struct rig_caps ft857_caps =
|
|||
.retry = 0,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_LOCK | RIG_FUNC_TONE | RIG_FUNC_TSQL | RIG_FUNC_CSQL | RIG_FUNC_RIT,
|
||||
.has_get_level = RIG_LEVEL_STRENGTH | RIG_LEVEL_RFPOWER | RIG_LEVEL_RFPOWER_METER_WATTS,
|
||||
.has_get_level = RIG_LEVEL_STRENGTH | RIG_LEVEL_RFPOWER,
|
||||
.has_set_level = RIG_LEVEL_BAND_SELECT,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
.has_set_parm = RIG_PARM_NONE,
|
||||
|
@ -368,7 +355,7 @@ struct rig_caps ft857_caps =
|
|||
// {RIG_MODE_WFM, kHz(230)}, /* ?? */
|
||||
RIG_FLT_END,
|
||||
},
|
||||
.rfpower_meter_cal = FT857_PWR_CAL,
|
||||
|
||||
.rig_init = ft857_init,
|
||||
.rig_cleanup = ft857_cleanup,
|
||||
.rig_open = ft857_open,
|
||||
|
@ -855,7 +842,7 @@ int ft857_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
static int ft857_get_pometer_level(RIG *rig, value_t *val, const cal_table_float_t *cal, float divider)
|
||||
static int ft857_get_pometer_level(RIG *rig, value_t *val)
|
||||
{
|
||||
struct ft857_priv_data *p = (struct ft857_priv_data *) STATE(rig)->priv;
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__);
|
||||
|
|
Ładowanie…
Reference in New Issue