Recently I stumbled upon a code written like this:
typedef struct
{
uint8_t TC0_WG0 :2;
uint8_t TC0_CS :3;
} Timer0;
What I wanted to know is what does the part that says :2;
& :3;
specifically mean? Is it accessing the bits 0, 1, 2 only or 0, 1, 2 & 3 only of the 8-bit unsigned character or what ?