MAX32520 Peripheral Driver API
Peripheral Driver API for the MAX32520
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Serial Flash Emulator (SFE)

Modules

 SFE_Registers
 

Functions

int MXC_SFE_Init (void)
 
int MXC_SFE_Shutdown (void)
 
int MXC_SFE_ReadEnable (void)
 
int MXC_SFE_WriteEnable (void)
 
int MXC_SFE_SetFlashAddress (uint32_t baseAdd, uint32_t topAdd)
 
int MXC_SFE_SetRAMAddress (uint32_t baseAdd, uint32_t topAdd)
 
int MXC_SFE_SetHostAddress (uint32_t RAMAdd, uint32_t FLASHAdd)
 

Detailed Description

Function Documentation

◆ MXC_SFE_Init()

int MXC_SFE_Init ( void  )

Initialize serial flash emulator.

Returns
Success/Fail, see Error Codes for a list of return codes

◆ MXC_SFE_ReadEnable()

int MXC_SFE_ReadEnable ( void  )

Enable Flash Read.

Returns
Success/Fail, see Error Codes for a list of return codes

◆ MXC_SFE_SetFlashAddress()

int MXC_SFE_SetFlashAddress ( uint32_t  baseAdd,
uint32_t  topAdd 
)

Set Flash Base and Top address.

Parameters
baseAddBase address of Flash region
topAddTop address of Flash region
Returns
Success/Fail, see Error Codes for a list of return codes

◆ MXC_SFE_SetHostAddress()

int MXC_SFE_SetHostAddress ( uint32_t  RAMAdd,
uint32_t  FLASHAdd 
)

Set RAM and Flash base address for Host.

Parameters
RAMAddBase address of RAM for Host device
FLASHAddBase address of Flash for Host device
Returns
Success/Fail, see Error Codes for a list of return codes

◆ MXC_SFE_SetRAMAddress()

int MXC_SFE_SetRAMAddress ( uint32_t  baseAdd,
uint32_t  topAdd 
)

Set RAM Base and Top address.

Parameters
baseAddBase address of RAM region
topAddTop address of RAM region
Returns
Success/Fail, see Error Codes for a list of return codes

◆ MXC_SFE_Shutdown()

int MXC_SFE_Shutdown ( void  )

Shutdown serial flash emulator.

Returns
Success/Fail, see Error Codes for a list of return codes

◆ MXC_SFE_WriteEnable()

int MXC_SFE_WriteEnable ( void  )

Enable Flash Write.

Returns
Success/Fail, see Error Codes for a list of return codes