Hi Andreas, Zitat von Andreas Wagner <andreas.wag...@lowfatcomputing.org>:
> Hello all, > > I am writing an amforth library for the nRF24L01 family of radios. Right > now I am factoring out some lshifts used for reading and writing to > registers. > > I thought it would be great to have bitfields for structures of registers > considering how common the use case is. Something like this: > ftp://ftp.taygeta.com/pub/forth/Archive/various/bitfield.txt > > So what do you people think of adding bitfields to structures.frt ? Have a look at ewlib/flags.fs or similar. It might serve as a starting point. I have not made any attempt to make it standard compliant. Cheers, Erich ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel