Skip to content

Commit

Permalink
add option tx_notch_freq
Browse files Browse the repository at this point in the history
Signed-off-by: Xue Liu <[email protected]>
  • Loading branch information
xueliu committed Jul 28, 2017
1 parent 0d77a7c commit 3630456
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,21 +259,33 @@ enable.datatype = "bool"
enable:value(true, translate("True"))
enable:value(false, translate("False"))

--
-- Radio RF frontend
--
type = radio:option(ListValue,"type",translate("Type"))
type.optional = false;
type.rmempty = false;
type.datatype = "string"
type:value("SX1257", translate("SX1257"))
type:value("SX1255", translate("SX1255"))

--
-- Radio Frequency
--
freq = radio:option(Value,"freq",translate("Frequency"), "Hz")
freq.optional = false;
freq.rmempty = false;

--
-- RSSI offset
--
rssi_offset = radio:option(Value,"rssi_offset",translate("RSSI Offset"))
rssi_offset.optional = false;
rssi_offset.rmempty = false;

--
-- Tx Enable
--
tx_enable = radio:option(ListValue,"tx_enable",translate("Tx Enable"))
tx_enable.optional = false;
tx_enable.rmempty = false;
Expand All @@ -282,6 +294,11 @@ tx_enable.datatype = "bool"
tx_enable:value(true, translate("True"))
tx_enable:value(false, translate("False"))

tx_notch_freq= radio:option(Value,"tx_notch_freq",translate("Tx Notch Frequency"), "[126..250] KHz")
tx_notch_freq.optional = false;
tx_notch_freq.rmempty = true;
tx_notch_freq:depends("tx_enable", "true")

tx_freq_min= radio:option(Value,"tx_freq_min",translate("Minimum Tx Frequency"))
tx_freq_min.optional = false;
tx_freq_min.rmempty = true;
Expand Down Expand Up @@ -335,7 +352,7 @@ datarate.rmempty = false;
-- tx_lut
--
lut=m:section(TypedSection,"lut","Tx LUT Parameters")
lut.addremove=false
lut.addremove=true
lut.anonymous=false

pa_gain = lut:option(Value,"pa_gain",translate("PA Gain"))
Expand Down

0 comments on commit 3630456

Please sign in to comment.