noob question on data types in Creator | Cypress Semiconductor
noob question on data types in Creator
I'm getting into embedded programming - my last experience was C/ASM about 20 years ago....
I am trying to use the SPI component to transmit some data. I looked at the example SPI_Master project, and a couple of things I don't understand...
One of the lines states
what does the 'u' signify at the end of the number? It was my understanding that writing 0xFF signifies a hex number. But I see tons of examples where people write hex just as "0xFF" without any suffix... so is the 'u' needed? What other suffixes are there besides the 'u'? How does one denote binary, hex, decimal, etc?
As I understand, there are C standard datatypes of char, int, long, double, float, etc. I used PSoC Designer in the past and used these data types. But in many examples, I see uint16, uint32, etc. What is the reason that Cypress has these other data types listed? Or are they something from Keil? Is there any advantage to using uint16 instead of just unsigned int?