[chirp_devel] [PATCH] [UV-B5] Add Remaining Per-channel Settings

Jim Unroe
Sat May 4 09:01:44 PDT 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1367683193 14400
# Node ID 840b17e8619c46cc2b766c872deb9370401e852e
# Parent  ed86c7d025631d37e397016793fad549f3817151
[UV-B5] Add Remaining Per-channel Settings
Enable support for Cross Mode DTCS
Add settings to the right-click Edit menu
- Reverse Duplex
- PTT-ID
- Compander

This should complete the settings for the Memories tab

related to #815

diff -r ed86c7d02563 -r 840b17e8619c chirp/uvb5.py
--- a/chirp/uvb5.py	Sun Apr 21 19:08:06 2013 -0400
+++ b/chirp/uvb5.py	Sat May 04 11:59:53 2013 -0400
@@ -26,15 +26,16 @@
   u8 unknown1:2,
      txpol:1,
      rxpol:1,
-     unknown2:4;
+     compander:1,
+     unknown2:3;
   u8 rxtone;
   u8 txtone;
-  u8 unknown3:1,
+  u8 pttid:1,
      scanadd:1,
      isnarrow:1,
      bcl:1,
      highpower:1,
-     unknown5:1,
+     revfreq:1,
      duplex:2;
   u8 unknown[4];
 };
@@ -162,7 +163,10 @@
     def get_features(self):
         rf = chirp_common.RadioFeatures()
         rf.has_settings = True
+        rf.has_rx_dtcs = True
         rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"]
+        rf.valid_cross_modes = ["Tone->Tone", "Tone->DTCS", "DTCS->Tone",
+                                "->Tone", "->DTCS", "DTCS->", "DTCS->DTCS"]
         rf.valid_duplexes = DUPLEX
         rf.valid_skips = ["", "S"]
         rf.valid_characters = CHARSET
@@ -279,6 +283,18 @@
                           RadioSettingValueBoolean(_mem.bcl))
         mem.extra.append(rs)
 
+        rs = RadioSetting("revfreq", "Reverse Duplex",
+                          RadioSettingValueBoolean(_mem.revfreq))
+        mem.extra.append(rs)
+
+        rs = RadioSetting("pttid", "PTT ID",
+                          RadioSettingValueBoolean(_mem.pttid))
+        mem.extra.append(rs)
+
+        rs = RadioSetting("compander", "Compander",
+                          RadioSettingValueBoolean(_mem.compander))
+        mem.extra.append(rs)
+
         return mem
 
     def set_memory(self, mem):



More information about the chirp_devel mailing list