WB32F10x Standard Peripherals Firmware Library

Modules | Macros | Functions
FMC
WB32F10x_StdPeriph_Driver

FMC driver modules. More...

## Modules
| FMC_Private_Defines
| FMC_Private_Functions

## Macros
#define | PRE_OP() ((void(*)(void))((unsigned int)(pre_op_code) | 0x01))()

## Functions
uint32_t | FMC_ClearPageLatch (void)
| Clear page latches. More...
uint32_t | FMC_ErasePage (uint32_t Page_Address)
| Erase a specified FLASH page. More...
uint32_t | FMC_EraseSector (uint32_t Sector_Address)
| Erase a specified FLASH sector. More...
uint32_t | FMC_EraseBulk (void)
| Erase main flash memory. More...
uint32_t | FMC_ProgramPage (uint32_t Page_Address)
| Programs the data to the specified page address. More...

## Detailed Description

FMC driver modules.

## Function Documentation

## ◆ FMC_ClearPageLatch()

uint32_t FMC_ClearPageLatch | ( | void |  | ) |

Clear page latches.

Returns
  0 - OK, 1 - Failed

Note
  Before calling this function, FHSI must be enabled.

## ◆ FMC_EraseBulk()

uint32_t FMC_EraseBulk | ( | void |  | ) |

Erase main flash memory.

Returns
  0 - OK, 1 - Failed

Note
  Before calling this function, FHSI must be enabled.

## ◆ FMC_ErasePage()

uint32_t FMC_ErasePage | ( | uint32_t | Page_Address | ) |

Erase a specified FLASH page.

Parameters

  Page_Address | The page address to be erased.

Returns
  0 - OK, 1 - Failed

Note
  Before calling this function, FHSI must be enabled.

## ◆ FMC_EraseSector()

uint32_t FMC_EraseSector | ( | uint32_t | Sector_Address | ) |

Erase a specified FLASH sector.

Parameters

  Sector_Address | The sector address to be erased.

Returns
  0 - OK, 1 - Failed

Note
  Before calling this function, FHSI must be enabled.

## ◆ FMC_ProgramPage()

uint32_t FMC_ProgramPage | ( | uint32_t | Page_Address | ) |

Programs the data to the specified page address.

Parameters

  Page_Address | The page address to be programmed.

Returns
  0 - OK, 1 - Failed

Note
  Before calling this function, FHSI must be enabled.