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

Functions

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_START (I2C_TypeDef *I2Cx)
 Indicate the status of Start Bit (master mode).
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_ADDR (I2C_TypeDef *I2Cx)
 Indicate the status of Address sent (master mode) or Address matched flag (slave mode).
__STATIC_INLINE void DDL_I2C_ClearFlag_ADDR (I2C_TypeDef *I2Cx)
 Clear Address Matched flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_BTF (I2C_TypeDef *I2Cx)
 Indicate the status of Byte Transfer Finished flag. RESET: When Data byte transfer not done. SET: When Data byte transfer succeeded.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_ADD10 (I2C_TypeDef *I2Cx)
 Indicate the status of 10-bit header sent (master mode).
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_STOP (I2C_TypeDef *I2Cx)
 Indicate the status of Stop detection flag (slave mode).
__STATIC_INLINE void DDL_I2C_ClearFlag_STOP (I2C_TypeDef *I2Cx)
 Clear Stop detection flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_RXNE (I2C_TypeDef *I2Cx)
 Indicate the status of Receive data register not empty flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_TXE (I2C_TypeDef *I2Cx)
 Indicate the status of Transmit data register empty flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_BERR (I2C_TypeDef *I2Cx)
 Indicate the status of Bus error flag.
__STATIC_INLINE void DDL_I2C_ClearFlag_BERR (I2C_TypeDef *I2Cx)
 Clear Bus error flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_ARLO (I2C_TypeDef *I2Cx)
 Indicate the status of Arbitration lost flag.
__STATIC_INLINE void DDL_I2C_ClearFlag_ARLO (I2C_TypeDef *I2Cx)
 Clear Arbitration lost flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_AF (I2C_TypeDef *I2Cx)
 Indicate the status of Acknowledge failure flag.
__STATIC_INLINE void DDL_I2C_ClearFlag_AF (I2C_TypeDef *I2Cx)
 Clear Acknowledge failure flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_OVR (I2C_TypeDef *I2Cx)
 Indicate the status of Overrun/Underrun flag.
__STATIC_INLINE void DDL_I2C_ClearFlag_OVR (I2C_TypeDef *I2Cx)
 Clear Overrun/Underrun flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_PECERR (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus PEC error flag in reception.
__STATIC_INLINE void DDL_I2C_ClearSMBusFlag_PECERR (I2C_TypeDef *I2Cx)
 Clear SMBus PEC error flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_TIMEOUT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Timeout detection flag.
__STATIC_INLINE void DDL_I2C_ClearSMBusFlag_TIMEOUT (I2C_TypeDef *I2Cx)
 Clear SMBus Timeout detection flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_ALERT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus alert flag.
__STATIC_INLINE void DDL_I2C_ClearSMBusFlag_ALERT (I2C_TypeDef *I2Cx)
 Clear SMBus Alert flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_MSL (I2C_TypeDef *I2Cx)
 Indicate the status of Master/Slave flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_BUSY (I2C_TypeDef *I2Cx)
 Indicate the status of Bus Busy flag.
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_GENCALL (I2C_TypeDef *I2Cx)
 Indicate the status of General call address reception (Slave mode).
__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_SMBDEFAULT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Device default address reception (Slave mode).
__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_SMBHOST (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Host address reception (Slave mode).
__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_DUAL (I2C_TypeDef *I2Cx)
 Indicate the status of Dual flag.

Detailed Description

Function Documentation

◆ DDL_I2C_ClearFlag_ADDR()

__STATIC_INLINE void DDL_I2C_ClearFlag_ADDR ( I2C_TypeDef * I2Cx)

Clear Address Matched flag.

Note
Clearing this flag is done by a read access to the I2Cx_SR1 register followed by a read access to the I2Cx_SR2 register.
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1307 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearFlag_AF()

__STATIC_INLINE void DDL_I2C_ClearFlag_AF ( I2C_TypeDef * I2Cx)

Clear Acknowledge failure flag.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1452 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearFlag_ARLO()

__STATIC_INLINE void DDL_I2C_ClearFlag_ARLO ( I2C_TypeDef * I2Cx)

Clear Arbitration lost flag.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1430 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearFlag_BERR()

__STATIC_INLINE void DDL_I2C_ClearFlag_BERR ( I2C_TypeDef * I2Cx)

Clear Bus error flag.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1408 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearFlag_OVR()

__STATIC_INLINE void DDL_I2C_ClearFlag_OVR ( I2C_TypeDef * I2Cx)

Clear Overrun/Underrun flag.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1474 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearFlag_STOP()

__STATIC_INLINE void DDL_I2C_ClearFlag_STOP ( I2C_TypeDef * I2Cx)

Clear Stop detection flag.

Note
Clearing this flag is done by a read access to the I2Cx_SR1 register followed by a write access to I2Cx_CTRL1 register.
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1359 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearSMBusFlag_ALERT()

__STATIC_INLINE void DDL_I2C_ClearSMBusFlag_ALERT ( I2C_TypeDef * I2Cx)

Clear SMBus Alert flag.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1544 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearSMBusFlag_PECERR()

__STATIC_INLINE void DDL_I2C_ClearSMBusFlag_PECERR ( I2C_TypeDef * I2Cx)

Clear SMBus PEC error flag.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1496 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_ClearSMBusFlag_TIMEOUT()

__STATIC_INLINE void DDL_I2C_ClearSMBusFlag_TIMEOUT ( I2C_TypeDef * I2Cx)

Clear SMBus Timeout detection flag.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1520 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_ADD10()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_ADD10 ( I2C_TypeDef * I2Cx)

Indicate the status of 10-bit header sent (master mode).

Note
RESET: When no ADD10 event occurred. SET: When the master has sent the first address byte (header).
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1335 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_ADDR()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_ADDR ( I2C_TypeDef * I2Cx)

Indicate the status of Address sent (master mode) or Address matched flag (slave mode).

Note
RESET: Clear default value. SET: When the address is fully sent (master mode) or when the received slave address matched with one of the enabled slave address (slave mode).
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1295 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_AF()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_AF ( I2C_TypeDef * I2Cx)

Indicate the status of Acknowledge failure flag.

Note
RESET: No acknowledge failure. SET: When an acknowledge failure is received after a byte transmission.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1442 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_ARLO()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_ARLO ( I2C_TypeDef * I2Cx)

Indicate the status of Arbitration lost flag.

Note
RESET: Clear default value. SET: When arbitration lost.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1420 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_BERR()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_BERR ( I2C_TypeDef * I2Cx)

Indicate the status of Bus error flag.

Note
RESET: Clear default value. SET: When a misplaced Start or Stop condition is detected.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1398 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_BTF()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_BTF ( I2C_TypeDef * I2Cx)

Indicate the status of Byte Transfer Finished flag. RESET: When Data byte transfer not done. SET: When Data byte transfer succeeded.

Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1323 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_BUSY()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_BUSY ( I2C_TypeDef * I2Cx)

Indicate the status of Bus Busy flag.

Note
RESET: Clear default value. SET: When a Start condition is detected.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1568 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_DUAL()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_DUAL ( I2C_TypeDef * I2Cx)

Indicate the status of Dual flag.

Note
RESET: Received address matched with OAR1. SET: Received address matched with OAR2.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1623 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_GENCALL()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_GENCALL ( I2C_TypeDef * I2Cx)

Indicate the status of General call address reception (Slave mode).

Note
RESET: No General call address SET: General call address received.
This status is cleared by hardware after a STOP condition or repeated START condition.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1581 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_MSL()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_MSL ( I2C_TypeDef * I2Cx)

Indicate the status of Master/Slave flag.

Note
RESET: Slave Mode. SET: Master Mode.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1556 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_OVR()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_OVR ( I2C_TypeDef * I2Cx)

Indicate the status of Overrun/Underrun flag.

Note
RESET: Clear default value. SET: When an overrun/underrun error occurs (Clock Stretching Disabled).
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1464 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_RXNE()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_RXNE ( I2C_TypeDef * I2Cx)

Indicate the status of Receive data register not empty flag.

Note
RESET: When Receive data register is read. SET: When the received data is copied in Receive data register.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1374 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_START()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_START ( I2C_TypeDef * I2Cx)

Indicate the status of Start Bit (master mode).

Note
RESET: When No Start condition. SET: When Start condition is generated.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1283 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_STOP()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_STOP ( I2C_TypeDef * I2Cx)

Indicate the status of Stop detection flag (slave mode).

Note
RESET: Clear default value. SET: When a Stop condition is detected.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1347 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveFlag_TXE()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveFlag_TXE ( I2C_TypeDef * I2Cx)

Indicate the status of Transmit data register empty flag.

Note
RESET: When next data is written in Transmit data register. SET: When Transmit data register is empty.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1386 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveSMBusFlag_ALERT()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_ALERT ( I2C_TypeDef * I2Cx)

Indicate the status of SMBus alert flag.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1532 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveSMBusFlag_PECERR()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_PECERR ( I2C_TypeDef * I2Cx)

Indicate the status of SMBus PEC error flag in reception.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1486 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveSMBusFlag_SMBDEFAULT()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_SMBDEFAULT ( I2C_TypeDef * I2Cx)

Indicate the status of SMBus Device default address reception (Slave mode).

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
RESET: No SMBus Device default address SET: SMBus Device default address received.
This status is cleared by hardware after a STOP condition or repeated START condition.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1596 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveSMBusFlag_SMBHOST()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_SMBHOST ( I2C_TypeDef * I2Cx)

Indicate the status of SMBus Host address reception (Slave mode).

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
RESET: No SMBus Host address SET: SMBus Host address received.
This status is cleared by hardware after a STOP condition or repeated START condition.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1611 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsActiveSMBusFlag_TIMEOUT()

__STATIC_INLINE uint32_t DDL_I2C_IsActiveSMBusFlag_TIMEOUT ( I2C_TypeDef * I2Cx)

Indicate the status of SMBus Timeout detection flag.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1508 of file g32r4xx_ddl_i2c.h.