I am trying to create the structure below in C# so I can communicate with my Lumenera CCD. The code below is taken from the c++ header file. The main problem is the anonymous union and nested struct part. Any help you be greatly appreciated. An equivalent example would be awesome.
typedef struct {
FLOAT exposure;
FLOAT gain;
union {
struct {
FLOAT gainRed;
FLOAT gainBlue;
FLOAT gainGrn1;
FLOAT gainGrn2;
};
struct {
FLOAT gainMag;
FLOAT gainCyan;
FLOAT gainYel1;
FLOAT gainYel2;
};
};
union
{
BOOL useStrobe;
ULONG strobeFlags;
};
} LUCAM_SNAPSHOT;
I think it might be something like the above. I have not tried it out, but at least you have a starting point.