G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
FLASH_DDL_Exported_Functions

Functions

ErrorStatus DDL_FLASH_EraseMain (uint32_t type, uint32_t baseAddr)
 Erase the main area of the flash.
void DDL_FLASH_ReadData (uint32_t baseAddr, uint32_t *data, uint32_t length)
 Erase the systemInfo area of the flash.
void DDL_FLASH_WriteData (uint32_t baseAddr, uint32_t *data, uint32_t length)
 Erase the systemInfo area of the flash.
void DDL_FLASH_OPT_StructInit (DDL_FLASH_OPT_InitTypeDef *FLASH_OPT_InitStruct)
 Set each DDL_FLASH_OPT_InitTypeDef field to default value.
ErrorStatus DDL_FLASH_OptionByteProgram (DDL_FLASH_OPT_InitTypeDef *FLASH_OPT_InitStruct)
 Flash option byte programming.
ErrorStatus DDL_FLASH_MainProgram (uint32_t baseAddr, uint32_t *data, uint32_t numWords)
 Program the systemInfo area of the flash.

Detailed Description

Function Documentation

◆ DDL_FLASH_EraseMain()

ErrorStatus DDL_FLASH_EraseMain ( uint32_t type,
uint32_t baseAddr )

Erase the main area of the flash.

Note
Before calling this function, please unlock the flash main area by using DDL_FLASH_MAIN_UnLock().
Parameters
Typesof chip erasure.
baseAddr–0x08000000 ~ 0x0801FFFF
Return values
AnErrorStatus enumeration value:

Definition at line 152 of file g32r4xx_ddl_flash.c.

◆ DDL_FLASH_MainProgram()

ErrorStatus DDL_FLASH_MainProgram ( uint32_t baseAddr,
uint32_t * data,
uint32_t numWords )

Program the systemInfo area of the flash.

Note
Before calling this function, please unlock the flash main area by using DDL_FLASH_MAIN_UnLock().
Parameters
baseAddr–0x08000000~0x0801FFFF
TargetArray
Lengthof data to be program
Return values
AnErrorStatus enumeration value:

Definition at line 380 of file g32r4xx_ddl_flash.c.

◆ DDL_FLASH_OPT_StructInit()

void DDL_FLASH_OPT_StructInit ( DDL_FLASH_OPT_InitTypeDef * FLASH_OPT_InitStruct)

Set each DDL_FLASH_OPT_InitTypeDef field to default value.

Parameters
FLASH_OPT_InitStructPointer to a DDL_FLASH_OPT_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 258 of file g32r4xx_ddl_flash.c.

◆ DDL_FLASH_OptionByteProgram()

ErrorStatus DDL_FLASH_OptionByteProgram ( DDL_FLASH_OPT_InitTypeDef * FLASH_OPT_InitStruct)

Flash option byte programming.

Note
Before calling this function, please unlock the flash main area by using DDL_FLASH_OPT_UnLock().
Parameters
FLASH_OPT_InitStructPointer to a DDL_FLASH_OPT_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 278 of file g32r4xx_ddl_flash.c.

◆ DDL_FLASH_ReadData()

void DDL_FLASH_ReadData ( uint32_t baseAddr,
uint32_t * data,
uint32_t length )

Erase the systemInfo area of the flash.

Parameters
baseAddr
TargetArray
Lengthof data to be read
Return values
None.

Definition at line 229 of file g32r4xx_ddl_flash.c.

◆ DDL_FLASH_WriteData()

void DDL_FLASH_WriteData ( uint32_t baseAddr,
uint32_t * data,
uint32_t length )

Erase the systemInfo area of the flash.

Parameters
baseAddr
TargetArray
Lengthof data to be read
Return values
None.

Definition at line 244 of file g32r4xx_ddl_flash.c.