<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:10pt"><div>Yeah thats where I was going with in regards to the way uv5r is setup.</div><div>In order to make it more generalized, and handle lots of slightly different edge cases, we could split the memory map up into a few sections.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">I'll have to look at it some more, and also what you are talking about type-wise…</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br></div><div><br></div> <div style="font-family: 'lucida console', sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;">
<div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Dan Smith <dsmith@danplanet.com><br> <b><span style="font-weight: bold;">To:</span></b> chirp_devel@intrepid.danplanet.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 5, 2014 7:45 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [chirp_devel] Baofeng UV-6 Radio<br> </font> </div> <div class="y_msg_container"><br>> Dan,<br clear="none">> this reminds me - is there a way to "incrementally" load the bitwise<br clear="none">> structures into the memory map. The thought here was we could have a<br clear="none">> "common" channel map, and then might have custom settings, or event<br clear="none">> sections of settings depending upon model, and load the ones needed into<br clear="none">> the radio class.<br clear="none">> (This could be thought of as a piecemeal approach
to populating the<br clear="none">> memory map?)<br clear="none"><br clear="none">They're just strings, so you can format them, concatenate pieces<br clear="none">together, than then pass the result to bitwise to do the magic. There is<br clear="none">at least one other case where I format in the address of a starting<br clear="none">block depending on which model I'm using. I think that is actually no<br clear="none">longer necessary in that case, now that structs can be defined as types<br clear="none">and applied in multiple places (a relatively recent bitwise feature).<br clear="none">However, for your case where you want to piece things together, I think<br clear="none">it should be pretty easy to do, right?<div class="yqt9730905007" id="yqtfd04178"><br clear="none"><br clear="none">--Dan<br clear="none"></div><br><div class="yqt9730905007" id="yqtfd56976">_______________________________________________<br clear="none">chirp_devel mailing
list<br clear="none"><a shape="rect" ymailto="mailto:chirp_devel@intrepid.danplanet.com" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br clear="none"><a shape="rect" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br clear="none">Developer docs: <a shape="rect" href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a></div><br><br></div> </div> </div> </div></body></html>