HAL
Select one of the symbols to view example projects that use it.
Symbol previews are coming soon...
Outline
#define STM32F4xx_HAL_PCCARD_H
Includes
#include "stm32f4xx_ll_fsmc.h"
#include "stm32f4xx_ll_fmc.h"
Exported typedef
Exported macro
#define __HAL_PCCARD_RESET_HANDLE_STATE
Exported functions
Private constants
#define PCCARD_DEVICE_ADDRESS
#define PCCARD_ATTRIBUTE_SPACE_ADDRESS
#define PCCARD_COMMON_SPACE_ADDRESS
#define PCCARD_IO_SPACE_ADDRESS
#define PCCARD_IO_SPACE_PRIMARY_ADDR
#define ATA_DATA
#define ATA_SECTOR_COUNT
#define ATA_SECTOR_NUMBER
#define ATA_CYLINDER_LOW
#define ATA_CYLINDER_HIGH
#define ATA_CARD_HEAD
#define ATA_STATUS_CMD
#define ATA_STATUS_CMD_ALTERNATE
#define ATA_COMMON_DATA_AREA
#define ATA_CARD_CONFIGURATION
#define ATA_READ_SECTOR_CMD
#define ATA_WRITE_SECTOR_CMD
#define ATA_ERASE_SECTOR_CMD
#define ATA_IDENTIFY_CMD
#define PCCARD_TIMEOUT_ERROR
#define PCCARD_BUSY
#define PCCARD_PROGR
#define PCCARD_READY
#define PCCARD_SECTOR_SIZE
#define HAL_CF_Init
#define HAL_CF_DeInit
#define HAL_CF_MspInit
#define HAL_CF_MspDeInit
#define HAL_CF_Read_ID
#define HAL_CF_Write_Sector
#define HAL_CF_Read_Sector
#define HAL_CF_Erase_Sector
#define HAL_CF_Reset
#define HAL_CF_IRQHandler
#define HAL_CF_ITCallback
#define HAL_CF_GetState
#define HAL_CF_GetStatus
#define HAL_CF_ReadStatus
#define HAL_CF_STATUS_SUCCESS
#define HAL_CF_STATUS_ONGOING
#define HAL_CF_STATUS_ERROR
#define HAL_CF_STATUS_TIMEOUT
#define HAL_CF_StatusTypeDef
#define CF_DEVICE_ADDRESS
#define CF_ATTRIBUTE_SPACE_ADDRESS
#define CF_COMMON_SPACE_ADDRESS
#define CF_IO_SPACE_ADDRESS
#define CF_IO_SPACE_PRIMARY_ADDR
#define CF_TIMEOUT_ERROR
#define CF_BUSY
#define CF_PROGR
#define CF_READY
#define CF_SECTOR_SIZE
Files
loading...
SourceVu
STM32 Libraries and Samples
HAL
Inc/stm32f4xx_hal_pccard.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
/**
******************************************************************************
* @file stm32f4xx_hal_pccard.h
* @author MCD Application Team
* @brief Header file of PCCARD HAL module.
******************************************************************************
* @attention
*
* Copyright (c) 2016 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
STM32F4xx_HAL_PCCARD_H
#define
STM32F4xx_HAL_PCCARD_H
#ifdef
__cplusplus
extern
"C"
{
#endif
#if
defined
(
FMC_Bank4
)
||
defined
(
FSMC_Bank4
)
/* Includes ------------------------------------------------------------------*/
#if
defined
(
FSMC_Bank4
)
#include
"
stm32f4xx_ll_fsmc.h"
#else
#include
"
stm32f4xx_ll_fmc.h"
#endif
/* FSMC_Bank4 */
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
/* ... */
/** @addtogroup PCCARD
* @{
*/
/* ... */
Includes
/* Exported typedef ----------------------------------------------------------*/
/** @defgroup PCCARD_Exported_Types PCCARD Exported Types
* @{
*/
/* ... */
/**
* @brief HAL PCCARD State structures definition
*/
/* ... */
typedef
enum
{
HAL_PCCARD_STATE_RESET
=
0x00U
,
/*!< PCCARD peripheral not yet initialized or disabled */
HAL_PCCARD_STATE_READY
=
0x01U
,
/*!< PCCARD peripheral ready */
HAL_PCCARD_STATE_BUSY
=
0x02U
,
/*!< PCCARD peripheral busy */
HAL_PCCARD_STATE_ERROR
=
0x04U
/*!< PCCARD peripheral error */
...
}
HAL_PCCARD_StateTypeDef
;
typedef
enum
{
HAL_PCCARD_STATUS_SUCCESS
=
0U
,
HAL_PCCARD_STATUS_ONGOING
,
HAL_PCCARD_STATUS_ERROR
,
HAL_PCCARD_STATUS_TIMEOUT
...
}
HAL_PCCARD_StatusTypeDef
;
/**
* @brief FMC_PCCARD handle Structure definition
*/
/* ... */
#if
(
USE_HAL_PCCARD_REGISTER_CALLBACKS
==
1
)
typedef
struct
__PCCARD_HandleTypeDef
#else
typedef
struct
#endif
/* USE_HAL_PCCARD_REGISTER_CALLBACKS */
{
FMC_PCCARD_TypeDef
*
Instance
;
/*!< Register base address for PCCARD device */
FMC_PCCARD_InitTypeDef
Init
;
/*!< PCCARD device control configuration parameters */
__IO
HAL_PCCARD_StateTypeDef
State
;
/*!< PCCARD device access state */
HAL_LockTypeDef
Lock
;
/*!< PCCARD Lock */
#if
(
USE_HAL_PCCARD_REGISTER_CALLBACKS
==
1
)
void
(
*
MspInitCallback
)
(
struct
__PCCARD_HandleTypeDef
*
hpccard
)
;
/*!< PCCARD Msp Init callback */
void
(
*
MspDeInitCallback
)
(
struct
__PCCARD_HandleTypeDef
*
hpccard
)
;
/*!< PCCARD Msp DeInit callback */
void
(
*
ItCallback
)
(
struct
__PCCARD_HandleTypeDef
*
hpccard
)
;
/*!< PCCARD IT callback */
/* ... */
#endif
...
}
PCCARD_HandleTypeDef
;
#if
(
USE_HAL_PCCARD_REGISTER_CALLBACKS
==
1
)
/**
* @brief HAL PCCARD Callback ID enumeration definition
*/
/* ... */
typedef
enum
{
HAL_PCCARD_MSP_INIT_CB_ID
=
0x00U
,
/*!< PCCARD MspInit Callback ID */
HAL_PCCARD_MSP_DEINIT_CB_ID
=
0x01U
,
/*!< PCCARD MspDeInit Callback ID */
HAL_PCCARD_IT_CB_ID
=
0x02U
/*!< PCCARD IT Callback ID */
...
}
HAL_PCCARD_CallbackIDTypeDef
;
/**
* @brief HAL PCCARD Callback pointer definition
*/
/* ... */
typedef
void
(
*
pPCCARD_CallbackTypeDef
)
(
PCCARD_HandleTypeDef
*
hpccard
)
;
/* ... */
#endif
/**
* @}
*/
/* ... */
Exported typedef
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/** @defgroup PCCARD_Exported_Macros PCCARD Exported Macros
* @{
*/
/* ... */
/** @brief Reset PCCARD handle state
* @param __HANDLE__ specifies the PCCARD handle.
* @retval None
*/
/* ... */
#if
(
USE_HAL_PCCARD_REGISTER_CALLBACKS
==
1
)
#define
__HAL_PCCARD_RESET_HANDLE_STATE
(
__HANDLE__
)
do
{
\
(
__HANDLE__
)
->
State
=
HAL_PCCARD_STATE_RESET
;
\
(
__HANDLE__
)
->
MspInitCallback
=
NULL
;
\
(
__HANDLE__
)
->
MspDeInitCallback
=
NULL
;
\
...
}
while
(
0
)
...
/* ... */
#else
#define
__HAL_PCCARD_RESET_HANDLE_STATE
(
__HANDLE__
)
(
(
__HANDLE__
)
->
State
=
HAL_PCCARD_STATE_RESET
)
#endif
/**
* @}
*/
/* ... */
Exported macro
/* Exported functions --------------------------------------------------------*/
/** @addtogroup PCCARD_Exported_Functions
* @{
*/
/* ... */
/** @addtogroup PCCARD_Exported_Functions_Group1
* @{
*/
/* ... */
/* Initialization/de-initialization functions **********************************/
HAL_StatusTypeDef
HAL_PCCARD_Init
(
PCCARD_HandleTypeDef
*
hpccard
,
FMC_NAND_PCC_TimingTypeDef
*
ComSpaceTiming
,
FMC_NAND_PCC_TimingTypeDef
*
AttSpaceTiming
,
FMC_NAND_PCC_TimingTypeDef
*
IOSpaceTiming
)
;
HAL_StatusTypeDef
HAL_PCCARD_DeInit
(
PCCARD_HandleTypeDef
*
hpccard
)
;
void
HAL_PCCARD_MspInit
(
PCCARD_HandleTypeDef
*
hpccard
)
;
void
HAL_PCCARD_MspDeInit
(
PCCARD_HandleTypeDef
*
hpccard
)
;
/**
* @}
*/
/* ... */
/** @addtogroup PCCARD_Exported_Functions_Group2
* @{
*/
/* ... */
/* IO operation functions *****************************************************/
HAL_StatusTypeDef
HAL_PCCARD_Read_ID
(
PCCARD_HandleTypeDef
*
hpccard
,
uint8_t
CompactFlash_ID
[
]
,
uint8_t
*
pStatus
)
;
HAL_StatusTypeDef
HAL_PCCARD_Write_Sector
(
PCCARD_HandleTypeDef
*
hpccard
,
uint16_t
*
pBuffer
,
uint16_t
SectorAddress
,
uint8_t
*
pStatus
)
;
HAL_StatusTypeDef
HAL_PCCARD_Read_Sector
(
PCCARD_HandleTypeDef
*
hpccard
,
uint16_t
*
pBuffer
,
uint16_t
SectorAddress
,
uint8_t
*
pStatus
)
;
HAL_StatusTypeDef
HAL_PCCARD_Erase_Sector
(
PCCARD_HandleTypeDef
*
hpccard
,
uint16_t
SectorAddress
,
uint8_t
*
pStatus
)
;
HAL_StatusTypeDef
HAL_PCCARD_Reset
(
PCCARD_HandleTypeDef
*
hpccard
)
;
void
HAL_PCCARD_IRQHandler
(
PCCARD_HandleTypeDef
*
hpccard
)
;
void
HAL_PCCARD_ITCallback
(
PCCARD_HandleTypeDef
*
hpccard
)
;
#if
(
USE_HAL_PCCARD_REGISTER_CALLBACKS
==
1
)
/* PCCARD callback registering/unregistering */
HAL_StatusTypeDef
HAL_PCCARD_RegisterCallback
(
PCCARD_HandleTypeDef
*
hpccard
,
HAL_PCCARD_CallbackIDTypeDef
CallbackId
,
pPCCARD_CallbackTypeDef
pCallback
)
;
HAL_StatusTypeDef
HAL_PCCARD_UnRegisterCallback
(
PCCARD_HandleTypeDef
*
hpccard
,
HAL_PCCARD_CallbackIDTypeDef
CallbackId
)
;
/* ... */
#endif
/**
* @}
*/
/* ... */
/** @addtogroup PCCARD_Exported_Functions_Group3
* @{
*/
/* ... */
/* PCCARD State functions *******************************************************/
HAL_PCCARD_StateTypeDef
HAL_PCCARD_GetState
(
PCCARD_HandleTypeDef
*
hpccard
)
;
HAL_PCCARD_StatusTypeDef
HAL_PCCARD_GetStatus
(
PCCARD_HandleTypeDef
*
hpccard
)
;
HAL_PCCARD_StatusTypeDef
HAL_PCCARD_ReadStatus
(
PCCARD_HandleTypeDef
*
hpccard
)
;
/**
* @}
*/
/* ... */
/**
* @}
*/
/* ... */
Exported functions
/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/
/** @defgroup PCCARD_Private_Constants PCCARD Private Constants
* @{
*/
/* ... */
#define
PCCARD_DEVICE_ADDRESS
0x90000000U
#define
PCCARD_ATTRIBUTE_SPACE_ADDRESS
0x98000000U
/* Attribute space size to @0x9BFF FFFF */
#define
PCCARD_COMMON_SPACE_ADDRESS
PCCARD_DEVICE_ADDRESS
/* Common space size to @0x93FF FFFF */
#define
PCCARD_IO_SPACE_ADDRESS
0x9C000000U
/* IO space size to @0x9FFF FFFF */
#define
PCCARD_IO_SPACE_PRIMARY_ADDR
0x9C0001F0U
/* IO space size to @0x9FFF FFFF */
/* Flash-ATA registers description */
#define
ATA_DATA
(
(
uint8_t
)
0x00
)
/* Data register */
#define
ATA_SECTOR_COUNT
(
(
uint8_t
)
0x02
)
/* Sector Count register */
#define
ATA_SECTOR_NUMBER
(
(
uint8_t
)
0x03
)
/* Sector Number register */
#define
ATA_CYLINDER_LOW
(
(
uint8_t
)
0x04
)
/* Cylinder low register */
#define
ATA_CYLINDER_HIGH
(
(
uint8_t
)
0x05
)
/* Cylinder high register */
#define
ATA_CARD_HEAD
(
(
uint8_t
)
0x06
)
/* Card/Head register */
#define
ATA_STATUS_CMD
(
(
uint8_t
)
0x07
)
/* Status(read)/Command(write) register */
#define
ATA_STATUS_CMD_ALTERNATE
(
(
uint8_t
)
0x0E
)
/* Alternate Status(read)/Command(write) register */
#define
ATA_COMMON_DATA_AREA
(
(
uint16_t
)
0x0400
)
/* Start of data area (for Common access only!) */
#define
ATA_CARD_CONFIGURATION
(
(
uint16_t
)
0x0202
)
/* Card Configuration and Status Register */
/* Flash-ATA commands */
#define
ATA_READ_SECTOR_CMD
(
(
uint8_t
)
0x20
)
#define
ATA_WRITE_SECTOR_CMD
(
(
uint8_t
)
0x30
)
#define
ATA_ERASE_SECTOR_CMD
(
(
uint8_t
)
0xC0
)
#define
ATA_IDENTIFY_CMD
(
(
uint8_t
)
0xEC
)
/* PC Card/Compact Flash status */
#define
PCCARD_TIMEOUT_ERROR
(
(
uint8_t
)
0x60
)
#define
PCCARD_BUSY
(
(
uint8_t
)
0x80
)
#define
PCCARD_PROGR
(
(
uint8_t
)
0x01
)
#define
PCCARD_READY
(
(
uint8_t
)
0x40
)
#define
PCCARD_SECTOR_SIZE
255U
/* In half words */
/**
* @}
*/
/* ... */
/* Compact Flash redefinition */
#define
HAL_CF_Init
HAL_PCCARD_Init
#define
HAL_CF_DeInit
HAL_PCCARD_DeInit
#define
HAL_CF_MspInit
HAL_PCCARD_MspInit
#define
HAL_CF_MspDeInit
HAL_PCCARD_MspDeInit
#define
HAL_CF_Read_ID
HAL_PCCARD_Read_ID
#define
HAL_CF_Write_Sector
HAL_PCCARD_Write_Sector
#define
HAL_CF_Read_Sector
HAL_PCCARD_Read_Sector
#define
HAL_CF_Erase_Sector
HAL_PCCARD_Erase_Sector
#define
HAL_CF_Reset
HAL_PCCARD_Reset
#define
HAL_CF_IRQHandler
HAL_PCCARD_IRQHandler
#define
HAL_CF_ITCallback
HAL_PCCARD_ITCallback
#define
HAL_CF_GetState
HAL_PCCARD_GetState
#define
HAL_CF_GetStatus
HAL_PCCARD_GetStatus
#define
HAL_CF_ReadStatus
HAL_PCCARD_ReadStatus
#define
HAL_CF_STATUS_SUCCESS
HAL_PCCARD_STATUS_SUCCESS
#define
HAL_CF_STATUS_ONGOING
HAL_PCCARD_STATUS_ONGOING
#define
HAL_CF_STATUS_ERROR
HAL_PCCARD_STATUS_ERROR
#define
HAL_CF_STATUS_TIMEOUT
HAL_PCCARD_STATUS_TIMEOUT
#define
HAL_CF_StatusTypeDef
HAL_PCCARD_StatusTypeDef
#define
CF_DEVICE_ADDRESS
PCCARD_DEVICE_ADDRESS
#define
CF_ATTRIBUTE_SPACE_ADDRESS
PCCARD_ATTRIBUTE_SPACE_ADDRESS
#define
CF_COMMON_SPACE_ADDRESS
PCCARD_COMMON_SPACE_ADDRESS
#define
CF_IO_SPACE_ADDRESS
PCCARD_IO_SPACE_ADDRESS
#define
CF_IO_SPACE_PRIMARY_ADDR
PCCARD_IO_SPACE_PRIMARY_ADDR
#define
CF_TIMEOUT_ERROR
PCCARD_TIMEOUT_ERROR
#define
CF_BUSY
PCCARD_BUSY
#define
CF_PROGR
PCCARD_PROGR
#define
CF_READY
PCCARD_READY
#define
CF_SECTOR_SIZE
PCCARD_SECTOR_SIZE
53 defines
Private constants
/* Private macros ------------------------------------------------------------*/
/**
* @}
*/
/* ... */
/**
* @}
*/
/* ... */
/* ... */
#endif
/* FMC_Bank4 || FSMC_Bank4 */
#ifdef
__cplusplus
}
extern "C" { ... }
#endif
/* ... */
#endif
/* STM32F4xx_HAL_PCCARD_H */
Details
Show:
from
Types:
Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.
STM32F4xx_HAL_PCCARD_H