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.

ctrl_obj.h 內部變數宣告問題請教!有勞解惑



各位前輩們 您好,

最近在熟悉InstaSPIN FOC Lab2a的文件,過程中有些疑問想請教,如下:

1. version ----> 這個變數我搜尋Lab2的文件,但沒有找到這個變數的細節說明.

                      這個變數是否是ROM裡面底層的宣告,所以我才搜尋不到?

2."CTRL_Version   version;" ----> 想請教 CTRL_Version(空格)version

                                                這樣子的寫法是什麼意思?是否有相關關鍵字供學習搜尋(小弟的C語言還著墨不深還在學習中)

有勞各位前輩們指點迷津,萬分感謝!

From Lab2a ctrl_obj.h

typedef struct _CTRL_Version_
{
uint16_t rsvd;          //!< reserved value
uint16_t targetProc; //!< the target processor
uint16_t major;        //!< the major release number
uint16_t minor;        //!< the minor release number
} CTRL_Version;

typedef struct _CTRL_Obj_
{
CTRL_Version   version; //!< the controller version

CTRL_State_e   state;   //!< the current state of the controller

....

} CTRL_Obj;