9 Oct
2017
9 Oct
'17
5:08 p.m.
On 09/10/17 09:53, HONDA S-2000 wrote:
What are the specific advantages of having boolean "objects" as opposed to standard C bit fields? The compiler can certainly emit more efficient code for bit fields.
Individual dirty tracking and being able to access all the metrics through the same interface. a special case. In principal this could be done while storing the values in a set of bit fields, though I don' t know the best way to do so in C++. The OVMS v2's bitfield accessors were nice and presented basically the same interface as the other types, but none of those did dirty tracking.