I have the following class:
class MyClass 
{
    public:
        enum myEnum
        {
            a = 0b0,
            b = 0b1,
        };
        union myUnion
        {
            uint32_t all;
            struct myStruct
            {
                uint32_t start     : 0b1;
                uint32_t enumValue : myEnum::a;
            } bits;
        };
    ...
};
I am simply unsure how to use the value of myEnum::a within the struct. I've tried a number of ways of referencing the value to no avail. How would I achieve this?
Here's the error: Error: Name followed by "::" must be a class or namespace name in "MAX1300BEUG/MAX1300.h", Line: 50, Col: 37
Thanks, Adam
 
     
     
    