| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions
BlueNRG1_flash.h File Reference

This file contains all the functions prototypes for the FLASH firmware library. More...

`#include "BlueNRG1.h"`

Go to the source code of this file.

## Macros

#define | Flash_CMDDONE 0x01 /* Flash command done */
| Flash status enumeration. More...
#define | Flash_CMDSTART 0x02 /* Flash command start */
#define | Flash_CMDERR 0x04 /* Flash command error */
#define | Flash_ILLCMD 0x08 /* Flash illegal command written */
#define | Flash_READOK 0x10 /* Flash mass read was OK */
#define | Flash_FLNREADY 0x20 /* Flash not ready (sleep) */
#define | IS_FLASH_FLAG(FLAG)
#define | FLASH_START (_MEMORY_FLASH_BEGIN_)
#define | FLASH_END (_MEMORY_FLASH_END_)
#define | IS_FLASH_ADDRESS(ADDR) ( ((ADDR) >= FLASH_START) && ((ADDR) <= FLASH_END) )
#define | N_PAGES 80
#define | N_ROWS 8
#define | N_WORDS_ROW 64
#define | N_WORDS_PAGE 512
#define | N_BYTES_WORD 4
#define | N_BYTES_PAGE 2048
#define | IS_PAGE_NUMBER(PAGE) ( (PAGE)<N_PAGES )
#define | IS_ROW_NUMBER(ROW) ( (ROW)<N_ROWS )
#define | IS_WORD_NUMBER(WORD) ( (WORD)<N_WORDS_PAGE )
#define | FLASH_REMAP_RAM 0x02
#define | FLASH_PREMAP_MAIN 0x08
#define | FLASH_ERASE 0x11
#define | FLASH_MASSERASE 0x22
#define | FLASH_WRITE 0x33
#define | FLASH_MASSWRITE 0x44
#define | FLASH_MASSREAD 0x55
#define | FLASH_SLEEP 0xAA
#define | FLASH_WAKEUP 0xBB
#define | FLASH_BURSTWRITE 0xCC
#define | IS_FLASH_CMD(CMD)

## Functions

void | FLASH_ErasePage (uint16_t PageNumber)
| Erases a specified flash page. More...
void | FLASH_EraseAllFlash (void)
| Erases all main Flash. More...
uint32_t | FLASH_ReadWord (uint32_t Address)
| Flash read 32 bits. More...
void | FLASH_ProgramWord (uint32_t Address, uint32_t Data)
| Flash write 32 bits. More...
void | FLASH_ProgramWordBurst (uint32_t Address, uint32_t *Data)
| Flash write 32 bits. More...
void | FLASH_WaitCmdDone (void)
| Wait loop for CMDDONE status. More...
uint16_t | FLASH_NextFreeFlashAddress (void)
| Wait loop for CMDDONE status. More...
void | FLASH_ITConfig (uint8_t FlashFlag, FunctionalState NewState)
| Enables or disables the specified flash interrupts. More...
void | FLASH_ClearITPendingBit (uint8_t FlashFlag)
| Clears the specific flash pending IT bit. More...
FlagStatus | FLASH_GetFlagStatus (uint8_t FlashFlag)
| Checks whether the specified FLASH raw flag is set or not. More...
void | FLASH_ClearFlag (uint8_t FlashFlag)
| Clears the specific flash pending flags. More...

## Detailed Description

This file contains all the functions prototypes for the FLASH firmware library.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2016 STMicroelectronics

Definition in file BlueNRG1_flash.h.