AnsweredAssumed Answered

constant truncation in ADF4351.h

Question asked by tom.roberts@anritsu.com on Dec 3, 2013
Latest reply on Nov 26, 2015 by rbrennan

Hello, I'm using the ADF4351EB1Z eval board with the cypress controller bypassed. I'm controlling the ADF4351EB1Z with my Arduino Leonardo, Arduino IDE and the fine code created by Dragos: ADF4351.c, ADF4351.h and ADF4351_cfg.h

 

I do have the code working although I did run into the problem of the constants in the .h files only recognized as 16-bits resulting in truncation. I explicitly declared the (x) variables as long so that worked. For the other single bit shift operations (1<<27 for example) I had to explicitly write as 0x08000000. Question: Is there a cleaner way to force all constants/variables in the .h file to be 32 bits instead of 16 bits?

 

-Tom

Outcomes