Hi All

I'm trying to get uint32_t data into a 4 * uint8_t struct, I dont want to pass in byte by byte so i am trying to achieve soemthing like the following:


Code:
uint32_t test = 0xFFFFFFFF;

typedef struct word32To4xByte
{
uint8_t byte1;
uint8_t byte2;
uint8_t byte3;
uint8_t byte4;
}wordtobyte;

struct word32To4xByte expectedResp;

ecpectedResp= (wordtobyte) test;