[chirp_devel] Parameterized memory maps
Brian Dickman
Wed Aug 31 22:01:47 PDT 2016
What's the current attitude towards parameterized memory maps, to
support different models with varying locations/names of values?
I'm working on adding Leixen VV-898S support. They decided to take
what used to be 1 bit for Power and 1 bit for Mode and instead use
both bits for Power, and move Mode to a previously unused bit. I could
work around this by parameterizing the map, so it would look sorta
like this:
u8 %s:1,
foo1:1,
foo2:1,
foo3:1,
foo4:1,
foo5:1,
%s;
The first radio would format it as:
MEM_FORMAT % ( 'unknown' , 'mode:1,power:1' )
while the second would format it as:
MEM_FORMAT % ( 'mode' , 'power:2' )
Any fundamental objections to this approach? Should I just suck it up
and combine the bits at read time on the second radio instead of
parameterizing?
--
Brian
More information about the chirp_devel
mailing list