Defines basic data types and macros for the platform to use.
This module defines the basic data types and macros for the platform, so that it is easier to port the software to other hardware platform. The software of the platform should use the data types or macros defined in this module, rather than these C primitive types directly.
N/A
|
Macro |
Description |
|
0 | |
|
0 | |
|
1 | |
|
Do not compare it with VM_RESULT directly, i.e. DO NOT USE if(VM_FAIL==xxxx()) to determine a failure or not. Instead, use if(VM_IS_FAILED(xxx()). | |
|
Boolean value false. | |
|
Use this macro to determine if a VM_RESULT is a failure or not. | |
|
Use this macro to determine if a VM_RESULT is a success or not. | |
|
Do not compare it with VM_RESULT directly. | |
|
General result type for LinkIt SDK API. Must be used with VM_IS_SUCCEEDED() and VM_IS_FAILED() to confirm sucess or not. Do not compare with VM_SUCESS and VM_FAIL directly. | |
|
Do not compare it with VM_RESULT directly, i.e. DO NOT USE if(VM_SUCCESS==xxxx()) to determine a success or not. Instead, use if(VM_IS_SUCCEEDED(xxx()). | |
|
The error code (-103) means a symbol cannot be found in the firmware. | |
|
Boolean value true. |
|
Type |
Description |
|
int, 32-bit, range: -2^31 - 2^31-1 | |
|
unsigned char, 8-bit, range: 0 - 2^8-1 | |
|
char, 8-bit, range: -2^7 - 2^7-1 | |
|
const signed char *, a const NULL-terminated single-byte string. | |
|
const short *, a const NULL-terminated two-bye string | |
|
double, 64-bit, double precision. | |
|
float, 32-bit, single precision. | |
|
int, 32-bit, range: -2^31 - 2^31-1 | |
|
short, 16-bit, range: -2^15 - 2^15-1 | |
|
long, 32-bit, range: -2^31 - 2^31-1 | |
|
long long, 64-bit, range: -2^63 - 2^63-1 | |
|
char, 8-bit, range: -2^7 - 2^7-1 | |
|
short, 16-bit, range: -2^15 - 2^15-1 | |
|
signed char*, a NULL-terminated single-byte string. | |
|
unsigned char, 8-bit, range: 0 - 2^8-1 | |
|
unsigned int, 32-bit, range: 0 - 2^32-1 | |
|
unsigned short, 16-bit, range: 0 - 2^16-1 | |
|
unsigned long, 32-bit, range: 0 - 2^32-1 | |
|
unsigned long long, 64-bit, range: 0 - 2^64-1 | |
|
unsigned char, 8-bit, range: 0 - 2^8-1 | |
|
unsigned short, 16-bit, range: 0 - 2^16-1 | |
|
unsigned short, 16-bit, range: 0 - 2^16-1 | |
|
short, 16-bit, range: -2^15 - 2^15-1 | |
|
short*, a NULL-terminated two-byte string. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.