Dear YiKai,
Thank you for your reply, I have succeed to debug something without error, but I have not read LQI value, It shows as "0", I want to mention what I have done...
Firstly, I have read your link and load Timac, and found timac folder there was a project there and I have opened mac project for CC2530.
After that I have found LQI function and it's header files; mac_api.h, saddr.h, sdata.h. I have written to my program that include function; #include "mac_api.h".
After that I have lots of error because of "bool" and I do not need them so I have cleared them.
Then, I have run and also some errors again and I have cleared them, because I only need LQI,
Finally without error I have run the program, before that to read data I have written a function to call LQI which is:
static macDataInd_t dataIND;
LQ[m] = dataIND.mpduLinkQuality;
to read data from LQ..(mpduLinkQuality and macDataInd_t placed in the mac_api.h to read received LQI )
finally the program has run without error but I have read from the LQ is "zero".
Could you help me any more
Regards,
ES