G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Common Write and read registers Macros

Macros

#define DDL_GPIO_Locate32BitReg(__BASEADDR__, __GPIO__)
#define DDL_GPIO_Locate16BitReg(__BASEADDR__, __GPIO__)
#define DDL_GPIO_WriteReg(__INSTANCE__, __REG__, __VALUE__)
 Write a value in GPIO register.
#define DDL_GPIO_ReadReg(__INSTANCE__, __REG__)
 Read a value in GPIO register.

Detailed Description

Macro Definition Documentation

◆ DDL_GPIO_Locate16BitReg

#define DDL_GPIO_Locate16BitReg ( __BASEADDR__,
__GPIO__ )
Value:
((volatile uint16_t *)(((volatile uint8_t *)(__BASEADDR__)) + (((uint32_t)(__GPIO__)) << 1)))

Definition at line 244 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_Locate32BitReg

#define DDL_GPIO_Locate32BitReg ( __BASEADDR__,
__GPIO__ )
Value:
((__BASEADDR__) + (__GPIO__ << 2))

Definition at line 242 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_ReadReg

#define DDL_GPIO_ReadReg ( __INSTANCE__,
__REG__ )
Value:
READ_REG(__INSTANCE__->__REG__)

Read a value in GPIO register.

Parameters
__INSTANCE__GPIO Instance
__REG__Register to be read
Return values
Registervalue

Definition at line 262 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_WriteReg

#define DDL_GPIO_WriteReg ( __INSTANCE__,
__REG__,
__VALUE__ )
Value:
WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))

Write a value in GPIO register.

Parameters
__INSTANCE__GPIO Instance
__REG__Register to be written
__VALUE__Value to be written in the register
Return values
None

Definition at line 254 of file g32r4xx_ddl_gpio.h.