Select one of the symbols to view example projects that use it.
 
Outline
#define __STMPE1600_H
Includes
#include "../Common/io.h"
Exported types
Exported constants
#define STMPE1600_ID
#define STMPE1600_IT_ENABLE
#define STMPE1600_REG_CHP_ID
#define STMPE1600_REG_ID_VERSION
#define STMPE1600_REG_SYS_CTRL
#define STMPE1600_REG_GPMR
#define STMPE1600_REG_GPSR
#define STMPE1600_REG_GPDR
#define STMPE1600_REG_GPPIR
#define STMPE1600_REG_IEGPIOR
#define STMPE1600_REG_ISGPIOR
#define STMPE1600_DIRECTION_IN
#define STMPE1600_DIRECTION_OUT
#define STMPE1600_POLARITY_LOW
#define STMPE1600_POLARITY_HIGH
#define STMPE1600_PIN_0
#define STMPE1600_PIN_1
#define STMPE1600_PIN_2
#define STMPE1600_PIN_3
#define STMPE1600_PIN_4
#define STMPE1600_PIN_5
#define STMPE1600_PIN_6
#define STMPE1600_PIN_7
#define STMPE1600_PIN_8
#define STMPE1600_PIN_9
#define STMPE1600_PIN_10
#define STMPE1600_PIN_11
#define STMPE1600_PIN_12
#define STMPE1600_PIN_13
#define STMPE1600_PIN_14
#define STMPE1600_PIN_15
#define STMPE1600_PIN_ALL
Exported macro
stmpe1600_Init(uint16_t);
stmpe1600_Reset(uint16_t);
stmpe1600_ReadID(uint16_t);
stmpe1600_SetITPolarity(uint16_t, uint8_t);
stmpe1600_EnableGlobalIT(uint16_t);
stmpe1600_DisableGlobalIT(uint16_t);
stmpe1600_IO_InitPin(uint16_t, uint32_t, uint8_t);
stmpe1600_IO_Config(uint16_t, uint32_t, IO_ModeTypedef);
stmpe1600_IO_PolarityInv_Enable(uint16_t, uint32_t);
stmpe1600_IO_PolarityInv_Disable(uint16_t, uint32_t);
stmpe1600_IO_WritePin(uint16_t, uint32_t, uint8_t);
stmpe1600_IO_ReadPin(uint16_t, uint32_t);
stmpe1600_IO_EnablePinIT(uint16_t, uint32_t);
stmpe1600_IO_DisablePinIT(uint16_t, uint32_t);
stmpe1600_IO_ITStatus(uint16_t, uint32_t);
stmpe1600_IO_ReadIT(uint16_t, uint32_t);
stmpe1600_IO_ClearIT(uint16_t, uint32_t);
stmpe1600_Start(uint16_t, uint32_t);
IOE_Init();
IOE_ITConfig();
IOE_Delay(uint32_t);
IOE_Write(uint8_t, uint8_t, uint8_t);
IOE_Read(uint8_t, uint8_t);
IOE_ReadMultiple(uint8_t, uint8_t, uint8_t *, uint16_t);
IOE_WriteMultiple(uint8_t, uint8_t, uint8_t *, uint16_t);
stmpe1600_io_drv;
Files
loading...
CodeScopeSTM32 Libraries and Samplesstmpe1600stmpe1600.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file stmpe1600.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the * stmpe1600.c IO expander driver. ****************************************************************************** * @attention * * Copyright (c) 2014 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STMPE1600_H #define __STMPE1600_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "../Common/io.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup Component * @{ *//* ... */ /** @defgroup STMPE1600 * @{ *//* ... */ Includes /* Exported types ------------------------------------------------------------*/ /** @defgroup STMPE1600_Exported_Types * @{ *//* ... */ Exported types /* Exported constants --------------------------------------------------------*/ /** @defgroup STMPE1600_Exported_Constants * @{ *//* ... */ /** * @brief STMPE1600 chip IDs *//* ... */ #define STMPE1600_ID 0x1600 /** * @brief Interrupt enable *//* ... */ #define STMPE1600_IT_ENABLE 0x04 /** * @brief Identification registers & System Control *//* ... */ #define STMPE1600_REG_CHP_ID 0x00 #define STMPE1600_REG_ID_VERSION 0x02 #define STMPE1600_REG_SYS_CTRL 0x03 /** * @brief IO Registers *//* ... */ #define STMPE1600_REG_GPMR 0x10 #define STMPE1600_REG_GPSR 0x12 #define STMPE1600_REG_GPDR 0x14 #define STMPE1600_REG_GPPIR 0x16 /** * @brief Interrupt Control registers *//* ... */ #define STMPE1600_REG_IEGPIOR 0x08 #define STMPE1600_REG_ISGPIOR 0x0A /** * @brief IO Pins direction *//* ... */ #define STMPE1600_DIRECTION_IN 0x00 #define STMPE1600_DIRECTION_OUT 0x01 /** * @brief IO IT polarity *//* ... */ #define STMPE1600_POLARITY_LOW 0x00 #define STMPE1600_POLARITY_HIGH 0x01 /** * @brief IO Pins *//* ... */ #define STMPE1600_PIN_0 0x0001 #define STMPE1600_PIN_1 0x0002 #define STMPE1600_PIN_2 0x0004 #define STMPE1600_PIN_3 0x0008 #define STMPE1600_PIN_4 0x0010 #define STMPE1600_PIN_5 0x0020 #define STMPE1600_PIN_6 0x0040 #define STMPE1600_PIN_7 0x0080 #define STMPE1600_PIN_8 0x0100 #define STMPE1600_PIN_9 0x0200 #define STMPE1600_PIN_10 0x0400 #define STMPE1600_PIN_11 0x0800 #define STMPE1600_PIN_12 0x1000 #define STMPE1600_PIN_13 0x2000 #define STMPE1600_PIN_14 0x4000 #define STMPE1600_PIN_15 0x8000 #define STMPE1600_PIN_ALL 0xFFFF 32 defines /** * @} *//* ... */ Exported constants /* Exported macro ------------------------------------------------------------*/ /** @defgroup STMPE1600_Exported_Macros * @{ *//* ... */ Exported macro /* Exported functions --------------------------------------------------------*/ /** @defgroup STMPE1600_Exported_Functions * @{ *//* ... */ /** * @brief STMPE1600 Control functions *//* ... */ void stmpe1600_Init(uint16_t DeviceAddr); void stmpe1600_Reset(uint16_t DeviceAddr); uint16_t stmpe1600_ReadID(uint16_t DeviceAddr); void stmpe1600_SetITPolarity(uint16_t DeviceAddr, uint8_t Polarity); void stmpe1600_EnableGlobalIT(uint16_t DeviceAddr); void stmpe1600_DisableGlobalIT(uint16_t DeviceAddr); /** * @brief STMPE1600 IO functionalities functions *//* ... */ void stmpe1600_IO_InitPin(uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t Direction); uint8_t stmpe1600_IO_Config(uint16_t DeviceAddr, uint32_t IO_Pin, IO_ModeTypedef IO_Mode); void stmpe1600_IO_PolarityInv_Enable(uint16_t DeviceAddr, uint32_t IO_Pin); void stmpe1600_IO_PolarityInv_Disable(uint16_t DeviceAddr, uint32_t IO_Pin); void stmpe1600_IO_WritePin(uint16_t DeviceAddr, uint32_t IO_Pin, uint8_t PinState); uint32_t stmpe1600_IO_ReadPin(uint16_t DeviceAddr, uint32_t IO_Pin); void stmpe1600_IO_EnablePinIT(uint16_t DeviceAddr, uint32_t IO_Pin); void stmpe1600_IO_DisablePinIT(uint16_t DeviceAddr, uint32_t IO_Pin); uint32_t stmpe1600_IO_ITStatus(uint16_t DeviceAddr, uint32_t IO_Pin); uint8_t stmpe1600_IO_ReadIT(uint16_t DeviceAddr, uint32_t IO_Pin); void stmpe1600_IO_ClearIT(uint16_t DeviceAddr, uint32_t IO_Pin); void stmpe1600_Start(uint16_t DeviceAddr, uint32_t IO_Pin); void IOE_Init(void); void IOE_ITConfig (void); void IOE_Delay(uint32_t delay); void IOE_Write(uint8_t addr, uint8_t reg, uint8_t value); uint8_t IOE_Read(uint8_t addr, uint8_t reg); uint16_t IOE_ReadMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length); void IOE_WriteMultiple(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t length); /* STMPE1600 driver structure */ extern IO_DrvTypeDef stmpe1600_io_drv; #ifdef __cplusplus }extern "C" { ... } #endif/* ... */ #endif /* __STMPE1600_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */