Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL SD Generic Driver

UM1725

53 HAL SD Generic Driver

53.1SD Firmware driver registers structures

53.1.1SD_HandleTypeDef

Data Fields

SD_TypeDef * Instance

SD_InitTypeDef Init

HAL_LockTypeDef Lock

uint32_t CardType

uint32_t RCA

uint32_t CSD

uint32_t CID

__IO uint32_t SdTransferCplt

__IO uint32_t SdTransferErr

__IO uint32_t DmaTransferCplt

__IO uint32_t SdOperation

DMA_HandleTypeDef * hdmarx

DMA_HandleTypeDef * hdmatx

Field Documentation

SD_TypeDef* SD_HandleTypeDef::Instance

SDIO register base address

SD_InitTypeDef SD_HandleTypeDef::Init

SD required parameters

HAL_LockTypeDef SD_HandleTypeDef::Lock

SD locking object

uint32_t SD_HandleTypeDef::CardType

SD card type

uint32_t SD_HandleTypeDef::RCA

SD relative card address

uint32_t SD_HandleTypeDef::CSD[4]

SD card specific data table

uint32_t SD_HandleTypeDef::CID[4]

SD card identification number table

__IO uint32_t SD_HandleTypeDef::SdTransferCplt

SD transfer complete flag in non blocking mode

__IO uint32_t SD_HandleTypeDef::SdTransferErr

SD transfer error flag in non blocking mode

__IO uint32_t SD_HandleTypeDef::DmaTransferCplt

SD DMA transfer complete flag

__IO uint32_t SD_HandleTypeDef::SdOperation

SD transfer operation (read/write)

DMA_HandleTypeDef* SD_HandleTypeDef::hdmarx

SD Rx DMA handle parameters

DMA_HandleTypeDef* SD_HandleTypeDef::hdmatx

SD Tx DMA handle parameters

696/900

DOCID025834 Rev 2

UM1725

HAL SD Generic Driver

53.1.2HAL_SD_CSDTypedef

Data Fields

__IO uint8_t CSDStruct

__IO uint8_t SysSpecVersion

__IO uint8_t Reserved1

__IO uint8_t TAAC

__IO uint8_t NSAC

__IO uint8_t MaxBusClkFrec

__IO uint16_t CardComdClasses

__IO uint8_t RdBlockLen

__IO uint8_t PartBlockRead

__IO uint8_t WrBlockMisalign

__IO uint8_t RdBlockMisalign

__IO uint8_t DSRImpl

__IO uint8_t Reserved2

__IO uint32_t DeviceSize

__IO uint8_t MaxRdCurrentVDDMin

__IO uint8_t MaxRdCurrentVDDMax

__IO uint8_t MaxWrCurrentVDDMin

__IO uint8_t MaxWrCurrentVDDMax

__IO uint8_t DeviceSizeMul

__IO uint8_t EraseGrSize

__IO uint8_t EraseGrMul

__IO uint8_t WrProtectGrSize

__IO uint8_t WrProtectGrEnable

__IO uint8_t ManDeflECC

__IO uint8_t WrSpeedFact

__IO uint8_t MaxWrBlockLen

__IO uint8_t WriteBlockPaPartial

__IO uint8_t Reserved3

__IO uint8_t ContentProtectAppli

__IO uint8_t FileFormatGrouop

__IO uint8_t CopyFlag

__IO uint8_t PermWrProtect

__IO uint8_t TempWrProtect

__IO uint8_t FileFormat

__IO uint8_t ECC

__IO uint8_t CSD_CRC

__IO uint8_t Reserved4

Field Documentation

__IO uint8_t HAL_SD_CSDTypedef::CSDStruct

CSD structure

__IO uint8_t HAL_SD_CSDTypedef::SysSpecVersion

System specification version

__IO uint8_t HAL_SD_CSDTypedef::Reserved1

Reserved

DOCID025834 Rev 2

697/900

HAL SD Generic Driver

UM1725

 

__IO uint8_t HAL_SD_CSDTypedef::TAAC

 

 

Data read access time 1

 

 

__IO uint8_t HAL_SD_CSDTypedef::NSAC

 

 

Data read access time 2 in CLK cycles

 

 

__IO uint8_t HAL_SD_CSDTypedef::MaxBusClkFrec

 

 

Max. bus clock frequency

 

 

__IO uint16_t HAL_SD_CSDTypedef::CardComdClasses

 

 

Card command classes

 

 

__IO uint8_t HAL_SD_CSDTypedef::RdBlockLen

 

 

Max. read data block length

 

 

__IO uint8_t HAL_SD_CSDTypedef::PartBlockRead

 

 

Partial blocks for read allowed

 

 

__IO uint8_t HAL_SD_CSDTypedef::WrBlockMisalign

 

 

Write block misalignment

 

 

__IO uint8_t HAL_SD_CSDTypedef::RdBlockMisalign

 

 

Read block misalignment

 

 

__IO uint8_t HAL_SD_CSDTypedef::DSRImpl

 

 

DSR implemented

 

 

__IO uint8_t HAL_SD_CSDTypedef::Reserved2

 

 

Reserved

 

 

__IO uint32_t HAL_SD_CSDTypedef::DeviceSize

 

 

Device Size

 

 

__IO uint8_t HAL_SD_CSDTypedef::MaxRdCurrentVDDMin

 

 

Max. read current @ VDD min

 

 

__IO uint8_t HAL_SD_CSDTypedef::MaxRdCurrentVDDMax

 

 

Max. read current @ VDD max

 

 

__IO uint8_t HAL_SD_CSDTypedef::MaxWrCurrentVDDMin

 

 

Max. write current @ VDD min

 

 

__IO uint8_t HAL_SD_CSDTypedef::MaxWrCurrentVDDMax

 

 

Max. write current @ VDD max

 

 

__IO uint8_t HAL_SD_CSDTypedef::DeviceSizeMul

 

 

Device size multiplier

 

 

__IO uint8_t HAL_SD_CSDTypedef::EraseGrSize

 

 

Erase group size

 

 

__IO uint8_t HAL_SD_CSDTypedef::EraseGrMul

 

 

Erase group size multiplier

 

 

__IO uint8_t HAL_SD_CSDTypedef::WrProtectGrSize

 

 

Write protect group size

 

 

__IO uint8_t HAL_SD_CSDTypedef::WrProtectGrEnable

 

 

Write protect group enable

 

 

__IO uint8_t HAL_SD_CSDTypedef::ManDeflECC

 

 

Manufacturer default ECC

 

 

__IO uint8_t HAL_SD_CSDTypedef::WrSpeedFact

 

 

Write speed factor

 

 

__IO uint8_t HAL_SD_CSDTypedef::MaxWrBlockLen

 

 

Max. write data block length

 

 

__IO uint8_t HAL_SD_CSDTypedef::WriteBlockPaPartial

 

 

Partial blocks for write allowed

 

 

__IO uint8_t HAL_SD_CSDTypedef::Reserved3

 

 

Reserved

 

 

__IO uint8_t HAL_SD_CSDTypedef::ContentProtectAppli

 

 

Content protection application

 

 

__IO uint8_t HAL_SD_CSDTypedef::FileFormatGrouop

 

 

File format group

 

698/900

DOCID025834 Rev 2

 

UM1725

HAL SD Generic Driver

 

__IO uint8_t HAL_SD_CSDTypedef::CopyFlag

 

Copy flag (OTP)

 

__IO uint8_t HAL_SD_CSDTypedef::PermWrProtect

 

Permanent write protection

 

__IO uint8_t HAL_SD_CSDTypedef::TempWrProtect

 

Temporary write protection

 

__IO uint8_t HAL_SD_CSDTypedef::FileFormat

 

File format

__IO uint8_t HAL_SD_CSDTypedef::ECC

ECC code

__IO uint8_t HAL_SD_CSDTypedef::CSD_CRC

CSD CRC

__IO uint8_t HAL_SD_CSDTypedef::Reserved4

Always 1

53.1.3HAL_SD_CIDTypedef

Data Fields

__IO uint8_t ManufacturerID

__IO uint16_t OEM_AppliID

__IO uint32_t ProdName1

__IO uint8_t ProdName2

__IO uint8_t ProdRev

__IO uint32_t ProdSN

__IO uint8_t Reserved1

__IO uint16_t ManufactDate

__IO uint8_t CID_CRC

__IO uint8_t Reserved2

Field Documentation

__IO uint8_t HAL_SD_CIDTypedef::ManufacturerID

Manufacturer ID

__IO uint16_t HAL_SD_CIDTypedef::OEM_AppliID

OEM/Application ID

__IO uint32_t HAL_SD_CIDTypedef::ProdName1

Product Name part1

__IO uint8_t HAL_SD_CIDTypedef::ProdName2

Product Name part2

__IO uint8_t HAL_SD_CIDTypedef::ProdRev

Product Revision

__IO uint32_t HAL_SD_CIDTypedef::ProdSN

Product Serial Number

__IO uint8_t HAL_SD_CIDTypedef::Reserved1

Reserved1

__IO uint16_t HAL_SD_CIDTypedef::ManufactDate

Manufacturing Date

__IO uint8_t HAL_SD_CIDTypedef::CID_CRC

CID CRC

DOCID025834 Rev 2

699/900

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]