I am trying to work out what is happening in a program that has no documentation whatsoever. Here's part of the code:
typedef struct
{
UInt8 Access;
UInt8 PDOMapping;
UInt8 Size;
void* Data;
CheckValue Check;
AccessEvent ReadEvent;
AccessEvent WriteEvent;
}ObjectValue;
typedef struct
{
UInt16 Index;
UInt8 Code;
ObjectValue* Value;
}Object;
const UInt8 MaxSubIndex6400 = 1;
ObjectValue Object6400Value[] =
{
{ACCESS_RO, MAP_NONE, 1, (void*)&MaxSubIndex6400, null, null},
{ACCESS_RO, MAP_NONE, sizeof(Index6400Buffer), (void*)&Index6400Buffer, null, null, null},
};
The array of Object6400Value contains two items, but they have a different number of entries. Is this legal?