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

Functions

__STATIC_INLINE uint32_t DDL_I2C_ReadEventStatus (I2C_TypeDef *I2Cx, uint32_t i2cEvent)
 Checks if the current I2C event matches the specified event.
__STATIC_INLINE uint32_t I2C_ReadLastEvent (I2C_TypeDef *I2Cx)
 Reads and returns the last I2C event status.

Detailed Description

Function Documentation

◆ DDL_I2C_ReadEventStatus()

__STATIC_INLINE uint32_t DDL_I2C_ReadEventStatus ( I2C_TypeDef * I2Cx,
uint32_t i2cEvent )

Checks if the current I2C event matches the specified event.

Note
The function combines STS1 (lower 16 bits) and STS2 (lower 16 bits, shifted left by 16) into a 24-bit status value, then checks if all bits specified by i2cEvent are set.
Parameters
I2CxI2C Instance.
i2cEventThe event to be checked (e.g., DDL_I2C_EVENT_MASTER_MODE_SELECT, etc.).
Return values
1if the specified event bits are all set, 0 otherwise.

Definition at line 1225 of file g32r4xx_ddl_i2c.h.

◆ I2C_ReadLastEvent()

__STATIC_INLINE uint32_t I2C_ReadLastEvent ( I2C_TypeDef * I2Cx)

Reads and returns the last I2C event status.

Note
The returned value is formed by combining STS1 (lower 16 bits) and STS2 (lower 16 bits, shifted left by 16) into a 24-bit value.
Parameters
I2CxI2C Instance.
Return values
A24-bit value representing the last I2C event status.

Definition at line 1253 of file g32r4xx_ddl_i2c.h.