python file API
Thomas Rachel
nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Tue Sep 25 05:53:08 EDT 2012
Am 25.09.2012 10:13 schrieb Dennis Lee Bieber:
>> Or some bit setting registers, like on ATxmega: OUT = 0x10 sets bit 7
>> and clears all others, OUTSET = 0x10 only sets bit 7, OUTTGL = 0x10
>> toggles it and OUTCLR = 0x10 clears it.
Umpfzg. s/bit 7/bit 4/.
> I don't think I'd want to work with any device where 0x10 (00010000
> binary) modifies bit SEVEN. 0x40, OTOH, would fit my mental impression
> of bit 7.
Of course. My fault.
It can as well be a bit mask, with OUTTGL = 0x11 toggling bit 4 and bit
0. Very handy sometimes.
Thomas
More information about the Python-list
mailing list