PSoC 3 uint64

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Does anyone know why uint64 is not in PSoC3?

   

In cytypes.h there is code to typedef "usigned long long" into uint64 but it seems to only be supported for everything but PSoC3.

   

I seem to be able to use the "usigned long long". Is there any reason I shouldn't just typedef it myself?

0 Likes
1 Reply
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

The Keil compiler shows the following data types -

   

 

   

    

   

                   

   

Data Types

   

The Cx51 Compiler provides several basic data types you may use in your C programs. The compiler supports the standard C data types as well as several data types that are unique to the Cx51 platform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
Data TypesBitsBytesValue Range
bit1 0 to 1
signed char81-128 — +127
unsigned char810 — 255
enum8 / 161 or 2-128 — +127 or -32768 — +32767
signed short int162-32768 — +32767
unsigned short int1620 — 65535
signed int162-32768 — +32767
unsigned int1620 — 65535
signed long int324-2147483648 — +2147483647
unsigned long int3240 — 4294967295
float324±1.175494E-38 — ±3.402823E+38
double324±1.175494E-38 — ±3.402823E+38
sbit1 0 or 1
sfr810 — 255
sfr161620 — 65535
   

Note

   
        
  • The bit, sbit, sfr, and sfr16 data types are not provided in ANSI C. They are unique to the Cx51 Compiler.
  •    
   
0 Likes