Home/Support/Support Forum/Please check the code below in RCM4000
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Please check the code below in RCM4000

0 votes
I have some data in "REG".
If I copy some of my data to SPD0R(SLAVE Port Data Register) by using the following command
WrPortI(SPD0R,&SPD0RShadow,REG);
I get the error:
line 61 : WARNING PARALLEL 1.C : Wrong type for parameter 2.
line 61 : ERROR PARALLEL 1.C : Invalid expression - need lvalue.
line 61 : ERROR PARALLEL 1.C : SPD0RShadow is out of scope/ not declared.
Please suggest the solution for this.Hope to hear from you soon.
asked Jul 7, 2014 in Rabbit Software by AISWARYA RAJ New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
Hello,

This error is telling you that SPD0RShadow has not been defined anywhere. There is no shadow register defined for the SPD0R register. Use NULL instead for that parameter.
answered Jul 7, 2014 by trooper2 Veteran of the Digi Community (589 points)
...