M480 BSP V3.05.005
The Board Support Package for M480 Series
Modules | Macros | Variables
I2C Exported Constants

Modules

 I2C Exported Functions
 

Macros

#define I2C_TIMEOUT_ERR
 
#define I2C_CTL_STA_SI
 
#define I2C_CTL_STA_SI_AA
 
#define I2C_CTL_STO_SI
 
#define I2C_CTL_STO_SI_AA
 
#define I2C_CTL_SI
 
#define I2C_CTL_SI_AA
 
#define I2C_CTL_STA
 
#define I2C_CTL_STO
 
#define I2C_CTL_AA
 
#define I2C_GCMODE_ENABLE
 
#define I2C_GCMODE_DISABLE
 
#define I2C_SMBH_ENABLE
 
#define I2C_SMBD_ENABLE
 
#define I2C_PECTX_ENABLE
 
#define I2C_PECTX_DISABLE
 

Variables

int32_t g_I2C_i32ErrCode
 

Detailed Description

Macro Definition Documentation

◆ I2C_CTL_AA

#define I2C_CTL_AA

I2C_CTL setting for I2C control bits. It would set AA bit

Definition at line 43 of file i2c.h.

◆ I2C_CTL_SI

#define I2C_CTL_SI

I2C_CTL setting for I2C control bits. It would set SI bit

Definition at line 39 of file i2c.h.

◆ I2C_CTL_SI_AA

#define I2C_CTL_SI_AA

I2C_CTL setting for I2C control bits. It would set SI and AA bits

Definition at line 40 of file i2c.h.

◆ I2C_CTL_STA

#define I2C_CTL_STA

I2C_CTL setting for I2C control bits. It would set STA bit

Definition at line 41 of file i2c.h.

◆ I2C_CTL_STA_SI

#define I2C_CTL_STA_SI

I2C_CTL setting for I2C control bits. It would set STA and SI bits

Definition at line 35 of file i2c.h.

◆ I2C_CTL_STA_SI_AA

#define I2C_CTL_STA_SI_AA

I2C_CTL setting for I2C control bits. It would set STA, SI and AA bits

Definition at line 36 of file i2c.h.

◆ I2C_CTL_STO

#define I2C_CTL_STO

I2C_CTL setting for I2C control bits. It would set STO bit

Definition at line 42 of file i2c.h.

◆ I2C_CTL_STO_SI

#define I2C_CTL_STO_SI

I2C_CTL setting for I2C control bits. It would set STO and SI bits

Definition at line 37 of file i2c.h.

◆ I2C_CTL_STO_SI_AA

#define I2C_CTL_STO_SI_AA

I2C_CTL setting for I2C control bits. It would set STO, SI and AA bits

Definition at line 38 of file i2c.h.

◆ I2C_GCMODE_DISABLE

#define I2C_GCMODE_DISABLE

Disable I2C GC Mode

Definition at line 49 of file i2c.h.

◆ I2C_GCMODE_ENABLE

#define I2C_GCMODE_ENABLE

Enable I2C GC Mode

Definition at line 48 of file i2c.h.

◆ I2C_PECTX_DISABLE

#define I2C_PECTX_DISABLE

Disable SMBus Packet Error Check Transmit function

Definition at line 57 of file i2c.h.

◆ I2C_PECTX_ENABLE

#define I2C_PECTX_ENABLE

Enable SMBus Packet Error Check Transmit function

Definition at line 56 of file i2c.h.

◆ I2C_SMBD_ENABLE

#define I2C_SMBD_ENABLE

Enable SMBus Device Mode enable

Definition at line 55 of file i2c.h.

◆ I2C_SMBH_ENABLE

#define I2C_SMBH_ENABLE

Enable SMBus Host Mode enable

Definition at line 54 of file i2c.h.

◆ I2C_TIMEOUT_ERR

#define I2C_TIMEOUT_ERR

I2C operation abort due to timeout error

Definition at line 30 of file i2c.h.

Variable Documentation

◆ g_I2C_i32ErrCode

int32_t g_I2C_i32ErrCode
extern

I2C global error code

Definition at line 19 of file i2c.c.