mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
[RB19] Add Retevis RB19 FRS Radio
This patch adds support for the Retevis RB19. #9794
This commit is contained in:
parent
e0ef71da5c
commit
02b6297d7b
@ -48,7 +48,7 @@ struct {
|
||||
struct {
|
||||
u8 unknown1:1,
|
||||
scanmode:1,
|
||||
unknown2:1,
|
||||
vox:1, // Retevis RB19 VOX
|
||||
speccode:1,
|
||||
voiceprompt:2,
|
||||
batterysaver:1,
|
||||
@ -56,6 +56,7 @@ struct {
|
||||
u8 squelchlevel;
|
||||
u8 sidekey2; // Retevis RT22S setting
|
||||
// Retevis RB85 sidekey 1 short
|
||||
// Retevis RB19 sidekey 2 long
|
||||
u8 timeouttimer;
|
||||
u8 voxlevel;
|
||||
u8 sidekey2S;
|
||||
@ -143,7 +144,8 @@ SCANMODE_LIST = ["Carrier", "Time"]
|
||||
VOXLEVEL_LIST = ["Off", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
||||
VOXDELAY_LIST = ["0.5 seconds", "1.0 seconds", "1.5 seconds",
|
||||
"2.0 seconds", "2.5 seconds", "3.0 seconds"]
|
||||
SIDEKEY2_LIST = ["Off", "Scan", "Emergency Alarm", "Display Battery"]
|
||||
SIDEKEY19_LIST = ["Off", "Scan", "Emergency Alarm"]
|
||||
SIDEKEY2_LIST = SIDEKEY19_LIST + ["Display Battery"]
|
||||
|
||||
SIDEKEY85SHORT_LIST = ["Off",
|
||||
"Noise Cansellation On",
|
||||
@ -180,6 +182,7 @@ SETTING_LISTS = {
|
||||
"voxlevel": VOXLEVEL_LIST,
|
||||
"voxdelay": VOXDELAY_LIST,
|
||||
"sidekey2": SIDEKEY2_LIST,
|
||||
"sidekey2": SIDEKEY19_LIST,
|
||||
"sidekey2": SIDEKEY85SHORT_LIST,
|
||||
"sidekey1L": SIDEKEY85LONG_LIST,
|
||||
"sidekey2S": SIDEKEY85SHORT_LIST,
|
||||
@ -767,6 +770,11 @@ class T18Radio(chirp_common.CloneModeRadio):
|
||||
RadioSettingValueBoolean(_settings.beep))
|
||||
basic.append(rs)
|
||||
|
||||
if self.MODEL == "RB19":
|
||||
rs = RadioSetting("vox", "VOX",
|
||||
RadioSettingValueBoolean(_settings.vox))
|
||||
basic.append(rs)
|
||||
|
||||
if self.MODEL != "RB18" and self.MODEL != "RB618" \
|
||||
and self.MODEL != "FRS-B1":
|
||||
rs = RadioSetting("voxlevel", "Vox level",
|
||||
@ -910,6 +918,13 @@ class T18Radio(chirp_common.CloneModeRadio):
|
||||
1, 5, _settings2.voxgain))
|
||||
basic.append(rs)
|
||||
|
||||
if self.MODEL == "RB19":
|
||||
rs = RadioSetting("sidekey2", "Left Navigation Button(Long)",
|
||||
RadioSettingValueList(
|
||||
SIDEKEY19_LIST,
|
||||
SIDEKEY19_LIST[_settings.sidekey2]))
|
||||
basic.append(rs)
|
||||
|
||||
return top
|
||||
|
||||
def set_settings(self, settings):
|
||||
@ -1155,3 +1170,21 @@ class FRSB1Radio(T18Radio):
|
||||
_mem_params = (_upper # number of channels
|
||||
)
|
||||
_frs = True
|
||||
|
||||
|
||||
@directory.register
|
||||
class RB19Radio(T18Radio):
|
||||
"""Retevis RB19"""
|
||||
VENDOR = "Retevis"
|
||||
MODEL = "RB19"
|
||||
ACK_BLOCK = False
|
||||
|
||||
POWER_LEVELS = [chirp_common.PowerLevel("Low", watts=0.50),
|
||||
chirp_common.PowerLevel("High", watts=2.00)]
|
||||
|
||||
_magic = "9COGRAM"
|
||||
_fingerprint = "SMP558" + "\x02"
|
||||
_upper = 22
|
||||
_mem_params = (_upper # number of channels
|
||||
)
|
||||
_frs = True
|
||||
|
BIN
tests/images/Retevis_RB19.img
Normal file
BIN
tests/images/Retevis_RB19.img
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user