Cordio Stack and Cordio Profiles
r2p3-02rel0
Main Page
Usage and Description
Reference
wsf_types.h
Go to the documentation of this file.
1
/*************************************************************************************************/
2
/*!
3
* \file wsf_types.h
4
*
5
* \brief Platform-independent data types.
6
*
7
* Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved.
8
* Arm Ltd. confidential and proprietary.
9
*
10
* IMPORTANT. Your use of this file is governed by a Software License Agreement
11
* ("Agreement") that must be accepted in order to download or otherwise receive a
12
* copy of this file. You may not use or copy this file for any purpose other than
13
* as described in the Agreement. If you do not agree to all of the terms of the
14
* Agreement do not use this file and delete all copies in your possession or control;
15
* if you do not have a copy of the Agreement, you must contact Arm Ltd. prior
16
* to any use, copying or further distribution of this software.
17
*/
18
/*************************************************************************************************/
19
#ifndef WSF_TYPES_H
20
#define WSF_TYPES_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/*! \addtogroup WSF_TYPES
27
* \{ */
28
29
/**************************************************************************************************
30
Macros
31
**************************************************************************************************/
32
33
#ifndef NULL
34
/*! \brief NULL reference */
35
#define NULL 0
36
#endif
37
38
#ifndef TRUE
39
/*! \brief Boolean True */
40
#define TRUE 1
41
#endif
42
43
#ifndef FALSE
44
/*! \brief Boolean False */
45
#define FALSE 0
46
#endif
47
48
/**************************************************************************************************
49
Data Types
50
**************************************************************************************************/
51
52
/** \name Integer Data Types
53
*
54
*/
55
/**@{*/
56
#if ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) && \
57
(!defined(__ICC8051__) || (__ICC8051__ == 0)))
58
#include <stdint.h>
59
#else
60
/*! \brief Signed 8-bit value. */
61
typedef
signed
char
int8_t
;
62
/*! \brief Unsigned 8-bit value. */
63
typedef
unsigned
char
uint8_t
;
64
/*! \brief Signed 16-bit value. */
65
typedef
signed
short
int16_t
;
66
/*! \brief Unsigned 16-bit value. */
67
typedef
unsigned
short
uint16_t
;
68
/*! \brief Signed 32-bit value. */
69
typedef
signed
long
int32_t
;
70
/*! \brief Unsigned 32-bit value. */
71
typedef
unsigned
long
uint32_t
;
72
/*! \brief Unsigned 64-bit value. */
73
typedef
unsigned
long
long
uint64_t
;
74
#endif
75
/**@}*/
76
77
/*! \brief Boolean data type */
78
typedef
uint8_t
bool_t
;
79
80
/*! \} */
/* WSF_TYPES */
81
82
#ifdef __cplusplus
83
};
84
#endif
85
86
#endif
/* WSF_TYPES_H */
int32_t
signed long int32_t
Signed 32-bit value.
Definition:
wsf_types.h:69
bool_t
uint8_t bool_t
Boolean data type.
Definition:
wsf_types.h:78
uint32_t
unsigned long uint32_t
Unsigned 32-bit value.
Definition:
wsf_types.h:71
uint64_t
unsigned long long uint64_t
Unsigned 64-bit value.
Definition:
wsf_types.h:73
uint16_t
unsigned short uint16_t
Unsigned 16-bit value.
Definition:
wsf_types.h:67
uint8_t
unsigned char uint8_t
Unsigned 8-bit value.
Definition:
wsf_types.h:63
int16_t
signed short int16_t
Signed 16-bit value.
Definition:
wsf_types.h:65
int8_t
signed char int8_t
Signed 8-bit value.
Definition:
wsf_types.h:61
Copyright © 2017-2018 Arm Ltd. All rights reserved.
Arm Confidential
Cordio Stack and Cordio Profiles