Anonymous
Not applicable
Sep 08, 2014
05:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2014
05:36 PM
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?
Labels
- Labels:
-
PSoC 3
1 Reply
Sep 08, 2014
07:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2014
07:20 PM
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 Types | Bits | Bytes | Value Range |
---|---|---|---|
bit | 1 | 0 to 1 | |
signed char | 8 | 1 | -128 — +127 |
unsigned char | 8 | 1 | 0 — 255 |
enum | 8 / 16 | 1 or 2 | -128 — +127 or -32768 — +32767 |
signed short int | 16 | 2 | -32768 — +32767 |
unsigned short int | 16 | 2 | 0 — 65535 |
signed int | 16 | 2 | -32768 — +32767 |
unsigned int | 16 | 2 | 0 — 65535 |
signed long int | 32 | 4 | -2147483648 — +2147483647 |
unsigned long int | 32 | 4 | 0 — 4294967295 |
float | 32 | 4 | ±1.175494E-38 — ±3.402823E+38 |
double | 32 | 4 | ±1.175494E-38 — ±3.402823E+38 |
sbit | 1 | 0 or 1 | |
sfr | 8 | 1 | 0 — 255 |
sfr16 | 16 | 2 | 0 — 65535 |
Note
- The bit, sbit, sfr, and sfr16 data types are not provided in ANSI C. They are unique to the Cx51 Compiler.
Copyright © Keil, An ARM Company. All rights reserved.