错误:我的结构中预期的标识符或“ =”令牌之前的“(”

时间:2019-06-18 01:06:36

标签: c

我正在尝试使用这种结构,但它一直在说我需要一个(在=。error: expected identifier or ‘(’ before ‘=’ token之前是实际错误

我尝试将这些括号放在其他许多地方,但坦率地说,我不知道出了什么问题。

typedef struct {
    __u16 Output_Engine_Speed;
    __u16 Output_Throttle_Position;
    __u16 Output_Inlet_Manifold_Pressure;
    __u16 Output_Inlet_Air_Temperature;
    __u16 Output_Coolant_Temperature;
    __u16 Output_Ambient_Pressure;
    __u16 Output_Fuel_Mixture_Aim;
    __u16 Output_Injector_Time;
    __u16 Output_Digital1;
    __u16 Output_ECU_Battery_Voltage;
    __u16 Output_ECU_Temperature;
    __u16 Output_Fuel_Cut_State;
    __u16 Output_Ignition_Cut_State;
    __u16 Output_Ignition_Advance;
    __u16 Output_Engine_Load;
    __u16 Output_Engine_Efficiency;
    __u16 Output_Fuel_Tank_Level;
    __u16 Output_FAPW;
    __u16 Output_FEPW;
    __u16 Output_Fuel_Injector_Primary_Duty_Cycle;
    __u16 Output_Engine_Sync_Position;
    __u16 Output_Baro_Compensation;
    __u16 Output_Mixture_Compensation;
} M1_Output_Data_Struct;

M1_Output_Data_Struct Output_Data;


struct Output_Data = {ie2PriMsg.Engine_Speed, ie2PriMsg.Throttle_Position, ie2PriMsg.Inlet_Air_Temperature, ie2PriMsg.Inlet_Air_Temperature,
ie2PriMsg.Coolant_Temperature, ie2PriMsg.Ambient_Pressure, ie2PriMsg.Fuel_Mixture_Aim, ie2PriMsg.Injector_Time, ie2PriMsg.Digital1, ie2PriMsg.ECU_Battery_Voltage,
ie2PriMsg.ECTU_Temperature, ie2PriMsg.Fuel_Cut_State, ie2PriMsg.Ignition_Cut_State, ie2PriMsg.Ignition_Advance, ie2PriMsg.Engine_Load, ie2PriMsg.Engine_Efficiency,
ie2PriMsg.Fuel_Tank_Level, ie2PriMsg.FAPW, ie2PriMsg.FEPW, ie2PriMsg.Fuel_Injector_Primary_Duty_Cycle, ie2PriMsg.Engine_Sync_Position, ie2PriMsg.Baro_Compensation,
ie2PriMsg.Mixture_Compensation};

很抱歉,冗长且无组织的代码,但我停滞不前。

编辑:此错误发生在struct Output_Data

0 个答案:

没有答案