<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>that looks like signed byte, i.e., -127 to +127 range, stored in "two's complement" binary form</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">I think the corresponding bitwise type is "i8"</div><div style="background-color: transparent;">i8 foo; /* Signed 8-bit value */</div><div><br></div><div><br></div> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', 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> Jim Unroe <rock.unroe@gmail.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> Monday, December 23, 2013 6:19 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [chirp_devel] Request help with RIT programming<br> </font> </div> <div class="y_msg_container"><br><div id="yiv4768935480"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>I am working with a radio that has a RIT setting. It goes from -7 to +7 and are stored in single byte. The way they are stored, I've not seen before. Here's what they look like.<br>
<br></div>F9 = -7<br></div>FA = -6<br></div>FB = -5<br></div>FC = -4<br></div>FD = -3<br></div>FE = -2<br></div>FF = -1<br>00 = 0<br>01 = +1<br>02 = +2<br>03 = +3<br>04 = +4<br>05 = +5<br>06 = +6<br>07 = +7<br><br><br></div>
I'm sure this is probably simple for some of you Python gurus, but I'm not seeing an easy solution.<br><br></div>What would be a good way to implement this into my CHIRP driver.<br><br></div>Thanks,<br>Jim KC9HI<br>
</div>
</div><br>_______________________________________________<br>chirp_devel mailing list<br><a ymailto="mailto:chirp_devel@intrepid.danplanet.com" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br><a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br><br></div> </div> </div> </div></body></html>