Accessing a var as a byte or bits in C
In Hitech C, is it possible to access the same variable as two
different types in C, specifically bits and bytes ?
For example I want some bit variables for various option flags, but
want to access them all as a single byte when saving/loading them to
Can unions be used to do this ?
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
See also: www.piclist.com/techref/microchip/languages.htm?key=c
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the