STM32L4R9I-Discovery BSP User Manual: Exported Functions

STM32L4R9I-Discovery BSP

STM32L4R9I-Discovery BSP User Manual
Exported Functions

Functions

uint8_t BSP_PSRAM_Init (void)
 Initializes the PSRAM device.
uint8_t BSP_PSRAM_DeInit (void)
 DeInitializes the PSRAM device.
uint8_t BSP_PSRAM_ReadData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Reads an amount of data from the PSRAM device in polling mode.
uint8_t BSP_PSRAM_ReadData_DMA (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Reads an amount of data from the PSRAM device in DMA mode.
uint8_t BSP_PSRAM_WriteData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Writes an amount of data from the PSRAM device in polling mode.
uint8_t BSP_PSRAM_WriteData_DMA (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Writes an amount of data from the PSRAM device in DMA mode.
void BSP_PSRAM_MspInit (SRAM_HandleTypeDef *hsram, void *Params)
 Initializes PSRAM MSP.
void BSP_PSRAM_MspDeInit (SRAM_HandleTypeDef *hsram, void *Params)
 DeInitializes SRAM MSP.

Function Documentation

uint8_t BSP_PSRAM_DeInit ( void  )

DeInitializes the PSRAM device.

Return values:
PSRAMstatus

Definition at line 175 of file stm32l4r9i_discovery_psram.c.

References bsp_psram_initialized, BSP_PSRAM_MspDeInit(), PSRAM_ERROR, PSRAM_OK, PSRAM_PowerOff(), and psramHandle.

uint8_t BSP_PSRAM_Init ( void  )

Initializes the PSRAM device.

Return values:
PSRAMstatus

Definition at line 112 of file stm32l4r9i_discovery_psram.c.

References bsp_psram_initialized, BSP_PSRAM_MspInit(), PSRAM_ERROR, PSRAM_OK, PSRAM_PowerOn(), and psramHandle.

void BSP_PSRAM_MspDeInit ( SRAM_HandleTypeDef *  hsram,
void *  Params 
)

DeInitializes SRAM MSP.

Parameters:
hsram,:SRAM handle
Params
Return values:
None

Definition at line 414 of file stm32l4r9i_discovery_psram.c.

References PSRAM_DMAx_INSTANCE, and PSRAM_DMAx_IRQn.

Referenced by BSP_PSRAM_DeInit().

void BSP_PSRAM_MspInit ( SRAM_HandleTypeDef *  hsram,
void *  Params 
)

Initializes PSRAM MSP.

Parameters:
hsram,:PSRAM handle
Params
Return values:
None

Definition at line 288 of file stm32l4r9i_discovery_psram.c.

References __PSRAM_DMAx_CLK_ENABLE, PSRAM_DMAx_INSTANCE, and PSRAM_DMAx_IRQn.

Referenced by BSP_PSRAM_Init().

uint8_t BSP_PSRAM_ReadData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Reads an amount of data from the PSRAM device in polling mode.

Parameters:
uwStartAddress,:Read start address
pData,:Pointer to data to be read
uwDataSize,:Size of read data from the memory
Return values:
PSRAMstatus

Definition at line 213 of file stm32l4r9i_discovery_psram.c.

References PSRAM_ERROR, PSRAM_OK, and psramHandle.

uint8_t BSP_PSRAM_ReadData_DMA ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Reads an amount of data from the PSRAM device in DMA mode.

Parameters:
uwStartAddress,:Read start address
pData,:Pointer to data to be read
uwDataSize,:Size of read data from the memory
Return values:
PSRAMstatus

Definition at line 232 of file stm32l4r9i_discovery_psram.c.

References PSRAM_ERROR, PSRAM_OK, and psramHandle.

uint8_t BSP_PSRAM_WriteData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Writes an amount of data from the PSRAM device in polling mode.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of written data from the memory
Return values:
PSRAMstatus

Definition at line 251 of file stm32l4r9i_discovery_psram.c.

References PSRAM_ERROR, PSRAM_OK, and psramHandle.

uint8_t BSP_PSRAM_WriteData_DMA ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Writes an amount of data from the PSRAM device in DMA mode.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of written data from the memory
Return values:
PSRAMstatus

Definition at line 270 of file stm32l4r9i_discovery_psram.c.

References PSRAM_ERROR, PSRAM_OK, and psramHandle.

Generated on Fri Oct 13 2017 02:37:42 for STM32L4R9I-Discovery BSP User Manual by   doxygen 1.7.6.1