STM32100E_EVAL_FSMC_SRAM_Private_Functions
[STM32100E_EVAL_FSMC_SRAM]

Functions

void SRAM_Init (void)
 Configures the FSMC and GPIOs to interface with the SRAM memory.
void SRAM_ReadBuffer (uint16_t *pBuffer, uint32_t ReadAddr, uint32_t NumHalfwordToRead)
 Reads a block of data from the FSMC SRAM memory.
void SRAM_WriteBuffer (uint16_t *pBuffer, uint32_t WriteAddr, uint32_t NumHalfwordToWrite)
 Writes a Half-word buffer to the FSMC SRAM memory.

Function Documentation

void SRAM_Init ( void   ) 

Configures the FSMC and GPIOs to interface with the SRAM memory.

This function must be called before any write/read operation on the SRAM.

Parameters:
None 
Return values:
None 

< SRAM Data lines configuration

< SRAM Address lines configuration

< NOE and NWE configuration

< NE3 configuration

< NBL0, NBL1 configuration

< Enable FSMC Bank1_SRAM Bank

Definition at line 98 of file stm32100e_eval_fsmc_sram.c.

Referenced by main().

void SRAM_ReadBuffer ( uint16_t *  pBuffer,
uint32_t  ReadAddr,
uint32_t  NumHalfwordToRead 
)

Reads a block of data from the FSMC SRAM memory.

Parameters:
pBuffer : pointer to the buffer that receives the data read from the SRAM memory.
ReadAddr : SRAM memory internal address to read from.
NumHalfwordToRead : number of half-words to read.
Return values:
None 

< while there is data to read

< Read a half-word from the memory

< Increment the address

Definition at line 204 of file stm32100e_eval_fsmc_sram.c.

Referenced by main().

void SRAM_WriteBuffer ( uint16_t *  pBuffer,
uint32_t  WriteAddr,
uint32_t  NumHalfwordToWrite 
)

Writes a Half-word buffer to the FSMC SRAM memory.

Parameters:
pBuffer : pointer to buffer.
WriteAddr : SRAM memory internal address from which the data will be written.
NumHalfwordToWrite : number of half-words to write.
Return values:
None 

< while there is data to write

< Transfer data to the memory

< Increment the address

Definition at line 184 of file stm32100e_eval_fsmc_sram.c.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32