TI中文支持网
TI专业的中文技术问题搜集分享网站

argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *"

Description Resource Path Location Type
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 379 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 349 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 333 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 331 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 182 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 323 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 325 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 327 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 329 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 314 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 316 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 180 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 319 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 181 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 321 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_ReadData(struct I2CMSG *)" (declared at line 181 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 95 C/C++ Problem
declaration is incompatible with "void WriteData(struct I2CMSG *, Uint16 *, Uint16, Uint16)" (declared at line 182 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 141 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_WriteData(struct I2CMSG *)" (declared at line 180 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 52 C/C++ Problem

结构体struct I2CMSG申请在DSP2833x_I2c_defines.h里,结构体struct I2CMSG  I2cMsgOut1和struct I2CMSG I2cMsgIn1赋初值在Example_2833x_Sci_FFDLB_int.c文件里,

extern struct I2CMSG I2cMsgOut1;和extern struct I2CMSG I2cMsgIn1;在DSP2833x_GlobalPrototypes.h文件里。

帮我看看怎么解决啊,谢谢workspace.rar

zhaogong zhao:而且样例程序里就没问题,把这个样例程序加进我的工程里就这问题

Description Resource Path Location Type
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 379 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 349 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 333 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 331 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 182 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 323 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 325 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 327 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 329 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 314 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 316 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 180 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 319 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 181 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 321 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_ReadData(struct I2CMSG *)" (declared at line 181 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 95 C/C++ Problem
declaration is incompatible with "void WriteData(struct I2CMSG *, Uint16 *, Uint16, Uint16)" (declared at line 182 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 141 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_WriteData(struct I2CMSG *)" (declared at line 180 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 52 C/C++ Problem

结构体struct I2CMSG申请在DSP2833x_I2c_defines.h里,结构体struct I2CMSG  I2cMsgOut1和struct I2CMSG I2cMsgIn1赋初值在Example_2833x_Sci_FFDLB_int.c文件里,

extern struct I2CMSG I2cMsgOut1;和extern struct I2CMSG I2cMsgIn1;在DSP2833x_GlobalPrototypes.h文件里。

帮我看看怎么解决啊,谢谢workspace.rar

Seven Han:您的压缩包下载后解压有好多工程,请问出现该问题的具体是哪个工程?

Description Resource Path Location Type
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 379 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 349 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 333 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 331 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 182 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 323 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 325 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 327 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 329 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 314 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 316 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 180 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 319 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 181 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 321 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_ReadData(struct I2CMSG *)" (declared at line 181 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 95 C/C++ Problem
declaration is incompatible with "void WriteData(struct I2CMSG *, Uint16 *, Uint16, Uint16)" (declared at line 182 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 141 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_WriteData(struct I2CMSG *)" (declared at line 180 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 52 C/C++ Problem

结构体struct I2CMSG申请在DSP2833x_I2c_defines.h里,结构体struct I2CMSG  I2cMsgOut1和struct I2CMSG I2cMsgIn1赋初值在Example_2833x_Sci_FFDLB_int.c文件里,

extern struct I2CMSG I2cMsgOut1;和extern struct I2CMSG I2cMsgIn1;在DSP2833x_GlobalPrototypes.h文件里。

帮我看看怎么解决啊,谢谢workspace.rar

zhaogong zhao:

回复 Seven Han:

Example_2833x_Sci_FFDLB_int这个里面

Description Resource Path Location Type
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 379 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 349 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 333 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 331 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 182 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 323 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 325 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 327 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 329 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 314 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 316 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 180 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 319 C/C++ Problem
declaration is not visible outside of function DSP2833x_GlobalPrototypes.h /Example_2833x_Sci_FFDLB_int/include line 181 C/C++ Problem
argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *" Example_2833x_Sci_FFDLB_int.c /Example_2833x_Sci_FFDLB_int line 321 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_ReadData(struct I2CMSG *)" (declared at line 181 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 95 C/C++ Problem
declaration is incompatible with "void WriteData(struct I2CMSG *, Uint16 *, Uint16, Uint16)" (declared at line 182 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 141 C/C++ Problem
declaration is incompatible with "Uint16 I2CA_WriteData(struct I2CMSG *)" (declared at line 180 of "D:\workspace\SXD28335B_STU_examples\Example_2833x_Sci_FFDLB_int\include\DSP2833x_GlobalPrototypes.h") DSP2833x_I2C.c /Example_2833x_Sci_FFDLB_int line 52 C/C++ Problem

结构体struct I2CMSG申请在DSP2833x_I2c_defines.h里,结构体struct I2CMSG  I2cMsgOut1和struct I2CMSG I2cMsgIn1赋初值在Example_2833x_Sci_FFDLB_int.c文件里,

extern struct I2CMSG I2cMsgOut1;和extern struct I2CMSG I2cMsgIn1;在DSP2833x_GlobalPrototypes.h文件里。

帮我看看怎么解决啊,谢谢workspace.rar

Seven Han:

回复 zhaogong zhao:

工程中函数定义的有问题,您将DSP2833x_GlobalPrototypes.h文件夹下的三个函数屏蔽掉,
//extern Uint16 I2CA_WriteData(struct I2CMSG *msg);
//extern Uint16 I2CA_ReadData(struct I2CMSG *msg);
//extern void WriteData(struct I2CMSG *msg,Uint16 *MsgBuffer,Uint16 MemoryAdd,Uint16 NumOfBytes);
在Example_2833x_Sci_FFDLB_int 添加
Uint16 I2CA_WriteData(struct I2CMSG *msg);
Uint16 I2CA_ReadData(struct I2CMSG *msg);

赞(0)
未经允许不得转载:TI中文支持网 » argument of type "struct I2CMSG *" is incompatible with parameter of type "struct I2CMSG *"
分享到: 更多 (0)