Greets - can Unions of custom types be used in a comp? (actual .comp for use with the Comp generator, not a native c file)
I seem to have a handle on structs, and I can declare a union that doesn't get its members used which doesn't throw an error, but any use of it faults: portion from .comp file: option sen sensor_data; <snip> typedef union { bool s0; bool s1; } sensor_data; will not throw an error when Comp'd. However, attempting to access sen.s0 or sen.s1 faults with 'sen' being undeclared. Ideally, the end result is a 12-bit wide word accessible as the low-end of an s32 or via individual bits, thus the sensor_data union would actually be a union of a 12-bit type and an s32 type. I went through a bunch of other comp files to see if I could gloss any examples buy came up with zip. Are there any recommendations on how I may accomplish this? Thanks, Ted. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users