⚲
Project
General
Profile
Sign in
Register
Home
Projects
Search
:
CHIRP
All Projects
CHIRP
Home
Download
Documentation
Activity
Issues
Repository
Download (1.26 KB)
Bug #12006
» test_uvk5_scanlist.py
Trial module to add ScanList columns -
Sandy Trevor
, 05/28/2025 01:29 PM
#!/usr/bin/env python
# CHIRP Driver Module
# Copyright 2024
# License: GPLv3
# Description: CHIRP Loadable Test Driver with Scan List columns only
from
chirp
import
chirp_common
MEMORY_COUNT
=
200
# Example total channels
class
Radio
(
chirp_common
.
Radio
):
__vendor__
=
"
Test
"
__model__
=
"
UV-K5 ScanList
"
def
get_features
(
self
):
rf
=
chirp_common
.
RadioFeatures
()
rf
.
has_bank
=
False
rf
.
valid_tone_modes
=
[
""
,
"
Tone
"
,
"
TSQL
"
]
rf
.
valid_modes
=
[
"
FM
"
,
"
NFM
"
,
"
AM
"
,
"
NAM
"
,
"
USB
"
]
rf
.
memory_bounds
=
(
0
,
MEMORY_COUNT
-
1
)
rf
.
memory_scanlist
=
2
rf
.
has_settings
=
False
return
rf
def
get_memory
(
self
,
number
):
mem
=
chirp_common
.
Memory
()
mem
.
number
=
number
mem
.
empty
=
False
mem
.
extra
=
{
"
scanlist_i
"
:
False
,
"
scanlist_ii
"
:
False
}
return
mem
def
set_memory
(
self
,
mem
):
# This is a placeholder; no EEPROM access in test driver
pass
def
get_memory_fields
(
self
):
return
[
chirp_common
.
RadioField
(
"
scanlist_i
"
,
"
Scan List I
"
,
chirp_common
.
FIELD_BOOL
),
chirp_common
.
RadioField
(
"
scanlist_ii
"
,
"
Scan List II
"
,
chirp_common
.
FIELD_BOOL
)
]
def
get_radio
():
return
Radio
()
« Previous
1
…
3
4
5
Next »
(5-5/5)
Loading...