27#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_FLC_H_
28#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_FLC_H_
47#define MXC_FLASH_PAGE_MASK ~(MXC_FLASH_PAGE_SIZE - 1)
50#define MXC_FLASH_PAGE_ADDR(page) (MXC_FLASH_MEM_BASE + ((uint32_t)page * MXC_FLASH_PAGE_SIZE))
Registers, Bit Masks and Bit Positions for the FLC Peripheral Module.
int MXC_FLC_Write32(uint32_t address, uint32_t data)
Writes 32 bits of data to flash.
int MXC_FLC_MassErase(void)
Erases the entire flash array.
int MXC_FLC_Init(void)
Initializes the Flash Controller for erase/write operations.
void MXC_FLC_Read(int address, void *buffer, int len)
Read Data out of Flash from an address.
int MXC_FLC_Write128(uint32_t address, uint32_t *data)
Writes 128 bits of data to flash.
int MXC_FLC_Busy(void)
Checks if Flash Controller is busy.
int MXC_FLC_BlockPageRead(uint32_t address)
Blocks read operations from the flash page associated with the 'address' argument.
int MXC_FLC_Write(uint32_t address, uint32_t length, uint32_t *buffer)
Writes data to flash.
int MXC_FLC_UnlockInfoBlock(uint32_t address)
Unlock info block.
int MXC_FLC_PageErase(uint32_t address)
Erases the page of flash at the specified address.
int MXC_FLC_GetFlags(void)
Retrieve flash interrupt flags.
int MXC_FLC_ClearFlags(uint32_t flags)
Clear flash interrupt flags.
int MXC_FLC_EnableInt(uint32_t flags)
Enable flash interrupts.
int MXC_FLC_DisableInt(uint32_t flags)
Disable flash interrupts.
int MXC_FLC_LockInfoBlock(uint32_t address)
Lock info block.
int MXC_FLC_BlockPageWrite(uint32_t address)
Blocks write operations to the flash page associated with the 'address' argument.