now i am stack on the next structure
struct{
unsigned long c:1; /* Set to 1 if Card is ready to operate after initialization */
unsigned long nf:3; /* Number of I/O Functions */
unsigned long mp:1; /* Memory Present */
unsigned long dummy:3; /* Stuff Bits:2bit, S18A:1bit */
unsigned long ocr:24; /* I/O OCR */
}bit;
I meet the declaration with ":" symbol for the first time, I haven't seen it before, what is it? and another question is,
I have a number
uint32_t response;
How to divide this number among the elements of the structure? I mean to put first 1 byte to variable c, next 3 to nf, and so on, I will appreciate any hints. Thanks