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

UM1725

 

HAL SRAM Generic Driver

 

* pDstBuffer, uint32_t BufferSize)

Function Description

Reads 16-bit buffer from SRAM memory.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM 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

57.2.15HAL_SRAM_Write_16b

Function Name

HAL_StatusTypeDef HAL_SRAM_Write_16b

 

(SRAM_HandleTypeDef * hsram, uint32_t * pAddress, uint16_t

 

* pSrcBuffer, uint32_t BufferSize)

Function Description

Writes 16-bit buffer to SRAM memory.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM 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

57.2.16HAL_SRAM_Read_32b

Function Name

HAL_StatusTypeDef HAL_SRAM_Read_32b

 

(SRAM_HandleTypeDef * hsram, uint32_t * pAddress, uint32_t

 

* pDstBuffer, uint32_t BufferSize)

Function Description

Reads 32-bit buffer from SRAM memory.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM 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

57.2.17HAL_SRAM_Write_32b

Function Name

HAL_StatusTypeDef HAL_SRAM_Write_32b

 

 

(SRAM_HandleTypeDef * hsram, uint32_t * pAddress, uint32_t

 

* pSrcBuffer, uint32_t BufferSize)

 

Function Description

Writes 32-bit buffer to SRAM memory.

 

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM 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

 

 

 

DOCID025834 Rev 2

775/900

HAL SRAM Generic Driver

UM1725

57.2.18HAL_SRAM_Read_DMA

Function Name

HAL_StatusTypeDef HAL_SRAM_Read_DMA

 

(SRAM_HandleTypeDef * hsram, uint32_t * pAddress, uint32_t

 

* pDstBuffer, uint32_t BufferSize)

Function Description

Reads a Words data from the SRAM memory using DMA transfer.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM 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

57.2.19HAL_SRAM_Write_DMA

Function Name

HAL_StatusTypeDef HAL_SRAM_Write_DMA

 

(SRAM_HandleTypeDef * hsram, uint32_t * pAddress, uint32_t

 

* pSrcBuffer, uint32_t BufferSize)

Function Description

Writes a Words data buffer to SRAM memory using DMA transfer.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM 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

57.2.20HAL_SRAM_WriteOperation_Enable

Function Name

HAL_StatusTypeDef HAL_SRAM_WriteOperation_Enable

 

(SRAM_HandleTypeDef * hsram)

Function Description

Enables dynamically SRAM write operation.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM module.

Return values

 

HAL status

57.2.21HAL_SRAM_WriteOperation_Disable

Function Name

HAL_StatusTypeDef HAL_SRAM_WriteOperation_Disable

 

(SRAM_HandleTypeDef * hsram)

Function Description

Disables dynamically SRAM write operation.

Parameters

 

hsram: pointer to a SRAM_HandleTypeDef structure that

 

 

contains the configuration information for SRAM module.

Return values

 

HAL status

57.2.22HAL_SRAM_GetState

Function Name

HAL_SRAM_StateTypeDef HAL_SRAM_GetState

 

(SRAM_HandleTypeDef * hsram)

776/900

DOCID025834 Rev 2

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