I am reading an old hardware code, i find a weird definition of struct:
struct DAA_BITS {
unsigned long DAAON : 1;
unsigned long DAARDY : 1;
unsigned long : 1;
unsigned long DAA_TRIM : 5;
};
I have two questions:
1- What is mean the :1 like definition "unsigned long DAAON : 1;"? did its a common use?
2- In the third value of the struct, there is no name of variable, why to use that?, and how can i access this memory?
I know its looks like the code is not real, but the code is running will(i also debug the code).