I would have liked to do this:
Code:
typedef enum {
Exp = 0x14110,
Gain = 0x14150,
} Type_Device1_RegisterAddress;
typedef enum {
Exp = 0x00110,
Gain = 0x00150,
} Type_Device2_RegisterAddress;
but i receive compiler errors
how would you suggest to dio something similar?
i don't like much the following (cause it's something close to using defines):
Code:
typedef enum {
Device1_Exp = 0x14110,
Device1_Gain = 0x14150,
} Type_Device1_RegisterAddress;
typedef enum {
Device2_Exp = 0x00110,
Device2_Gain = 0x00150,
} Type_Device2_RegisterAddress;