Hi everyone
I am looking for a way to map an array of 8 bit unsigned ints onto a struct of the same size, but cannot work out how to do it... – can someone lend me a hand
I have previously tried casting the array to the struct type with no luck what so everCode:struct dataStruct { uint8_t value1; uint8_t value2; uint8_t value3; uint8_t value4; }; uint8_t data[4]; int main() { // ???????????????????? return 0; }
Many thanks indeed for any advice you can give!



LinkBack URL
About LinkBacks




