that looks like signed byte, i.e., -127 to +127 range, stored in "two's complement" binary form
I think the corresponding bitwise type is "i8"
i8   foo;     /* Signed 8-bit value                      */



From: Jim Unroe <rock.unroe@gmail.com>
To: chirp_devel@intrepid.danplanet.com
Sent: Monday, December 23, 2013 6:19 PM
Subject: [chirp_devel] Request help with RIT programming

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.

F9 = -7
FA = -6
FB = -5
FC = -4
FD = -3
FE = -2
FF = -1
00 = 0
01 = +1
02 = +2
03 = +3
04 = +4
05 = +5
06 = +6
07 = +7


I'm sure this is probably simple for some of you Python gurus, but I'm not seeing an easy solution.

What would be a good way to implement this into my CHIRP driver.

Thanks,
Jim KC9HI

_______________________________________________
chirp_devel mailing list
chirp_devel@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers