MSPM0C110X Driver Library  2.05.00.05
Macros | Enumerations | Functions
dl_flashctl.h File Reference

Detailed Description

Flash Controller Driver Library.


#include <stdbool.h>
#include <stdint.h>
#include <ti/devices/msp/msp.h>
#include <ti/driverlib/dl_common.h>
#include <ti/driverlib/m0p/dl_factoryregion.h>
#include <ti/driverlib/m0p/dl_sysctl.h>
Include dependency graph for dl_flashctl.h:

Go to the source code of this file.

Macros

#define FLASHCTL_BANK0_ADDRESS   (0x00000000)
 Address for Bank 0.
 
#define FLASHCTL_MAIN_ADDRESS   (0x00000000)
 Address for MAIN memory region.
 
#define FLASHCTL_NONMAIN_ADDRESS   (0x41c00000)
 Address for NONMAIN memory region.
 
#define NUMBER_OF_NONMAIN_SECTORS   (1)
 Number of NONMAIN sectors.
 
#define FLASHCTL_DATA_ADDRESS   (0x41d00000)
 Address for DATA memory region.
 
#define DL_FLASHCTL_PROGRAM_8_WITHOUT_ECC   (0x00000001)
 Enable programming 8 bits without ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_16_WITHOUT_ECC   (0x00000003)
 Enable programming 16 bits without ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_32_WITHOUT_ECC   (0x0000000F)
 Enable programming 32 bits without ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_64_WITHOUT_ECC   (0x000000FF)
 Enable programming 64 bits without ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_8_WITH_ECC   (0x00000101)
 Enable programming 8 bits with ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_16_WITH_ECC   (0x00000103)
 Enable programming 16 bits with ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_32_WITH_ECC   (0x0000010F)
 Enable programming 32 bits with ECC enabled.
 
#define DL_FLASHCTL_PROGRAM_64_WITH_ECC   (0x000001FF)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_8_WITHOUT_ECC   (0x00000001)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_16_WITHOUT_ECC   (0x00000003)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_32_WITHOUT_ECC   (0x0000000F)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_64_WITHOUT_ECC   (0x000000FF)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_8_WITH_ECC   (0x00000101)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_16_WITH_ECC   (0x00000103)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_32_WITH_ECC   (0x0000010F)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_READ_VERIFY_64_WITH_ECC   (0x000001FF)
 Enable programming 64 bits with ECC enabled.
 
#define DL_FLASHCTL_INTERRUPT_DONE   (FLASHCTL_MIS_DONE_SET)
 Flash Command execution has completed.
 
#define DL_FLASHCTL_COMMAND_TYPE_NO_OPERATION   (FLASHCTL_CMDTYPE_COMMAND_NOOP)
 No Operation Flash Command.
 
#define DL_FLASHCTL_COMMAND_TYPE_PROGRAM   (FLASHCTL_CMDTYPE_COMMAND_PROGRAM)
 Program Command Type.
 
#define DL_FLASHCTL_COMMAND_TYPE_ERASE   (FLASHCTL_CMDTYPE_COMMAND_ERASE)
 Erase Command Type.
 
#define DL_FLASHCTL_COMMAND_TYPE_READ_VERIFY   (FLASHCTL_CMDTYPE_COMMAND_READVERIFY)
 Read-Verify Command Type.
 
#define DL_FLASHCTL_COMMAND_TYPE_BLANK_VERIFY   (FLASHCTL_CMDTYPE_COMMAND_BLANKVERIFY)
 Blank Verify Command Type.
 
#define DL_FLASHCTL_COMMAND_TYPE_MODE_CHANGE   (FLASHCTL_CMDTYPE_COMMAND_MODECHANGE)
 Mode Change Command Type.
 
#define DL_FLASHCTL_COMMAND_TYPE_CLEAR_STATUS   (FLASHCTL_CMDTYPE_COMMAND_CLEARSTATUS)
 Clear Status Command Type.
 
#define DL_FLASHCTL_SECTOR_SIZE   (1024)
 Size of one flash sector.
 

Enumerations

enum  DL_FLASHCTL_COMMAND_SIZE {
  DL_FLASHCTL_COMMAND_SIZE_ONE_WORD = FLASHCTL_CMDTYPE_SIZE_ONEWORD,
  DL_FLASHCTL_COMMAND_SIZE_TWO_WORDS = FLASHCTL_CMDTYPE_SIZE_TWOWORD,
  DL_FLASHCTL_COMMAND_SIZE_FOUR_WORDS = FLASHCTL_CMDTYPE_SIZE_FOURWORD,
  DL_FLASHCTL_COMMAND_SIZE_EIGHT_WORDS = FLASHCTL_CMDTYPE_SIZE_EIGHTWORD,
  DL_FLASHCTL_COMMAND_SIZE_SECTOR = FLASHCTL_CMDTYPE_SIZE_SECTOR,
  DL_FLASHCTL_COMMAND_SIZE_BANK = FLASHCTL_CMDTYPE_SIZE_BANK
}
 
enum  DL_FLASHCTL_REGION_SELECT {
  DL_FLASHCTL_REGION_SELECT_MAIN = FLASHCTL_CMDCTL_REGIONSEL_MAIN,
  DL_FLASHCTL_REGION_SELECT_NONMAIN = FLASHCTL_CMDCTL_REGIONSEL_NONMAIN
}
 
enum  DL_FLASHCTL_BANK_SELECT {
  DL_FLASHCTL_BANK_SELECT_0 = FLASHCTL_CMDCTL_BANKSEL_BANK0,
  DL_FLASHCTL_BANK_SELECT_1 = FLASHCTL_CMDCTL_BANKSEL_BANK1,
  DL_FLASHCTL_BANK_SELECT_2 = FLASHCTL_CMDCTL_BANKSEL_BANK2,
  DL_FLASHCTL_BANK_SELECT_3 = FLASHCTL_CMDCTL_BANKSEL_BANK3,
  DL_FLASHCTL_BANK_SELECT_4 = FLASHCTL_CMDCTL_BANKSEL_BANK4
}
 
enum  DL_FLASHCTL_FAIL_TYPE {
  DL_FLASHCTL_FAIL_TYPE_NO_FAILURE = 0x0,
  DL_FLASHCTL_FAIL_TYPE_WRITE_ERASE_PROTECT,
  DL_FLASHCTL_FAIL_TYPE_VERIFY_ERROR = FLASHCTL_STATCMD_FAILVERIFY_STATFAIL,
  DL_FLASHCTL_FAIL_TYPE_ILLEGAL_ADDRESS,
  DL_FLASHCTL_FAIL_TYPE_WRONG_BANK_MODE = FLASHCTL_STATCMD_FAILMODE_STATFAIL,
  DL_FLASHCTL_FAIL_TYPE_MISCELLANEOUS = FLASHCTL_STATCMD_FAILMISC_STATFAIL
}
 
enum  DL_FLASHCTL_COMMAND_STATUS {
  DL_FLASHCTL_COMMAND_STATUS_PASSED,
  DL_FLASHCTL_COMMAND_STATUS_FAILED,
  DL_FLASHCTL_COMMAND_STATUS_IN_PROGRESS
}
 
enum  DL_FLASHCTL_IIDX { DL_FLASHCTL_IIDX_DONE = FLASHCTL_IIDX_STAT_DONE }
 

Functions

__STATIC_INLINE void DL_FlashCTL_enableInterrupt (FLASHCTL_Regs *flashctl)
 Enable flash interrupt. More...
 
__STATIC_INLINE void DL_FlashCTL_disableInterrupt (FLASHCTL_Regs *flashctl)
 Disable flash interrupt. More...
 
__STATIC_INLINE bool DL_FlashCTL_isInterruptEnabled (const FLASHCTL_Regs *flashctl)
 Check if the flash interrupt is enabled. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getEnabledInterruptStatus (const FLASHCTL_Regs *flashctl)
 Check interrupt flag of enabled flash interrupt. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getRawInterruptStatus (const FLASHCTL_Regs *flashctl)
 Check interrupt flag of the flash interrupt. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getPendingInterrupt (const FLASHCTL_Regs *flashctl)
 Get highest priority pending flash interrupt. More...
 
__STATIC_INLINE void DL_FlashCTL_clearInterruptStatus (FLASHCTL_Regs *flashctl)
 Clear pending flash interrupt. More...
 
__STATIC_INLINE bool DL_FlashCTL_isCommandExecuted (const FLASHCTL_Regs *flashctl)
 Checks if a command execution has been initiated. More...
 
__STATIC_INLINE void DL_FlashCTL_setCommandExecute (FLASHCTL_Regs *flashctl)
 Initiates a command execution. More...
 
__STATIC_INLINE void DL_FlashCTL_disbleStairStepErase (FLASHCTL_Regs *flashctl)
 Disable Stair-Step Erase. More...
 
__STATIC_INLINE bool DL_FlashCTL_isStairStepEraseDisabled (const FLASHCTL_Regs *flashctl)
 Checks if stair-step erase is disabled. More...
 
__STATIC_INLINE void DL_FlashCTL_enableStairStepErase (FLASHCTL_Regs *flashctl)
 Enable Stair-Step Erase. More...
 
__STATIC_INLINE void DL_FlashCTL_enableAddressOverrideMode (FLASHCTL_Regs *flashctl)
 Enable address override mode. More...
 
__STATIC_INLINE bool DL_FlashCTL_isAddressOverrideModeEnabled (const FLASHCTL_Regs *flashctl)
 Checks if address override mode is enabled. More...
 
__STATIC_INLINE void DL_FlashCTL_disableAddressOverrideMode (FLASHCTL_Regs *flashctl)
 Disable address override mode. More...
 
__STATIC_INLINE void DL_FlashCTL_enableOverrideHardwareGeneratedECC (FLASHCTL_Regs *flashctl)
 Enable overriding hardware generation of ECC code. More...
 
__STATIC_INLINE bool DL_FlashCTL_isOverrideHardwareGeneratedECCEnabled (const FLASHCTL_Regs *flashctl)
 Checks if overriding hardware generation of ECC code is enabled. More...
 
__STATIC_INLINE void DL_FlashCTL_disableOverrideHardwareGeneratedECC (FLASHCTL_Regs *flashctl)
 Disable overriding hardware generation of ECC code. More...
 
__STATIC_INLINE void DL_FlashCTL_setRegionSelect (FLASHCTL_Regs *flashctl, DL_FLASHCTL_REGION_SELECT region)
 Set the region select. More...
 
__STATIC_INLINE DL_FLASHCTL_REGION_SELECT DL_FlashCTL_getRegionSelect (const FLASHCTL_Regs *flashctl)
 Get the region select. More...
 
__STATIC_INLINE void DL_FlashCTL_setBankSelect (FLASHCTL_Regs *flashctl, DL_FLASHCTL_BANK_SELECT bank)
 Set the bank select. More...
 
__STATIC_INLINE DL_FLASHCTL_BANK_SELECT DL_FlashCTL_getBankSelect (const FLASHCTL_Regs *flashctl)
 Get the bank select. More...
 
__STATIC_INLINE void DL_FlashCTL_setCommandByteEnable (FLASHCTL_Regs *flashctl, uint32_t byteMask)
 Set the bytes to enable for programming data. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getCommandByteEnable (const FLASHCTL_Regs *flashctl)
 Get the bytes that are enabled for programming data. More...
 
__STATIC_INLINE void DL_FlashCTL_setCommandData (FLASHCTL_Regs *flashctl, uint8_t index, const uint32_t *data)
 Set the data for a command data register. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getCommandData (FLASHCTL_Regs *flashctl, uint8_t index)
 Get the data from a command data register. More...
 
__STATIC_INLINE void DL_FlashCTL_setCommandDataECC (FLASHCTL_Regs *flashctl, uint8_t index, const uint8_t *data)
 Set the ECC code in the command data ECC register. More...
 
__STATIC_INLINE uint8_t DL_FlashCTL_getCommandDataECC (FLASHCTL_Regs *flashctl, uint8_t index)
 Get the ECC code in the command data ECC register. More...
 
__STATIC_INLINE void DL_FlashCTL_setCommandAddress (FLASHCTL_Regs *flashctl, uint32_t address)
 Sets the target address for a command. More...
 
__STATIC_INLINE DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_getCommandStatus (const FLASHCTL_Regs *flashctl)
 Returns the status of the current command. More...
 
__STATIC_INLINE DL_FLASHCTL_FAIL_TYPE DL_FlashCTL_getFailureStatus (const FLASHCTL_Regs *flashctl)
 Returns the reason a command failed. More...
 
__STATIC_INLINE bool DL_FlashCTL_waitForCmdDone (const FLASHCTL_Regs *flashctl)
 Blocking function that waits for a command execution to finish. More...
 
__STATIC_INLINE void DL_FlashCTL_executeClearStatus (FLASHCTL_Regs *flashctl)
 Sets clear status bit and executes command. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getFlashSectorNumber (FLASHCTL_Regs *flashctl, uint32_t addr)
 Gets the sector number of the input address over the whole memory map. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getFlashSectorNumberInBank (FLASHCTL_Regs *flashctl, uint32_t addr)
 Gets the sector number of the input address relative to the bank of the address. More...
 
__STATIC_INLINE void DL_FlashCTL_setWaitState (FLASHCTL_Regs *flashctl, uint32_t waitState)
 Set the number of wait states used by the Flash. More...
 
__STATIC_INLINE uint32_t DL_FlashCTL_getWaitState (const FLASHCTL_Regs *flashctl)
 Get the number of wait states used by the Flash. More...
 
void DL_FlashCTL_eraseMemory (FLASHCTL_Regs *flashctl, uint32_t address, DL_FLASHCTL_COMMAND_SIZE memorySize)
 Performs an erase on unprotected memory. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_eraseMemoryFromRAM (FLASHCTL_Regs *flashctl, uint32_t address, DL_FLASHCTL_COMMAND_SIZE memorySize)
 Performs an erase on unprotected memory, and executes command from RAM. More...
 
bool DL_FlashCTL_massErase (FLASHCTL_Regs *flashctl)
 Performs a mass erase on main memory on one bank. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_massEraseFromRAM (FLASHCTL_Regs *flashctl)
 Performs a mass erase on main memory, and executes command from RAM. More...
 
bool DL_FlashCTL_massEraseMultiBank (FLASHCTL_Regs *flashctl)
 Performs a mass erase on main memory, and erases all flash banks. More...
 
bool DL_FlashCTL_factoryReset (FLASHCTL_Regs *flashctl)
 Performs a factory reset erase on main and non-main memory. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_factoryResetFromRAM (FLASHCTL_Regs *flashctl)
 Performs a factory reset erase on main and non-main memory, and executes command from RAM. More...
 
bool DL_FlashCTL_factoryResetMultiBank (FLASHCTL_Regs *flashctl)
 Performs a factory reset erase on main and non-main memory. More...
 
void DL_FlashCTL_programMemory8 (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Programs 8 bit data to unprotected memory at the given address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM8 (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Programs 8 bit data to unprotected memory at the given address, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory16 (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Programs 16 bit data to unprotected memory at the given address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM16 (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Programs 16 bit data to unprotected memory at the given address, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory32 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 32 bit data to unprotected memory at the given address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM32 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 32 bit data to unprotected memory at the given address, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory64 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 64 bit data to unprotected memory at the given address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM64 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 64 bit data to unprotected memory at the given address, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory8WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Programs 8 bit data with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM8WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Programs 8 bit data with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory16WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Programs 16 bit data with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM16WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Programs 16 bit data with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory32WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 32 bit data with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM32WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 32 bit data with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory64WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 64 bit data with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM64WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 64 bit data with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory8WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data, const uint8_t *eccCode)
 Programs 8 bit data with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM8WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data, const uint8_t *eccCode)
 Programs 8 bit data with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory16WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data, const uint8_t *eccCode)
 Programs 16 bit data with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM16WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data, const uint8_t *eccCode)
 Programs 16 bit data with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory32WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Programs 32 bit data with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM32WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Programs 32 bit data with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory64WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Programs 64 bit data with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM64WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Programs 64 bit data with user provided ECC code, and executes command from RAM. More...
 
bool DL_FlashCTL_programMemoryBlocking64WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlockingFromRAM64WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data with hardware generated ECC code, and executes command from RAM. More...
 
bool DL_FlashCTL_programMemoryBlocking64WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint8_t *eccCode, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlockingFromRAM64WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint8_t *eccCode, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data with user provided ECC code, and executes command from RAM. More...
 
bool DL_FlashCTL_programMemoryBlocking (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data to unprotected memory at a given address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryFromRAM (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data to unprotected memory at a given address, and executes command from RAM. More...
 
void DL_FlashCTL_unprotectMainMemory (FLASHCTL_Regs *flashctl)
 Unprotects all main memory from erase/program. More...
 
void DL_FlashCTL_unprotectDataMemory (FLASHCTL_Regs *flashctl)
 Unprotects all data memory from erase/program. More...
 
void DL_FlashCTL_protectMainMemory (FLASHCTL_Regs *flashctl)
 Protects all main memory from erase/program. More...
 
void DL_FlashCTL_unprotectNonMainMemory (FLASHCTL_Regs *flashctl)
 Unprotects all non-main memory from erase/program. More...
 
void DL_FlashCTL_protectNonMainMemory (FLASHCTL_Regs *flashctl)
 Protects all non-main memory from erase/program. More...
 
void DL_FlashCTL_unprotectAllMemory (FLASHCTL_Regs *flashctl)
 Unprotects all user memory from erase/program. More...
 
void DL_FlashCTL_protectAllMemory (FLASHCTL_Regs *flashctl)
 Protects all user memory from erase/program. More...
 
void DL_FlashCTL_unprotectSector (FLASHCTL_Regs *flashctl, uint32_t addr, DL_FLASHCTL_REGION_SELECT regionSelect)
 Sets a given sector to unprotected from erase/program. More...
 
void DL_FlashCTL_protectSector (FLASHCTL_Regs *flashctl, uint32_t addr, DL_FLASHCTL_REGION_SELECT regionSelect)
 Sets a given sector to protected from erase/program. More...
 
void DL_FlashCTL_readVerify8 (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Verifies 8-bit data in specified address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM8 (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Verifies 8-bit data in specified address, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify16 (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Verifies 16-bit data in specified address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM16 (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Verifies 16-bit data in specified address, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify32 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 32-bit data in specified address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM32 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 32-bit data in specified address, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify64 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 64-bit data in specified address. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM64 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 64-bit data in specified address, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify8WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Verifies 8-bit data in specified address with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM8WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data)
 Verifies 8-bit data in specified address with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify16WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Verifies 16-bit data in specified address with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM16WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data)
 Verifies 16-bit data in specified address with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify32WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 32-bit data in specified address with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM32WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 32-bit data in specified address with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify64WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 64-bit data in specified address with hardware generated ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM64WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Verifies 32-bit data in specified address with hardware generated ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify8WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data, const uint8_t *eccCode)
 Verifies 8-bit data in specified address with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM8WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint8_t *data, const uint8_t *eccCode)
 Verifies 8-bit data in specified address with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify16WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data, const uint8_t *eccCode)
 Verifies 16-bit data in specified address with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM16WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint16_t *data, const uint8_t *eccCode)
 Verifies 16-bit data in specified address with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify32WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Verifies 32-bit data in specified address with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM32WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Verifies 32-bit data in specified address with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_readVerify64WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Verifies 64-bit data in specified address with user provided ECC code. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM64WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Verifies 64-bit data in specified address with user provided ECC code, and executes command from RAM. More...
 
void DL_FlashCTL_blankVerify (FLASHCTL_Regs *flashctl, uint32_t address)
 Verifies that a flash word is blank. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_blankVerifyFromRAM (FLASHCTL_Regs *flashctl, uint32_t address)
 Verifies that a flash word is blank, and executes command from RAM. More...
 
void DL_FlashCTL_programMemory128 (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 128 bit data to unprotected memory at the given address. More...
 
void DL_FlashCTL_programMemory128WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data)
 Programs 128 bit data with hardware generated ECC code. More...
 
void DL_FlashCTL_programMemory128WithECCManual (FLASHCTL_Regs *flashctl, uint32_t address, const uint32_t *data, const uint8_t *eccCode)
 Programs 128 bit data with hardware generated ECC code. More...
 
bool DL_FlashCTL_programMemoryBlocking128WithECCGenerated (FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect)
 Programs provided data up to 128-bits with ECC generated while blocking between writes. More...
 
bool DL_FlashCTL_eraseDataBank (FLASHCTL_Regs *flashctl)
 Performs an erase on DATA bank. More...
 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_eraseDataBankFromRAM (FLASHCTL_Regs *flashctl)
 Performs an erase on DATA bank, and executes command from RAM. More...
 
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale