1 |
577 |
jeremybenn |
/******************** (C) COPYRIGHT 2006 STMicroelectronics ********************
|
2 |
|
|
* File Name : 75x_type.h
|
3 |
|
|
* Author : MCD Application Team
|
4 |
|
|
* Date First Issued : 03/10/2006
|
5 |
|
|
* Description : This file contains all the common data types used for the
|
6 |
|
|
* STR75x software library.
|
7 |
|
|
********************************************************************************
|
8 |
|
|
* History:
|
9 |
|
|
* 07/17/2006 : V1.0
|
10 |
|
|
* 03/10/2006 : V0.1
|
11 |
|
|
********************************************************************************
|
12 |
|
|
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
13 |
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
|
14 |
|
|
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
|
15 |
|
|
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
|
16 |
|
|
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
|
17 |
|
|
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
18 |
|
|
*******************************************************************************/
|
19 |
|
|
|
20 |
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
21 |
|
|
#ifndef __75x_TYPE_H
|
22 |
|
|
#define __75x_TYPE_H
|
23 |
|
|
|
24 |
|
|
/* Includes ------------------------------------------------------------------*/
|
25 |
|
|
/* Exported types ------------------------------------------------------------*/
|
26 |
|
|
typedef signed long s32;
|
27 |
|
|
typedef signed short s16;
|
28 |
|
|
typedef signed char s8;
|
29 |
|
|
|
30 |
|
|
typedef volatile signed long vs32;
|
31 |
|
|
typedef volatile signed short vs16;
|
32 |
|
|
typedef volatile signed char vs8;
|
33 |
|
|
|
34 |
|
|
typedef unsigned long u32;
|
35 |
|
|
typedef unsigned short u16;
|
36 |
|
|
typedef unsigned char u8;
|
37 |
|
|
|
38 |
|
|
typedef volatile unsigned long vu32;
|
39 |
|
|
typedef volatile unsigned short vu16;
|
40 |
|
|
typedef volatile unsigned char vu8;
|
41 |
|
|
|
42 |
|
|
typedef volatile unsigned long const vuc32; /* Read Only */
|
43 |
|
|
typedef volatile unsigned short const vuc16; /* Read Only */
|
44 |
|
|
typedef volatile unsigned char const vuc8; /* Read Only */
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
typedef enum { FALSE = 0, TRUE = !FALSE } bool;
|
48 |
|
|
|
49 |
|
|
typedef enum { RESET = 0, SET = !RESET } FlagStatus, ITStatus;
|
50 |
|
|
|
51 |
|
|
typedef enum { DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
|
52 |
|
|
|
53 |
|
|
typedef enum { ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
|
54 |
|
|
|
55 |
|
|
#define U8_MAX ((u8)255)
|
56 |
|
|
#define S8_MAX ((s8)127)
|
57 |
|
|
#define S8_MIN ((s8)-128)
|
58 |
|
|
#define U16_MAX ((u16)65535u)
|
59 |
|
|
#define S16_MAX ((s16)32767)
|
60 |
|
|
#define S16_MIN ((s16)-32768)
|
61 |
|
|
#define U32_MAX ((u32)4294967295uL)
|
62 |
|
|
#define S32_MAX ((s32)2147483647)
|
63 |
|
|
#define S32_MIN ((s32)-2147483648)
|
64 |
|
|
|
65 |
|
|
/* Exported constants --------------------------------------------------------*/
|
66 |
|
|
/* Exported macro ------------------------------------------------------------*/
|
67 |
|
|
/* Exported functions ------------------------------------------------------- */
|
68 |
|
|
|
69 |
|
|
#endif /* __75x_TYPE_H */
|
70 |
|
|
|
71 |
|
|
/******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/
|