G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Initialization and de-initialization functions

Functions

uint32_t DDL_I2C_Init (I2C_TypeDef *I2Cx, DDL_I2C_InitTypeDef *I2C_InitStruct)
 Initialize the I2C registers according to the specified parameters in I2C_InitStruct.
uint32_t DDL_I2C_DeInit (I2C_TypeDef *I2Cx)
 De-initialize the I2C registers to their default reset values.
void DDL_I2C_StructInit (DDL_I2C_InitTypeDef *I2C_InitStruct)
 Set each DDL_I2C_InitTypeDef field to default value.

Detailed Description

Function Documentation

◆ DDL_I2C_DeInit()

uint32_t DDL_I2C_DeInit ( I2C_TypeDef * I2Cx)

De-initialize the I2C registers to their default reset values.

Parameters
I2CxI2C Instance.
Return values
AnErrorStatus enumeration value:
  • SUCCESS I2C registers are de-initialized
  • ERROR I2C registers are not de-initialized

Definition at line 118 of file g32r4xx_ddl_i2c.c.

◆ DDL_I2C_Init()

uint32_t DDL_I2C_Init ( I2C_TypeDef * I2Cx,
DDL_I2C_InitTypeDef * I2C_InitStruct )

Initialize the I2C registers according to the specified parameters in I2C_InitStruct.

Parameters
I2CxI2C Instance.
I2C_InitStructpointer to a DDL_I2C_InitTypeDef structure.
Return values
AnErrorStatus enumeration value:
  • SUCCESS I2C registers are initialized
  • ERROR Not applicable

Definition at line 144 of file g32r4xx_ddl_i2c.c.

◆ DDL_I2C_StructInit()

void DDL_I2C_StructInit ( DDL_I2C_InitTypeDef * I2C_InitStruct)

Set each DDL_I2C_InitTypeDef field to default value.

Parameters
I2C_InitStructPointer to a DDL_I2C_InitTypeDef structure.
Return values
None

Definition at line 217 of file g32r4xx_ddl_i2c.c.