I would have liked to do this:
but i receive compiler errorsCode:typedef enum { Exp = 0x14110, Gain = 0x14150, } Type_Device1_RegisterAddress; typedef enum { Exp = 0x00110, Gain = 0x00150, } Type_Device2_RegisterAddress;
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;



LinkBack URL
About LinkBacks


