structure help
Feb 4, 2016 at 4:28pm
Hello all
Could anyone tell me what the ": 1" is doing in this instance? I haven't managed to find it anywhere on here so far.
Thanks
1 2 3
|
struct structurename {
uint32_t variable : 1;
} PACKED;
|
Feb 4, 2016 at 4:34pm
ignore this.
I have found something.
my understanding if I have multiple uint32_t variable with : 1, they are represented as a bool and packed into a uint32_t
Topic archived. No new replies allowed.