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

Functions

__STATIC_INLINE void DDL_I2C_EnableIT_TX (I2C_TypeDef *I2Cx)
 Enable TXE interrupt.
__STATIC_INLINE void DDL_I2C_DisableIT_TX (I2C_TypeDef *I2Cx)
 Disable TXE interrupt.
__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_TX (I2C_TypeDef *I2Cx)
 Check if the TXE Interrupt is enabled or disabled.
__STATIC_INLINE void DDL_I2C_EnableIT_RX (I2C_TypeDef *I2Cx)
 Enable RXNE interrupt.
__STATIC_INLINE void DDL_I2C_DisableIT_RX (I2C_TypeDef *I2Cx)
 Disable RXNE interrupt.
__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_RX (I2C_TypeDef *I2Cx)
 Check if the RXNE Interrupt is enabled or disabled.
__STATIC_INLINE void DDL_I2C_EnableIT_EVT (I2C_TypeDef *I2Cx)
 Enable Events interrupts.
__STATIC_INLINE void DDL_I2C_DisableIT_EVT (I2C_TypeDef *I2Cx)
 Disable Events interrupts.
__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_EVT (I2C_TypeDef *I2Cx)
 Check if Events interrupts are enabled or disabled.
__STATIC_INLINE void DDL_I2C_EnableIT_BUF (I2C_TypeDef *I2Cx)
 Enable Buffer interrupts.
__STATIC_INLINE void DDL_I2C_DisableIT_BUF (I2C_TypeDef *I2Cx)
 Disable Buffer interrupts.
__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_BUF (I2C_TypeDef *I2Cx)
 Check if Buffer interrupts are enabled or disabled.
__STATIC_INLINE void DDL_I2C_EnableIT_ERR (I2C_TypeDef *I2Cx)
 Enable Error interrupts.
__STATIC_INLINE void DDL_I2C_DisableIT_ERR (I2C_TypeDef *I2Cx)
 Disable Error interrupts.
__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_ERR (I2C_TypeDef *I2Cx)
 Check if Error interrupts are enabled or disabled.

Detailed Description

Function Documentation

◆ DDL_I2C_DisableIT_BUF()

__STATIC_INLINE void DDL_I2C_DisableIT_BUF ( I2C_TypeDef * I2Cx)

Disable Buffer interrupts.

Note
Any of these Buffer events will generate interrupt : Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1144 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_DisableIT_ERR()

__STATIC_INLINE void DDL_I2C_DisableIT_ERR ( I2C_TypeDef * I2Cx)

Disable Error interrupts.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Any of these errors will generate interrupt : Bus Error detection (BERR) Arbitration Loss (ARLO) Acknowledge Failure(AF) Overrun/Underrun (OVR) SMBus Timeout detection (TIMEOUT) SMBus PEC error detection (PECERR) SMBus Alert pin event detection (SMBALERT)
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1194 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_DisableIT_EVT()

__STATIC_INLINE void DDL_I2C_DisableIT_EVT ( I2C_TypeDef * I2Cx)

Disable Events interrupts.

Note
Any of these events will generate interrupt : Start Bit (SB) Address sent, Address matched (ADDR) 10-bit header sent (ADD10) Stop detection (STOPF) Byte transfer finished (BTF) Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1108 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_DisableIT_RX()

__STATIC_INLINE void DDL_I2C_DisableIT_RX ( I2C_TypeDef * I2Cx)

Disable RXNE interrupt.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1060 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_DisableIT_TX()

__STATIC_INLINE void DDL_I2C_DisableIT_TX ( I2C_TypeDef * I2Cx)

Disable TXE interrupt.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1030 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_EnableIT_BUF()

__STATIC_INLINE void DDL_I2C_EnableIT_BUF ( I2C_TypeDef * I2Cx)

Enable Buffer interrupts.

Note
Any of these Buffer events will generate interrupt if Events interrupts are enabled too(using unitary function DDL_I2C_EnableIT_EVT()) : Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1131 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_EnableIT_ERR()

__STATIC_INLINE void DDL_I2C_EnableIT_ERR ( I2C_TypeDef * I2Cx)

Enable Error interrupts.

Note
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Any of these errors will generate interrupt : Bus Error detection (BERR) Arbitration Loss (ARLO) Acknowledge Failure(AF) Overrun/Underrun (OVR) SMBus Timeout detection (TIMEOUT) SMBus PEC error detection (PECERR) SMBus Alert pin event detection (SMBALERT)
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1174 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_EnableIT_EVT()

__STATIC_INLINE void DDL_I2C_EnableIT_EVT ( I2C_TypeDef * I2Cx)

Enable Events interrupts.

Note
Any of these events will generate interrupt : Start Bit (SB) Address sent, Address matched (ADDR) 10-bit header sent (ADD10) Stop detection (STOPF) Byte transfer finished (BTF)
Any of these events will generate interrupt if Buffer interrupts are enabled too(using unitary function DDL_I2C_EnableIT_BUF()) : Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1090 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_EnableIT_RX()

__STATIC_INLINE void DDL_I2C_EnableIT_RX ( I2C_TypeDef * I2Cx)

Enable RXNE interrupt.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1050 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_EnableIT_TX()

__STATIC_INLINE void DDL_I2C_EnableIT_TX ( I2C_TypeDef * I2Cx)

Enable TXE interrupt.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1020 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsEnabledIT_BUF()

__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_BUF ( I2C_TypeDef * I2Cx)

Check if Buffer interrupts are enabled or disabled.

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

Definition at line 1154 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsEnabledIT_ERR()

__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_ERR ( I2C_TypeDef * I2Cx)

Check if Error interrupts are enabled or disabled.

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

Definition at line 1204 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsEnabledIT_EVT()

__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_EVT ( I2C_TypeDef * I2Cx)

Check if Events interrupts are enabled or disabled.

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

Definition at line 1118 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsEnabledIT_RX()

__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_RX ( I2C_TypeDef * I2Cx)

Check if the RXNE Interrupt is enabled or disabled.

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

Definition at line 1070 of file g32r4xx_ddl_i2c.h.

◆ DDL_I2C_IsEnabledIT_TX()

__STATIC_INLINE uint32_t DDL_I2C_IsEnabledIT_TX ( I2C_TypeDef * I2Cx)

Check if the TXE Interrupt is enabled or disabled.

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

Definition at line 1040 of file g32r4xx_ddl_i2c.h.