Chapter 4

Integer Types

The Microchip MPLAB C30 cross-compiler does not come with the C99 standard header <stdint.h>. The dsPIC Helper Library provides the inttypes.h to take its place. It defines the following signed integer types:

and the following unsigned integer types:

It also defines the corresponding minimum and maximum limits, for example INT16_MIN and INT16_MAX .

4.1  Usage

To use these types, you can use the -I compiler option to add the dsPIC Helper Library source directory to the compiler command line, and then include the header file like so:

  #include <inttypes.h>