View Single Post
  #3   Spotlight this post!  
Unread 21-06-2009, 23:59
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: PPC bool bitfield

Since you're specifying the type "bool", I believe the first four make up one bool variable, and the next 4 make up a second bool variable. If you made it a 10-bit bitfield, you'd end up with bool variables and 2 unused bits. At least, that's my understanding. From what I've read on bitfields, that code should be fine. The variable type declarations are really more just the computer's version of bureaucracy, it tells it how to write the memory addresses.
Reply With Quote