FSMC_Exported_Functions
[FSMC]

Functions

void FSMC_ClearFlag (uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
 Clears the FSMC’s pending flags.
void FSMC_ClearITPendingBit (uint32_t FSMC_Bank, uint32_t FSMC_IT)
 Clears the FSMC’s interrupt pending bits.
uint32_t FSMC_GetECC (uint32_t FSMC_Bank)
 Returns the error correction code register value.
FlagStatus FSMC_GetFlagStatus (uint32_t FSMC_Bank, uint32_t FSMC_FLAG)
 Checks whether the specified FSMC flag is set or not.
ITStatus FSMC_GetITStatus (uint32_t FSMC_Bank, uint32_t FSMC_IT)
 Checks whether the specified FSMC interrupt has occurred or not.
void FSMC_ITConfig (uint32_t FSMC_Bank, uint32_t FSMC_IT, FunctionalState NewState)
 Enables or disables the specified FSMC interrupts.
void FSMC_NANDCmd (uint32_t FSMC_Bank, FunctionalState NewState)
 Enables or disables the specified NAND Memory Bank.
void FSMC_NANDDeInit (uint32_t FSMC_Bank)
 Deinitializes the FSMC NAND Banks registers to their default reset values.
void FSMC_NANDECCCmd (uint32_t FSMC_Bank, FunctionalState NewState)
 Enables or disables the FSMC NAND ECC feature.
void FSMC_NANDInit (FSMC_NANDInitTypeDef *FSMC_NANDInitStruct)
 Initializes the FSMC NAND Banks according to the specified parameters in the FSMC_NANDInitStruct.
void FSMC_NANDStructInit (FSMC_NANDInitTypeDef *FSMC_NANDInitStruct)
 Fills each FSMC_NANDInitStruct member with its default value.
void FSMC_NORSRAMCmd (uint32_t FSMC_Bank, FunctionalState NewState)
 Enables or disables the specified NOR/SRAM Memory Bank.
void FSMC_NORSRAMDeInit (uint32_t FSMC_Bank)
 Deinitializes the FSMC NOR/SRAM Banks registers to their default reset values.
void FSMC_NORSRAMInit (FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct)
 Initializes the FSMC NOR/SRAM Banks according to the specified parameters in the FSMC_NORSRAMInitStruct.
void FSMC_NORSRAMStructInit (FSMC_NORSRAMInitTypeDef *FSMC_NORSRAMInitStruct)
 Fills each FSMC_NORSRAMInitStruct member with its default value.
void FSMC_PCCARDCmd (FunctionalState NewState)
 Enables or disables the PCCARD Memory Bank.
void FSMC_PCCARDDeInit (void)
 Deinitializes the FSMC PCCARD Bank registers to their default reset values.
void FSMC_PCCARDInit (FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
 Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct.
void FSMC_PCCARDStructInit (FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
 Fills each FSMC_PCCARDInitStruct member with its default value.

Function Documentation

void FSMC_ClearFlag ( uint32_t  FSMC_Bank,
uint32_t  FSMC_FLAG 
)

Clears the FSMC’s pending flags.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_FLAG,: specifies the flag to clear. This parameter can be any combination of the following values:

  • FSMC_FLAG_RisingEdge: Rising egde detection Flag.
  • FSMC_FLAG_Level: Level detection Flag.
  • FSMC_FLAG_FallingEdge: Falling egde detection Flag.
Return values:
None 

Definition at line 744 of file stm32f10x_fsmc.c.

References assert_param, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, FSMC_Bank3_NAND, FSMC_Bank4, IS_FSMC_CLEAR_FLAG, and IS_FSMC_GETFLAG_BANK.

void FSMC_ClearITPendingBit ( uint32_t  FSMC_Bank,
uint32_t  FSMC_IT 
)

Clears the FSMC’s interrupt pending bits.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_IT,: specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:

  • FSMC_IT_RisingEdge: Rising edge detection interrupt.
  • FSMC_IT_Level: Level edge detection interrupt.
  • FSMC_IT_FallingEdge: Falling edge detection interrupt.
Return values:
None 

Definition at line 830 of file stm32f10x_fsmc.c.

References assert_param, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, FSMC_Bank3_NAND, FSMC_Bank4, IS_FSMC_IT, and IS_FSMC_IT_BANK.

uint32_t FSMC_GetECC ( uint32_t  FSMC_Bank  ) 

Returns the error correction code register value.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
Return values:
The Error Correction Code (ECC) value.

Definition at line 600 of file stm32f10x_fsmc.c.

References FSMC_Bank2, FSMC_Bank2_NAND, and FSMC_Bank3.

FlagStatus FSMC_GetFlagStatus ( uint32_t  FSMC_Bank,
uint32_t  FSMC_FLAG 
)

Checks whether the specified FSMC flag is set or not.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_FLAG,: specifies the flag to check. This parameter can be one of the following values:

  • FSMC_FLAG_RisingEdge: Rising egde detection Flag.
  • FSMC_FLAG_Level: Level detection Flag.
  • FSMC_FLAG_FallingEdge: Falling egde detection Flag.
  • FSMC_FLAG_FEMPT: Fifo empty Flag.
Return values:
The new state of FSMC_FLAG (SET or RESET).

Definition at line 694 of file stm32f10x_fsmc.c.

References assert_param, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, FSMC_Bank3_NAND, FSMC_Bank4, IS_FSMC_GET_FLAG, IS_FSMC_GETFLAG_BANK, RESET, and SET.

ITStatus FSMC_GetITStatus ( uint32_t  FSMC_Bank,
uint32_t  FSMC_IT 
)

Checks whether the specified FSMC interrupt has occurred or not.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_IT,: specifies the FSMC interrupt source to check. This parameter can be one of the following values:

  • FSMC_IT_RisingEdge: Rising edge detection interrupt.
  • FSMC_IT_Level: Level edge detection interrupt.
  • FSMC_IT_FallingEdge: Falling edge detection interrupt.
Return values:
The new state of FSMC_IT (SET or RESET).

Definition at line 779 of file stm32f10x_fsmc.c.

References assert_param, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, FSMC_Bank3_NAND, FSMC_Bank4, IS_FSMC_GET_IT, IS_FSMC_IT_BANK, RESET, and SET.

void FSMC_ITConfig ( uint32_t  FSMC_Bank,
uint32_t  FSMC_IT,
FunctionalState  NewState 
)

Enables or disables the specified FSMC interrupts.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
  • FSMC_Bank4_PCCARD: FSMC Bank4 PCCARD
FSMC_IT,: specifies the FSMC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:

  • FSMC_IT_RisingEdge: Rising edge detection interrupt.
  • FSMC_IT_Level: Level edge detection interrupt.
  • FSMC_IT_FallingEdge: Falling edge detection interrupt.
NewState,: new state of the specified FSMC interrupts. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 634 of file stm32f10x_fsmc.c.

References assert_param, DISABLE, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, FSMC_Bank3_NAND, FSMC_Bank4, IS_FSMC_IT, IS_FSMC_IT_BANK, and IS_FUNCTIONAL_STATE.

void FSMC_NANDCmd ( uint32_t  FSMC_Bank,
FunctionalState  NewState 
)

Enables or disables the specified NAND Memory Bank.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
NewState,: new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 498 of file stm32f10x_fsmc.c.

References assert_param, DISABLE, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, IS_FSMC_NAND_BANK, IS_FUNCTIONAL_STATE, PCR_PBKEN_Reset, and PCR_PBKEN_Set.

Referenced by NAND_Init().

void FSMC_NANDDeInit ( uint32_t  FSMC_Bank  ) 

Deinitializes the FSMC NAND Banks registers to their default reset values.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
Return values:
None 

Definition at line 128 of file stm32f10x_fsmc.c.

References assert_param, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, and IS_FSMC_NAND_BANK.

void FSMC_NANDECCCmd ( uint32_t  FSMC_Bank,
FunctionalState  NewState 
)

Enables or disables the FSMC NAND ECC feature.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank2_NAND: FSMC Bank2 NAND
  • FSMC_Bank3_NAND: FSMC Bank3 NAND
NewState,: new state of the FSMC NAND ECC feature. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 561 of file stm32f10x_fsmc.c.

References assert_param, DISABLE, FSMC_Bank2, FSMC_Bank2_NAND, FSMC_Bank3, IS_FSMC_NAND_BANK, IS_FUNCTIONAL_STATE, PCR_ECCEN_Reset, and PCR_ECCEN_Set.

void FSMC_NANDInit ( FSMC_NANDInitTypeDef FSMC_NANDInitStruct  ) 
void FSMC_NANDStructInit ( FSMC_NANDInitTypeDef FSMC_NANDInitStruct  ) 
void FSMC_NORSRAMCmd ( uint32_t  FSMC_Bank,
FunctionalState  NewState 
)

Enables or disables the specified NOR/SRAM Memory Bank.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank1_NORSRAM1: FSMC Bank1 NOR/SRAM1
  • FSMC_Bank1_NORSRAM2: FSMC Bank1 NOR/SRAM2
  • FSMC_Bank1_NORSRAM3: FSMC Bank1 NOR/SRAM3
  • FSMC_Bank1_NORSRAM4: FSMC Bank1 NOR/SRAM4
NewState,: new state of the FSMC_Bank. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 472 of file stm32f10x_fsmc.c.

References assert_param, BCR_MBKEN_Reset, BCR_MBKEN_Set, DISABLE, FSMC_Bank1, IS_FSMC_NORSRAM_BANK, and IS_FUNCTIONAL_STATE.

Referenced by LCD_DeInit(), LCD_FSMCConfig(), NOR_Init(), OneNAND_Init(), and SRAM_Init().

void FSMC_NORSRAMDeInit ( uint32_t  FSMC_Bank  ) 

Deinitializes the FSMC NOR/SRAM Banks registers to their default reset values.

Parameters:
FSMC_Bank,: specifies the FSMC Bank to be used This parameter can be one of the following values:

  • FSMC_Bank1_NORSRAM1: FSMC Bank1 NOR/SRAM1
  • FSMC_Bank1_NORSRAM2: FSMC Bank1 NOR/SRAM2
  • FSMC_Bank1_NORSRAM3: FSMC Bank1 NOR/SRAM3
  • FSMC_Bank1_NORSRAM4: FSMC Bank1 NOR/SRAM4
Return values:
None 

Definition at line 101 of file stm32f10x_fsmc.c.

References assert_param, FSMC_Bank1, FSMC_Bank1_NORSRAM1, FSMC_Bank1E, and IS_FSMC_NORSRAM_BANK.

Referenced by LCD_DeInit().

void FSMC_NORSRAMInit ( FSMC_NORSRAMInitTypeDef FSMC_NORSRAMInitStruct  ) 

Initializes the FSMC NOR/SRAM Banks according to the specified parameters in the FSMC_NORSRAMInitStruct.

Parameters:
FSMC_NORSRAMInitStruct : pointer to a FSMC_NORSRAMInitTypeDef structure that contains the configuration information for the FSMC NOR/SRAM specified Banks.
Return values:
None 

Definition at line 175 of file stm32f10x_fsmc.c.

References assert_param, BCR_FACCEN_Set, FSMC_NORSRAMTimingInitTypeDef::FSMC_AccessMode, FSMC_NORSRAMTimingInitTypeDef::FSMC_AddressHoldTime, FSMC_NORSRAMTimingInitTypeDef::FSMC_AddressSetupTime, FSMC_NORSRAMInitTypeDef::FSMC_AsynchronousWait, FSMC_NORSRAMInitTypeDef::FSMC_Bank, FSMC_Bank1, FSMC_Bank1E, FSMC_NORSRAMInitTypeDef::FSMC_BurstAccessMode, FSMC_NORSRAMTimingInitTypeDef::FSMC_BusTurnAroundDuration, FSMC_NORSRAMTimingInitTypeDef::FSMC_CLKDivision, FSMC_NORSRAMInitTypeDef::FSMC_DataAddressMux, FSMC_NORSRAMTimingInitTypeDef::FSMC_DataLatency, FSMC_NORSRAMTimingInitTypeDef::FSMC_DataSetupTime, FSMC_NORSRAMInitTypeDef::FSMC_ExtendedMode, FSMC_ExtendedMode_Enable, FSMC_NORSRAMInitTypeDef::FSMC_MemoryDataWidth, FSMC_NORSRAMInitTypeDef::FSMC_MemoryType, FSMC_MemoryType_NOR, FSMC_NORSRAMInitTypeDef::FSMC_ReadWriteTimingStruct, FSMC_NORSRAMInitTypeDef::FSMC_WaitSignal, FSMC_NORSRAMInitTypeDef::FSMC_WaitSignalActive, FSMC_NORSRAMInitTypeDef::FSMC_WaitSignalPolarity, FSMC_NORSRAMInitTypeDef::FSMC_WrapMode, FSMC_NORSRAMInitTypeDef::FSMC_WriteBurst, FSMC_NORSRAMInitTypeDef::FSMC_WriteOperation, FSMC_NORSRAMInitTypeDef::FSMC_WriteTimingStruct, IS_FSMC_ACCESS_MODE, IS_FSMC_ADDRESS_HOLD_TIME, IS_FSMC_ADDRESS_SETUP_TIME, IS_FSMC_ASYNWAIT, IS_FSMC_BURSTMODE, IS_FSMC_CLK_DIV, IS_FSMC_DATA_LATENCY, IS_FSMC_DATASETUP_TIME, IS_FSMC_EXTENDED_MODE, IS_FSMC_MEMORY, IS_FSMC_MEMORY_WIDTH, IS_FSMC_MUX, IS_FSMC_NORSRAM_BANK, IS_FSMC_TURNAROUND_TIME, IS_FSMC_WAIT_POLARITY, IS_FSMC_WAIT_SIGNAL_ACTIVE, IS_FSMC_WAITE_SIGNAL, IS_FSMC_WRAP_MODE, IS_FSMC_WRITE_BURST, and IS_FSMC_WRITE_OPERATION.

Referenced by LCD_FSMCConfig(), NOR_Init(), OneNAND_Init(), and SRAM_Init().

void FSMC_NORSRAMStructInit ( FSMC_NORSRAMInitTypeDef FSMC_NORSRAMInitStruct  ) 

Fills each FSMC_NORSRAMInitStruct member with its default value.

Parameters:
FSMC_NORSRAMInitStruct,: pointer to a FSMC_NORSRAMInitTypeDef structure which will be initialized.
Return values:
None 

Definition at line 377 of file stm32f10x_fsmc.c.

References FSMC_NORSRAMTimingInitTypeDef::FSMC_AccessMode, FSMC_AccessMode_A, FSMC_NORSRAMTimingInitTypeDef::FSMC_AddressHoldTime, FSMC_NORSRAMTimingInitTypeDef::FSMC_AddressSetupTime, FSMC_NORSRAMInitTypeDef::FSMC_AsynchronousWait, FSMC_AsynchronousWait_Disable, FSMC_NORSRAMInitTypeDef::FSMC_Bank, FSMC_Bank1_NORSRAM1, FSMC_NORSRAMInitTypeDef::FSMC_BurstAccessMode, FSMC_BurstAccessMode_Disable, FSMC_NORSRAMTimingInitTypeDef::FSMC_BusTurnAroundDuration, FSMC_NORSRAMTimingInitTypeDef::FSMC_CLKDivision, FSMC_NORSRAMInitTypeDef::FSMC_DataAddressMux, FSMC_DataAddressMux_Enable, FSMC_NORSRAMTimingInitTypeDef::FSMC_DataLatency, FSMC_NORSRAMTimingInitTypeDef::FSMC_DataSetupTime, FSMC_NORSRAMInitTypeDef::FSMC_ExtendedMode, FSMC_ExtendedMode_Disable, FSMC_NORSRAMInitTypeDef::FSMC_MemoryDataWidth, FSMC_MemoryDataWidth_8b, FSMC_NORSRAMInitTypeDef::FSMC_MemoryType, FSMC_MemoryType_SRAM, FSMC_NORSRAMInitTypeDef::FSMC_ReadWriteTimingStruct, FSMC_NORSRAMInitTypeDef::FSMC_WaitSignal, FSMC_WaitSignal_Enable, FSMC_NORSRAMInitTypeDef::FSMC_WaitSignalActive, FSMC_WaitSignalActive_BeforeWaitState, FSMC_NORSRAMInitTypeDef::FSMC_WaitSignalPolarity, FSMC_WaitSignalPolarity_Low, FSMC_NORSRAMInitTypeDef::FSMC_WrapMode, FSMC_WrapMode_Disable, FSMC_NORSRAMInitTypeDef::FSMC_WriteBurst, FSMC_WriteBurst_Disable, FSMC_NORSRAMInitTypeDef::FSMC_WriteOperation, FSMC_WriteOperation_Enable, and FSMC_NORSRAMInitTypeDef::FSMC_WriteTimingStruct.

void FSMC_PCCARDCmd ( FunctionalState  NewState  ) 

Enables or disables the PCCARD Memory Bank.

Parameters:
NewState,: new state of the PCCARD Memory Bank. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 535 of file stm32f10x_fsmc.c.

References assert_param, DISABLE, FSMC_Bank4, IS_FUNCTIONAL_STATE, PCR_PBKEN_Reset, and PCR_PBKEN_Set.

void FSMC_PCCARDDeInit ( void   ) 

Deinitializes the FSMC PCCARD Bank registers to their default reset values.

Parameters:
None 
Return values:
None 

Definition at line 157 of file stm32f10x_fsmc.c.

References FSMC_Bank4.

void FSMC_PCCARDInit ( FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStruct  ) 
void FSMC_PCCARDStructInit ( FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStruct  ) 
STM32F10x Standard Peripherals Library: Footer

 

 

 

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