At 00:00 27-03-05 +0100, you wrote: >Hello, > >I develop a small function block based application. Each function block >input and output is associated with a bit in a bitfield. Function >blocks can be simple logic, timers, ... By "wiring" these function >blocks I get a kind of very simple PLC.
AFAIK you can declare bit variables in C which have to be implemented as single bits by the compiler so what you have made is already implemented in C. If you put these bits into a struct with 8 bits, you can cast this struct into an unsigned char if you want. Nico Coesel
