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

HAL SDRAM Generic Driver

 

UM1725

 

pAddress: Pointer to read start address

 

pDstBuffer: Pointer to destination buffer

 

 

BufferSize: Size of the buffer to read from memory

Return values

 

HAL status

52.2.15HAL_SDRAM_Write_8b

Function Name

HAL_StatusTypeDef HAL_SDRAM_Write_8b

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

 

uint8_t * pSrcBuffer, uint32_t BufferSize)

Function Description

Writes 8-bit data buffer to SDRAM memory.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to write start address

 

pSrcBuffer: Pointer to source buffer to write

 

BufferSize: Size of the buffer to write to memory

Return values

 

HAL status

52.2.16HAL_SDRAM_Read_16b

Function Name

HAL_StatusTypeDef HAL_SDRAM_Read_16b

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

 

uint16_t * pDstBuffer, uint32_t BufferSize)

Function Description

Reads 16-bit data buffer from the SDRAM memory.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to read start address

 

pDstBuffer: Pointer to destination buffer

 

BufferSize: Size of the buffer to read from memory

Return values

 

HAL status

52.2.17HAL_SDRAM_Write_16b

Function Name

HAL_StatusTypeDef HAL_SDRAM_Write_16b

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

 

uint16_t * pSrcBuffer, uint32_t BufferSize)

Function Description

Writes 16-bit data buffer to SDRAM memory.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to write start address

 

pSrcBuffer: Pointer to source buffer to write

 

BufferSize: Size of the buffer to write to memory

Return values

 

HAL status

52.2.18HAL_SDRAM_Read_32b

Function Name

HAL_StatusTypeDef HAL_SDRAM_Read_32b

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

692/900

DOCID025834 Rev 2

UM1725

 

HAL SDRAM Generic Driver

 

uint32_t * pDstBuffer, uint32_t BufferSize)

Function Description

Reads 32-bit data buffer from the SDRAM memory.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to read start address

 

pDstBuffer: Pointer to destination buffer

 

BufferSize: Size of the buffer to read from memory

Return values

 

HAL status

52.2.19HAL_SDRAM_Write_32b

Function Name

HAL_StatusTypeDef HAL_SDRAM_Write_32b

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

 

uint32_t * pSrcBuffer, uint32_t BufferSize)

Function Description

Writes 32-bit data buffer to SDRAM memory.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to write start address

 

pSrcBuffer: Pointer to source buffer to write

 

BufferSize: Size of the buffer to write to memory

Return values

 

HAL status

52.2.20HAL_SDRAM_Read_DMA

Function Name

HAL_StatusTypeDef HAL_SDRAM_Read_DMA

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

 

uint32_t * pDstBuffer, uint32_t BufferSize)

Function Description

Reads a Words data from the SDRAM memory using DMA

 

transfer.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to read start address

 

pDstBuffer: Pointer to destination buffer

 

BufferSize: Size of the buffer to read from memory

Return values

 

HAL status

52.2.21HAL_SDRAM_Write_DMA

Function Name

HAL_StatusTypeDef HAL_SDRAM_Write_DMA

 

 

(SDRAM_HandleTypeDef * hsdram, uint32_t * pAddress,

 

uint32_t * pSrcBuffer, uint32_t BufferSize)

 

Function Description

Writes a Words data buffer to SDRAM memory using DMA

 

 

transfer.

 

Parameters

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

contains the configuration information for SDRAM module.

 

pAddress: Pointer to write start address

 

 

pSrcBuffer: Pointer to source buffer to write

 

 

BufferSize: Size of the buffer to write to memory

 

 

DOCID025834 Rev 2

693/900

HAL SDRAM Generic Driver

UM1725

Return values

HAL status

52.2.22HAL_SDRAM_WriteProtection_Enable

Function Name

HAL_StatusTypeDef HAL_SDRAM_WriteProtection_Enable

 

(SDRAM_HandleTypeDef * hsdram)

Function Description

Enables dynamically SDRAM write protection.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

Return values

 

HAL status

52.2.23HAL_SDRAM_WriteProtection_Disable

Function Name

HAL_StatusTypeDef HAL_SDRAM_WriteProtection_Disable

 

(SDRAM_HandleTypeDef * hsdram)

Function Description

Disables dynamically SDRAM write protection.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

Return values

 

HAL status

52.2.24HAL_SDRAM_SendCommand

Function Name

HAL_StatusTypeDef HAL_SDRAM_SendCommand

 

(SDRAM_HandleTypeDef * hsdram,

 

FMC_SDRAM_CommandTypeDef * Command, uint32_t

 

Timeout)

Function Description

Sends Command to the SDRAM bank.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

Command: SDRAM command structure

 

 

Timeout: Timeout duration

Return values

 

HAL status

52.2.25HAL_SDRAM_ProgramRefreshRate

Function Name

HAL_StatusTypeDef HAL_SDRAM_ProgramRefreshRate

 

(SDRAM_HandleTypeDef * hsdram, uint32_t RefreshRate)

Function Description

Programs the SDRAM Memory Refresh rate.

Parameters

 

hsdram: pointer to a SDRAM_HandleTypeDef structure that

 

 

contains the configuration information for SDRAM module.

 

RefreshRate: The SDRAM refresh rate value

Return values

 

HAL status

52.2.26HAL_SDRAM_SetAutoRefreshNumber

Function Name

HAL_StatusTypeDef HAL_SDRAM_SetAutoRefreshNumber

 

(SDRAM_HandleTypeDef * hsdram, uint32_t

 

AutoRefreshNumber)

694/900

DOCID025834 Rev 2

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