let's say I have a struct:
typedef struct
{
uint8 value_A
uint32 value_B
uint32 value_C
uint8 value_D
3ByteType value_E
} myStructure_t
/*Struct has 13 bytes*/
myStructure_t myStruct;
The struct is filled with values at a certain point....
I want to have an array with 13 byte - Values which represents the values from the struct
uint8 array_8ByteElements[13] = {0};
for (uint8 idx = 0; idx <= 12; idx++)
{
array_8ByteElements[idx] = ??
}
where array_8ByteElements[0] = myStruct.value_A
What is the fastest way to achieve this?