Hi,
I'm not very used to the C syntax, so I'm having this probably rather easy to solve problem for someone with experience.
I have a struct that is of the form
As far as I know the :2 means that I have a myVar that has actually a width of two unit32_t. Is that correct?Code:typedef struct MyStruct{ uint32_t myVar:2; } MyStruct;
Question is, how how can I assign values to one of the 2 single instances of uint32_t?