Hi,
I am trying to place the members of a struct sequentially into an array so that I can send one byte at a time down a serial line, but I can see no way of pulling each individual member out to fill the array.
It has been suggested that I use a union type, but I don't know anything about this as I have never come across it before, and the web was not too helpful on this occasion.Code:int array[10]; int i; struct fillArray { member1 member2 member3 } arrayFill; for(i=0;i<=10;i++) { //how do I get the data from the struct to fill this loop? array[i] }
Thanks
Dave



LinkBack URL
About LinkBacks


