#ifndef INC_APP_SYSSET_H_ //如果未定义INC_APP_SYSSET_H_,则执行以下代码 #define INC_APP_SYSSET_H_ //定义INC_APP_SYSSET_H_,防止重复定义

typedef struct //定义结构体 { float fFrqBase; //浮点数类型的变量fFrqBase uint16_t u16Module; //16位无符号整型变量u16Module uint16_t u16PwrDecreaseEnable; //16位无符号整型变量u16PwrDecreaseEnable

    uint16_t u16Power; //16位无符号整型变量u16Power
    uint16_t u16PowerSet; //16位无符号整型变量u16PowerSet
    uint16_t u16PowerSoft; //16位无符号整型变量u16PowerSoft
    uint16_t u16PowerSoftSet; //16位无符号整型变量u16PowerSoftSet
    uint16_t u16MpptQty; //16位无符号整型变量u16MpptQty

    float     fPFSet; //浮点数类型的变量fPFSet
    float     fIQSET; //浮点数类型的变量fIQSET

    float     fIPeak; //浮点数类型的变量fIPeak

    float fFrqHght1; //浮点数类型的变量fFrqHght1
    float fFrqHghtHys1; //浮点数类型的变量fFrqHghtHys1

    float fFrqHght2; //浮点数类型的变量fFrqHght2
    float fFrqHghtHys2; //浮点数类型的变量fFrqHghtHys2


    float fFrqLow; //浮点数类型的变量fFrqLow
    float fFrqLowHys; //浮点数类型的变量fFrqLowHys

    float i16VltBase; //浮点数类型的变量i16VltBase

    float fActivepower; //浮点数类型的变量fActivepower
    float fApparentpower; //浮点数类型的变量fApparentpower


    float i16Vlt_Ac_High1; //浮点数类型的变量i16Vlt_Ac_High1
    float i16Vlt_Ac_High1Hys; //浮点数类型的变量i16Vlt_Ac_High1Hys
    float i16Vlt_Ac_High2; //浮点数类型的变量i16Vlt_Ac_High2
    float i16Vlt_Ac_High2Hys; //浮点数类型的变量i16Vlt_Ac_High2Hys
    float i16Vlt_Ac_High3; //浮点数类型的变量i16Vlt_Ac_High3
    float i16Vlt_Ac_High3Hys; //浮点数类型的变量i16Vlt_Ac_High3Hys


    float i16Vlt_Ac_Low1; //浮点数类型的变量i16Vlt_Ac_Low1
    float i16Vlt_Ac_Low1Hys; //浮点数类型的变量i16Vlt_Ac_Low1Hys
    float i16Vlt_Ac_Low2; //浮点数类型的变量i16Vlt_Ac_Low2
    float i16Vlt_Ac_Low2Hys; //浮点数类型的变量i16Vlt_Ac_Low2Hys

    float i16Vlt_Ac_Low3; //浮点数类型的变量i16Vlt_Ac_Low3
    float i16Vlt_Ac_Low3Hys; //浮点数类型的变量i16Vlt_Ac_Low3Hys




    float i16Vlt_Pv1_High; //浮点数类型的变量i16Vlt_Pv1_High
    float i16Vlt_Pv1_HighHys; //浮点数类型的变量i16Vlt_Pv1_HighHys

    float i16Vlt_Pv1_Low; //浮点数类型的变量i16Vlt_Pv1_Low

    float i16Vlt_Pv1_LowHys; //浮点数类型的变量i16Vlt_Pv1_LowHys

    float i16Vlt_Pv2_High; //浮点数类型的变量i16Vlt_Pv2_High
    float i16Vlt_Pv2_HighHys; //浮点数类型的变量i16Vlt_Pv2_HighHys

    float i16Vlt_Pv2_Low; //浮点数类型的变量i16Vlt_Pv2_Low
    float i16Vlt_Pv2_LowHys; //浮点数类型的变量i16Vlt_Pv2_LowHys

    float i16Vlt_Pv3_High; //浮点数类型的变量i16Vlt_Pv3_High
    float i16Vlt_Pv3_HighHys; //浮点数类型的变量i16Vlt_Pv3_HighHys

    float i16Vlt_Pv3_Low; //浮点数类型的变量i16Vlt_Pv3_Low
    float i16Vlt_Pv3_LowHys; //浮点数类型的变量i16Vlt_Pv3_LowHys


    float i16Vlt_Pv4_High; //浮点数类型的变量i16Vlt_Pv4_High
    float i16Vlt_Pv4_HighHys; //浮点数类型的变量i16Vlt_Pv4_HighHys

    float i16Vlt_Pv4_Low; //浮点数类型的变量i16Vlt_Pv4_Low
    float i16Vlt_Pv4_LowHys; //浮点数类型的变量i16Vlt_Pv4_LowHys

    float fBus_Vlt_High; //浮点数类型的变量fBus_Vlt_High
    float fBus_Vlt_HighHys; //浮点数类型的变量fBus_Vlt_HighHys

    float fBus_Vlt_Low; //浮点数类型的变量fBus_Vlt_Low
    float fBus_Vlt_LowHys; //浮点数类型的变量fBus_Vlt_LowHys

    float fAcCurGain; //浮点数类型的变量fAcCurGain
    float fAcVGridGain; //浮点数类型的变量fAcVGridGain
    float fAcVOutGain; //浮点数类型的变量fAcVOutGain
    float fBusVltGain; //浮点数类型的变量fBusVltGain

    float f110OverLoad; //浮点数类型的变量f110OverLoad
    float f130OverLoad; //浮点数类型的变量f130OverLoad
    float f150OverLoad; //浮点数类型的变量f150OverLoad

    uint16_t u16Isr1Cnt; //16位无符号整型变量u16Isr1Cnt
    uint16_t u16Isr2Cnt; //16位无符号整型变量u16Isr2Cnt

    uint16_t CurOverCnt; //16位无符号整型变量CurOverCnt
    uint16_t CurOverCnt0; //16位无符号整型变量CurOverCnt0

    uint16_t  u16PowerChange; //16位无符号整型变量u16PowerChange

} SYS_INFO; //定义结构体SYS_INFO

extern SYS_INFO tSys; //SYS_INFO类型的变量tSys

extern void App_PrmtrSet(void); //声明函数App_PrmtrSet extern void App_GainSet(void); //声明函数App_GainSet extern void App_PrmtrSetInit(void); //声明函数App_PrmtrSetInit

#endif /* INC_APP_SYSSET_H_ */ //结束条件编译指令,判断INC_APP_SYSSET_H_是否定义,如果定义则跳过整个文件,否则编译整个文件。

#ifndef INC_APP_SYSSET_H_#define INC_APP_SYSSET_H_typedef struct float fFrqBase; uint16_t u16Module; uint16_t u16PwrDecreaseEnable; uint16_t u16Power; uint16_t u16Po

原文地址: https://www.cveoy.top/t/topic/bFk8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录