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

Functions

__STATIC_INLINE void DDL_FLASH_EnableIT_ERR (void)
 Enable interruption Flash error.
__STATIC_INLINE void DDL_FLASH_DisableIT_ERR (void)
 Disable interruption Flash error.
__STATIC_INLINE uint32_t DDL_FLASH_IsEnabledIT_ERR (void)
 Get state of interruption Flash error. (0: interrupt disabled, 1: interrupt enabled).
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_WADRERR (void)
 Incorrect address write flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_WADRERR (void)
 Clear the address write error flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_WRPRTERR (void)
 Write protection error flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_WRPRTERR (void)
 Clear write protection error flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_KEYERR (void)
 Flash KEY error flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_KEYERR (void)
 Clear Flash KEY error flag.
__STATIC_INLINE void DDL_FLASH_EnableIT_EOP (void)
 Enable interruption programming or erase end.
__STATIC_INLINE void DDL_FLASH_DisableIT_EOP (void)
 Disable interruption programming or erase end.
__STATIC_INLINE uint32_t DDL_FLASH_IsEnabledIT_EOP (void)
 Get state of interruption programming or erase end. (0: interrupt disabled, 1: interrupt enabled).
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_PRD (void)
 Programming completed flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_PRD (void)
 Clear programming completed flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_ERD (void)
 Erase completed flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_ERD (void)
 Clear erase completed flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_OPUNLOCK (void)
 Locking flag for option byte area.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_MAINUNLOCK (void)
 Locking flag for main area.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_OPTERR (void)
 The option_byte does not meet the parity check flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_TRIMERR (void)
 Trim check error flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_OPBPRD (void)
 The optionbyte programming completion flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_OPBPRD (void)
 Clear optionbyte programming completion flag.
__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_BUSY (void)
 FLASH erasing busy flag.
__STATIC_INLINE void DDL_FLASH_ClearFlag_All (void)
 Clear all flag.

Detailed Description

Function Documentation

◆ DDL_FLASH_ClearFlag_All()

__STATIC_INLINE void DDL_FLASH_ClearFlag_All ( void )

Clear all flag.

Note
OPUNLOCK and MAINUNLOCK are intentionally kept untouched. Writing '1' to either of these bits would re-lock the option-byte area or the main program area, which would then require the full unlock sequence (key writing) before any further erase/program operation can be performed.
OPTERR and TRIMERR are read-only and are not cleared by this function.
Return values
None

Definition at line 1076 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_ClearFlag_ERD()

__STATIC_INLINE void DDL_FLASH_ClearFlag_ERD ( void )

Clear erase completed flag.

Return values
None

Definition at line 998 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_ClearFlag_KEYERR()

__STATIC_INLINE void DDL_FLASH_ClearFlag_KEYERR ( void )

Clear Flash KEY error flag.

Return values
None

Definition at line 934 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_ClearFlag_OPBPRD()

__STATIC_INLINE void DDL_FLASH_ClearFlag_OPBPRD ( void )

Clear optionbyte programming completion flag.

Return values
None

Definition at line 1052 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_ClearFlag_PRD()

__STATIC_INLINE void DDL_FLASH_ClearFlag_PRD ( void )

Clear programming completed flag.

Return values
None

Definition at line 980 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_ClearFlag_WADRERR()

__STATIC_INLINE void DDL_FLASH_ClearFlag_WADRERR ( void )

Clear the address write error flag.

Return values
None

Definition at line 898 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_ClearFlag_WRPRTERR()

__STATIC_INLINE void DDL_FLASH_ClearFlag_WRPRTERR ( void )

Clear write protection error flag.

Return values
None

Definition at line 916 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_DisableIT_EOP()

__STATIC_INLINE void DDL_FLASH_DisableIT_EOP ( void )

Disable interruption programming or erase end.

Return values
None

Definition at line 952 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_DisableIT_ERR()

__STATIC_INLINE void DDL_FLASH_DisableIT_ERR ( void )

Disable interruption Flash error.

Return values
None

Definition at line 870 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_EnableIT_EOP()

__STATIC_INLINE void DDL_FLASH_EnableIT_EOP ( void )

Enable interruption programming or erase end.

Return values
None

Definition at line 943 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_EnableIT_ERR()

__STATIC_INLINE void DDL_FLASH_EnableIT_ERR ( void )

Enable interruption Flash error.

Return values
None

Definition at line 861 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_BUSY()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_BUSY ( void )

FLASH erasing busy flag.

Return values
Stateof bit (1 or 0).

Definition at line 1061 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_ERD()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_ERD ( void )

Erase completed flag.

Return values
Stateof bit (1 or 0).

Definition at line 989 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_KEYERR()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_KEYERR ( void )

Flash KEY error flag.

Return values
Stateof bit (1 or 0).

Definition at line 925 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_MAINUNLOCK()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_MAINUNLOCK ( void )

Locking flag for main area.

Return values
Stateof bit (1 or 0).

Definition at line 1016 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_OPBPRD()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_OPBPRD ( void )

The optionbyte programming completion flag.

Return values
Stateof bit (1 or 0).

Definition at line 1043 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_OPTERR()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_OPTERR ( void )

The option_byte does not meet the parity check flag.

Return values
Stateof bit (1 or 0).

Definition at line 1025 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_OPUNLOCK()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_OPUNLOCK ( void )

Locking flag for option byte area.

Return values
Stateof bit (1 or 0).

Definition at line 1007 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_PRD()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_PRD ( void )

Programming completed flag.

Return values
Stateof bit (1 or 0).

Definition at line 971 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_TRIMERR()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_TRIMERR ( void )

Trim check error flag.

Return values
Stateof bit (1 or 0).

Definition at line 1034 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_WADRERR()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_WADRERR ( void )

Incorrect address write flag.

Return values
Stateof bit (1 or 0).

Definition at line 889 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsActiveFlag_WRPRTERR()

__STATIC_INLINE uint32_t DDL_FLASH_IsActiveFlag_WRPRTERR ( void )

Write protection error flag.

Return values
Stateof bit (1 or 0).

Definition at line 907 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsEnabledIT_EOP()

__STATIC_INLINE uint32_t DDL_FLASH_IsEnabledIT_EOP ( void )

Get state of interruption programming or erase end. (0: interrupt disabled, 1: interrupt enabled).

Return values
Stateof bit (1 or 0).

Definition at line 962 of file g32r4xx_ddl_flash.h.

◆ DDL_FLASH_IsEnabledIT_ERR()

__STATIC_INLINE uint32_t DDL_FLASH_IsEnabledIT_ERR ( void )

Get state of interruption Flash error. (0: interrupt disabled, 1: interrupt enabled).

Return values
Stateof bit (1 or 0).

Definition at line 880 of file g32r4xx_ddl_flash.h.