This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C28X solar library 的用法问题

Other Parts Discussed in Thread: CONTROLSUITE

SPLL_1ph_SOGI用法中第二步:

在controlsuite中没有名叫“SPLL_1ph_SOGI_IQ spll1”的模块结构体啊,请问怎么处理,谢谢。

  • 结构体SPLL_1ph_SOGI_IQ是用typedef类型定义的,这样的定义可以允许在使用时像Step 2所说的在所用的文件中用一句SPLL_1ph_SOGI_IQ spll1,然后在文件中使用结构体变量时就可以直接使用spll1.number1,spll1.number2这样的方式

  • 而Step1中 Solar_IQ.h中包含了结构体SPLL_1ph_SOGI_IQ定义所在的头文件:#include "SPLL_1ph_SOGI_IQ.h"

  • 你的意思是不是在main.c中一开始写一句:#include "SPLL_1ph_SOGI_IQ.h",然后在主程序中写一句:

    这样子就可以用了?

  • Step1的#include Solar_IQ.h已经完成了这一步,你打开头文件Solar_IQ.h,其中就有这一句#include "SPLL_1ph_SOGI_IQ.h",不需要再包含了

    关键是主程序中的那一句作用是什么你要明白,你按文档来,文档上每一步怎么做写得很清楚了