Hal Pccard Generic Driver; Pccard_Handletypedef; Pccard Firmware Driver Api Description; Pccard Firmware Driver Registers Structures - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
31

HAL PCCARD Generic Driver

31.1

PCCARD Firmware driver registers structures

31.1.1

PCCARD_HandleTypeDef

Data Fields
FSMC_PCCARD_TypeDef * Instance
FSMC_PCCARD_InitTypeDef Init
__IO HAL_PCCARD_StateTypeDef State
HAL_LockTypeDef Lock
Field Documentation
FSMC_PCCARD_TypeDef* PCCARD_HandleTypeDef::Instance
Register base address for PCCARD device
FSMC_PCCARD_InitTypeDef PCCARD_HandleTypeDef::Init
PCCARD device control configuration parameters
__IO HAL_PCCARD_StateTypeDef PCCARD_HandleTypeDef::State
PCCARD device access state
HAL_LockTypeDef PCCARD_HandleTypeDef::Lock
PCCARD Lock
31.2

PCCARD Firmware driver API description

31.2.1

How to use this driver

This driver is a generic layered driver which contains a set of APIs used to control
PCCARD/compact flash memories. It uses the FSMC layer functions to interface with
PCCARD devices. This driver is used for:
PCCARD/Compact Flash memory configuration sequence using the function
HAL_PCCARD_Init()/HAL_CF_Init() with control and timing parameters for both
common and attribute spaces.
Read PCCARD/Compact Flash memory maker and device IDs using the function
HAL_PCCARD_Read_ID()/HAL_CF_Read_ID(). The read information is stored in the
CompactFlash_ID structure declared by the function caller.
Access PCCARD/Compact Flash memory by read/write operations using the functions
HAL_PCCARD_Read_Sector()/ HAL_PCCARD_Write_Sector() -
HAL_CF_Read_Sector()/HAL_CF_Write_Sector(), to read/write sector.
Perform PCCARD/Compact Flash Reset chip operation using the function
HAL_PCCARD_Reset()/HAL_CF_Reset.
Perform PCCARD/Compact Flash erase sector operation using the function
HAL_PCCARD_Erase_Sector()/HAL_CF_Erase_Sector.
Read the PCCARD/Compact Flash status operation using the function
HAL_PCCARD_ReadStatus()/HAL_CF_ReadStatus().
You can monitor the PCCARD/Compact Flash device HAL state by calling the function
HAL_PCCARD_GetState()/HAL_CF_GetState()
DocID028236 Rev 2
HAL PCCARD Generic Driver
387/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Table of Contents

Save PDF