Hi again,
I am programing in C language and here is my problem. Lets say that I have a lot of unions like the one declared in the example below:
CODE
typedef union {
struct {
unsigned GS_GS_OF_BS:1;
unsigned GS_AM_BC:1;
unsigned GS_F_BC:1;
unsigned GS_GS_HRR_BC:1;
unsigned GS_GS_M_BC:1;
unsigned GS_GS_OF_BC:1;
unsigned GS_GS_RA_BC:1;
unsigned GS_GS_RAB_BC:1;
}bit; UINT8 all;
}GS_Coils;
From these large amount of unions I want to store the UINT8 all variables in a separate structure.
CODE
GS_Coils *X;
typedef struct { X->all; . . . }All_Coils;
From here on I will use a function to pass all the elements of the structure All_Coils to an array UINT8 buffer[512]. And this array will be send through a network connection.
Thanks and best regards,
BoSCHoW.