|
@@ -2,28 +2,28 @@
|
|
|
function tm_sband_get_device_conf(buffer, pinfo, tree, tm_sband_get_device_conf, offset)
|
|
|
|
|
|
-- Define ProtoFields with three arguments
|
|
|
-local f_rfe_rx0_on = ProtoField.uint32("tm_sband_get_device_conf.RfeRx0On", "RFE RX0 On", base.HEX)
|
|
|
-local f_rfe_tx0_on = ProtoField.uint32("tm_sband_get_device_conf.RfeTx0On", "RFE TX0 On", base.HEX)
|
|
|
-local f_rfe_pa0_on = ProtoField.uint32("tm_sband_get_device_conf.RfePa0On", "RFE PA0 On", base.HEX)
|
|
|
-local f_rfe_rx_tx0 = ProtoField.uint32("tm_sband_get_device_conf.RfeRxTx0", "RFE RX TX0", base.HEX)
|
|
|
-local f_rfe_rx1_on = ProtoField.uint32("tm_sband_get_device_conf.RfeRx1On", "RFE RX1 On", base.HEX)
|
|
|
-local f_rfe_tx1_on = ProtoField.uint32("tm_sband_get_device_conf.RfeTx1On", "RFE TX1 On", base.HEX)
|
|
|
-local f_rfe_pa1_on = ProtoField.uint32("tm_sband_get_device_conf.RfePa1On", "RFE PA1 On", base.HEX)
|
|
|
-local f_rfe_rx_tx1 = ProtoField.uint32("tm_sband_get_device_conf.RfeRxTx1", "RFE RX TX1", base.HEX)
|
|
|
-local f_rfe_out_en = ProtoField.uint32("tm_sband_get_device_conf.RfeOutEn", "RFE Out Enable", base.HEX)
|
|
|
-local f_rfe_gpio0 = ProtoField.uint32("tm_sband_get_device_conf.RfeGpio0", "RFE GPIO0", base.HEX)
|
|
|
-local f_rfe_loop_det = ProtoField.uint32("tm_sband_get_device_conf.RfeLoopDet", "RFE Loop Detect", base.HEX)
|
|
|
-local f_rfe_lo_mux = ProtoField.uint32("tm_sband_get_device_conf.RfeLoMux", "RFE LO Mux", base.HEX)
|
|
|
-local f_rfe_pow_on = ProtoField.uint32("tm_sband_get_device_conf.RfePowOn", "RFE Power On", base.HEX)
|
|
|
-local f_rfe_da = ProtoField.uint32("tm_sband_get_device_conf.RfeDA", "RFE DA", base.HEX)
|
|
|
-local f_rfe_cl = ProtoField.uint32("tm_sband_get_device_conf.RfeCL", "RFE CL", base.HEX)
|
|
|
-local f_rfe_en_ad5304 = ProtoField.uint32("tm_sband_get_device_conf.RfeEnAD5304", "RFE Enable AD5304", base.HEX)
|
|
|
-local f_rfe_en_synth = ProtoField.uint32("tm_sband_get_device_conf.RfeEnSynth", "RFE Enable Synthesizer", base.HEX)
|
|
|
-local f_rfe_en3 = ProtoField.uint32("tm_sband_get_device_conf.RfeEn3", "RFE Enable 3", base.HEX)
|
|
|
-local f_rfe_en4 = ProtoField.uint32("tm_sband_get_device_conf.RfeEn4", "RFE Enable 4", base.HEX)
|
|
|
-local f_rfe_en5 = ProtoField.uint32("tm_sband_get_device_conf.RfeEn5", "RFE Enable 5", base.HEX)
|
|
|
-local f_rfe_7v0_en = ProtoField.uint32("tm_sband_get_device_conf.Rfe7V0En", "RFE 7V0 Enable", base.HEX)
|
|
|
-local f_rfe_rsv_uint32 = ProtoField.uint32("tm_sband_get_device_conf.RfeRsvuint32", "Reserved Bits", base.HEX)
|
|
|
+local f_rfe_rx0_on = ProtoField.uint32("tm_sband_get_device_conf.RfeRx0On", "RFE RX0 On", base.DEC)
|
|
|
+local f_rfe_tx0_on = ProtoField.uint32("tm_sband_get_device_conf.RfeTx0On", "RFE TX0 On", base.DEC)
|
|
|
+local f_rfe_pa0_on = ProtoField.uint32("tm_sband_get_device_conf.RfePa0On", "RFE PA0 On", base.DEC)
|
|
|
+local f_rfe_rx_tx0 = ProtoField.uint32("tm_sband_get_device_conf.RfeRxTx0", "RFE RX TX0", base.DEC)
|
|
|
+local f_rfe_rx1_on = ProtoField.uint32("tm_sband_get_device_conf.RfeRx1On", "RFE RX1 On", base.DEC)
|
|
|
+local f_rfe_tx1_on = ProtoField.uint32("tm_sband_get_device_conf.RfeTx1On", "RFE TX1 On", base.DEC)
|
|
|
+local f_rfe_pa1_on = ProtoField.uint32("tm_sband_get_device_conf.RfePa1On", "RFE PA1 On", base.DEC)
|
|
|
+local f_rfe_rx_tx1 = ProtoField.uint32("tm_sband_get_device_conf.RfeRxTx1", "RFE RX TX1", base.DEC)
|
|
|
+local f_rfe_out_en = ProtoField.uint32("tm_sband_get_device_conf.RfeOutEn", "RFE Out Enable", base.DEC)
|
|
|
+local f_rfe_gpio0 = ProtoField.uint32("tm_sband_get_device_conf.RfeGpio0", "RFE GPIO0", base.DEC)
|
|
|
+local f_rfe_loop_det = ProtoField.uint32("tm_sband_get_device_conf.RfeLoopDet", "RFE Loop Detect", base.DEC)
|
|
|
+local f_rfe_lo_mux = ProtoField.uint32("tm_sband_get_device_conf.RfeLoMux", "RFE LO Mux", base.DEC)
|
|
|
+local f_rfe_pow_on = ProtoField.uint32("tm_sband_get_device_conf.RfePowOn", "RFE Power On", base.DEC)
|
|
|
+local f_rfe_da = ProtoField.uint32("tm_sband_get_device_conf.RfeDA", "RFE DA", base.DEC)
|
|
|
+local f_rfe_cl = ProtoField.uint32("tm_sband_get_device_conf.RfeCL", "RFE CL", base.DEC)
|
|
|
+local f_rfe_en_ad5304 = ProtoField.uint32("tm_sband_get_device_conf.RfeEnAD5304", "RFE Enable AD5304", base.DEC)
|
|
|
+local f_rfe_en_synth = ProtoField.uint32("tm_sband_get_device_conf.RfeEnSynth", "RFE Enable Synthesizer", base.DEC)
|
|
|
+local f_rfe_en3 = ProtoField.uint32("tm_sband_get_device_conf.RfeEn3", "RFE Enable 3", base.DEC)
|
|
|
+local f_rfe_en4 = ProtoField.uint32("tm_sband_get_device_conf.RfeEn4", "RFE Enable 4", base.DEC)
|
|
|
+local f_rfe_en5 = ProtoField.uint32("tm_sband_get_device_conf.RfeEn5", "RFE Enable 5", base.DEC)
|
|
|
+local f_rfe_7v0_en = ProtoField.uint32("tm_sband_get_device_conf.Rfe7V0En", "RFE 7V0 Enable", base.DEC)
|
|
|
+local f_rfe_rsv_uint32 = ProtoField.uint32("tm_sband_get_device_conf.RfeRsvuint32", "Reserved Bits", base.DEC)
|
|
|
|
|
|
local f_rxmix_ch0 = ProtoField.int32("tm_sband_get_device_conf.rxmix_ch0", "receive DownConversionFrequency channel 0", base.DEC)
|
|
|
local f_rxmix_ch1 = ProtoField.int32("tm_sband_get_device_conf.rxmix_ch1", "receive DownConversionFrequency channel 1", base.DEC)
|
|
@@ -140,64 +140,64 @@ tm_sband_get_device_conf.fields = {
|
|
|
subtree:add(f_rfe_tx0_on, value)
|
|
|
|
|
|
value = (data >> 2) & 1
|
|
|
- subtree:add(f_rfe_pa0_on, data)
|
|
|
+ subtree:add(f_rfe_pa0_on, value)
|
|
|
|
|
|
value = (data >> 3) & 1
|
|
|
- subtree:add(f_rfe_rx_tx0, data)
|
|
|
+ subtree:add(f_rfe_rx_tx0, value)
|
|
|
|
|
|
value = (data >> 4) & 1
|
|
|
- subtree:add(f_rfe_rx1_on, data)
|
|
|
+ subtree:add(f_rfe_rx1_on, value)
|
|
|
|
|
|
value = (data >> 5) & 1
|
|
|
- subtree:add(f_rfe_tx1_on, data)
|
|
|
+ subtree:add(f_rfe_tx1_on, value)
|
|
|
|
|
|
value = (data >> 6) & 1
|
|
|
- subtree:add(f_rfe_pa1_on, data)
|
|
|
+ subtree:add(f_rfe_pa1_on, value)
|
|
|
|
|
|
value = (data >> 7) & 1
|
|
|
- subtree:add(f_rfe_rx_tx1, data)
|
|
|
+ subtree:add(f_rfe_rx_tx1, value)
|
|
|
|
|
|
value = (data >> 8) & 1
|
|
|
- subtree:add(f_rfe_out_en, data)
|
|
|
+ subtree:add(f_rfe_out_en, value)
|
|
|
|
|
|
value = (data >> 9) & 1
|
|
|
- subtree:add(f_rfe_gpio0, data)
|
|
|
+ subtree:add(f_rfe_gpio0, value)
|
|
|
|
|
|
value = (data >> 10) & 1
|
|
|
- subtree:add(f_rfe_loop_det, data)
|
|
|
+ subtree:add(f_rfe_loop_det, value)
|
|
|
|
|
|
value = (data >> 11) & 1
|
|
|
- subtree:add(f_rfe_lo_mux, data)
|
|
|
+ subtree:add(f_rfe_lo_mux, value)
|
|
|
|
|
|
value = (data >> 12) & 1
|
|
|
- subtree:add(f_rfe_pow_on, data)
|
|
|
+ subtree:add(f_rfe_pow_on, value)
|
|
|
|
|
|
value = (data >> 13) & 1
|
|
|
- subtree:add(f_rfe_da, data)
|
|
|
+ subtree:add(f_rfe_da, value)
|
|
|
|
|
|
value = (data >> 14) & 1
|
|
|
- subtree:add(f_rfe_cl, data)
|
|
|
+ subtree:add(f_rfe_cl, value)
|
|
|
|
|
|
value = (data >> 15) & 1
|
|
|
- subtree:add(f_rfe_en_ad5304, data)
|
|
|
+ subtree:add(f_rfe_en_ad5304, value)
|
|
|
|
|
|
value = (data >> 16) & 1
|
|
|
- subtree:add(f_rfe_en_synth, data)
|
|
|
+ subtree:add(f_rfe_en_synth, value)
|
|
|
|
|
|
value = (data >> 17) & 1
|
|
|
- subtree:add(f_rfe_en3, data)
|
|
|
+ subtree:add(f_rfe_en3, value)
|
|
|
|
|
|
value = (data >> 18) & 1
|
|
|
- subtree:add(f_rfe_en4, data)
|
|
|
+ subtree:add(f_rfe_en4, value)
|
|
|
|
|
|
value = (data >> 19) & 1
|
|
|
- subtree:add(f_rfe_en5, data)
|
|
|
+ subtree:add(f_rfe_en5, value)
|
|
|
|
|
|
value = (data >> 20) & 1
|
|
|
- subtree:add(f_rfe_7v0_en, data)
|
|
|
+ subtree:add(f_rfe_7v0_en, value)
|
|
|
|
|
|
value = (data >> 21) & 0xfff3
|
|
|
- subtree:add(f_rfe_rsv_uint32, data)
|
|
|
+ subtree:add(f_rfe_rsv_uint32, value)
|
|
|
|
|
|
|
|
|
offset = offset + 4
|