I try to set the data Array form the following struct
in main:
and become an Syntaxerror on line Syntaxfehler sValue.data = { 0x.......
Code:
typedef enum{ DIES,DAS }MessageType;
typedef struct{MessageType type;
unsigned long data[32];
}TriggerData;
in main:
Code:
int main(int argc, char* argv[]){
TriggerData sValue;
sValue.data = { 0x00000013,0x00000033,0x00000023,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000 };
sValue.type = DIS;
and become an Syntaxerror on line Syntaxfehler sValue.data = { 0x.......