CC23x0R5DriverLibrary
flash.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "../inc/hw_types.h"
#include "../inc/hw_flash.h"
#include "../inc/hw_memmap.h"
#include "../inc/hw_ints.h"
#include "../inc/hw_vims.h"
#include "hapi.h"
#include "chipinfo.h"
#include "interrupt.h"
#include "debug.h"
Include dependency graph for flash.h:

Go to the source code of this file.

Macros

#define FAPI_STATUS_SUCCESS   0x00000000
 Function completed successfully. More...
 
#define FAPI_STATUS_FSM_BUSY   0x00000001
 FSM is Busy. More...
 
#define FAPI_STATUS_FSM_READY   0x00000002
 FSM is Ready. More...
 
#define FAPI_STATUS_INCORRECT_DATABUFFER_LENGTH   0x00000003
 Incorrect parameter value. More...
 
#define FAPI_STATUS_FSM_ERROR   0x00000004
 Flash program/erase operation failed. More...
 
#define FAPI_STATUS_ADDRESS_ERROR   0x00000005
 Address range or alignment error. More...
 
#define FAPI_STATUS_INVALID_KEY   0x00000010
 Invalid random jump protection key. More...
 

Functions

__STATIC_INLINE uint32_t FlashGetSectorSize (void)
 Get size of a flash sector in number of bytes. More...
 
__STATIC_INLINE uint32_t FlashGetSize (void)
 Get the size of the flash. More...
 
__STATIC_INLINE uint32_t FlashCheckFsmForError (void)
 Checks if the Flash state machine has detected an error. More...
 
__STATIC_INLINE uint32_t FlashCheckFsmForReady (void)
 Checks if the Flash state machine is ready. More...
 
__STATIC_INLINE uint32_t FlashEraseSector (uint32_t sectorAddress)
 Erase a flash sector. More...
 
__STATIC_INLINE uint32_t FlashEraseBank (void)
 
__STATIC_INLINE uint32_t FlashProgram (uint8_t *dataBuffer, uint32_t address, uint32_t count)
 Programs unprotected flash sectors in the main bank. More...