| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros | Enumerations
USCI_I2C Exported Constants
Standard Driver » USCI_I2C Driver

## Macros
#define | UI2C_CTL_PTRG
#define | UI2C_CTL_STA
#define | UI2C_CTL_STO
#define | UI2C_CTL_AA
#define | UI2C_GCMODE_ENABLE
#define | UI2C_GCMODE_DISABLE
#define | UI2C_DATA_TOGGLE_WK
#define | UI2C_ADDR_MATCH_WK
#define | UI2C_TO_INT_MASK
#define | UI2C_STAR_INT_MASK
#define | UI2C_STOR_INT_MASK
#define | UI2C_NACK_INT_MASK
#define | UI2C_ARBLO_INT_MASK
#define | UI2C_ERR_INT_MASK
#define | UI2C_ACK_INT_MASK

## Enumerations
enum | UI2C_MASTER_EVENT { MASTER_SEND_ADDRESS = 10, MASTER_SEND_H_WR_ADDRESS, MASTER_SEND_H_RD_ADDRESS, MASTER_SEND_L_ADDRESS, MASTER_SEND_DATA, MASTER_SEND_REPEAT_START, MASTER_READ_DATA, MASTER_STOP, MASTER_SEND_START }
enum | UI2C_SLAVE_EVENT { SLAVE_ADDRESS_ACK = 100, SLAVE_H_WR_ADDRESS_ACK, SLAVE_L_WR_ADDRESS_ACK, SLAVE_GET_DATA, SLAVE_SEND_DATA, SLAVE_H_RD_ADDRESS_ACK, SLAVE_L_RD_ADDRESS_ACK }

## Detailed Description

## Macro Definition Documentation

## ◆ UI2C_ACK_INT_MASK

#define UI2C_ACK_INT_MASK

Acknowledge interrupt mask

Definition at line 89 of file usci_i2c.h.

## ◆ UI2C_ADDR_MATCH_WK

#define UI2C_ADDR_MATCH_WK

Wakeup according address match

Definition at line 78 of file usci_i2c.h.

## ◆ UI2C_ARBLO_INT_MASK

#define UI2C_ARBLO_INT_MASK

Arbitration lost interrupt mask

Definition at line 87 of file usci_i2c.h.

## ◆ UI2C_CTL_AA

#define UI2C_CTL_AA

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

Definition at line 66 of file usci_i2c.h.

## ◆ UI2C_CTL_PTRG

#define UI2C_CTL_PTRG

USCI_CTL setting for I2C control bits. It would set PTRG bit

Definition at line 63 of file usci_i2c.h.

## ◆ UI2C_CTL_STA

#define UI2C_CTL_STA

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

Definition at line 64 of file usci_i2c.h.

## ◆ UI2C_CTL_STO

#define UI2C_CTL_STO

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

Definition at line 65 of file usci_i2c.h.

## ◆ UI2C_DATA_TOGGLE_WK

#define UI2C_DATA_TOGGLE_WK

Wakeup according data toggle

Definition at line 77 of file usci_i2c.h.

## ◆ UI2C_ERR_INT_MASK

#define UI2C_ERR_INT_MASK

Error interrupt mask

Definition at line 88 of file usci_i2c.h.

## ◆ UI2C_GCMODE_DISABLE

#define UI2C_GCMODE_DISABLE

Disable USCI_I2C GC Mode

Definition at line 72 of file usci_i2c.h.

## ◆ UI2C_GCMODE_ENABLE

#define UI2C_GCMODE_ENABLE

Enable USCI_I2C GC Mode

Definition at line 71 of file usci_i2c.h.

## ◆ UI2C_NACK_INT_MASK

#define UI2C_NACK_INT_MASK

Non-acknowledge interrupt mask

Definition at line 86 of file usci_i2c.h.

## ◆ UI2C_STAR_INT_MASK

#define UI2C_STAR_INT_MASK

Start condition received interrupt mask

Definition at line 84 of file usci_i2c.h.

## ◆ UI2C_STOR_INT_MASK

#define UI2C_STOR_INT_MASK

Stop condition received interrupt mask

Definition at line 85 of file usci_i2c.h.

## ◆ UI2C_TO_INT_MASK

#define UI2C_TO_INT_MASK

Time-out interrupt mask

Definition at line 83 of file usci_i2c.h.

## Enumeration Type Documentation

## ◆ UI2C_MASTER_EVENT

enum UI2C_MASTER_EVENT

Enumerator
MASTER_SEND_ADDRESS | Master send address to Slave
MASTER_SEND_H_WR_ADDRESS | Master send High address to Slave
MASTER_SEND_H_RD_ADDRESS | Master send address to Slave (Read ADDR)
MASTER_SEND_L_ADDRESS | Master send Low address to Slave
MASTER_SEND_DATA | Master Send Data to Slave
MASTER_SEND_REPEAT_START | Master send repeat start to Slave
MASTER_READ_DATA | Master Get Data from Slave
MASTER_STOP | Master send stop to Slave
MASTER_SEND_START | Master send start to Slave

Definition at line 33 of file usci_i2c.h.

## ◆ UI2C_SLAVE_EVENT

enum UI2C_SLAVE_EVENT

Enumerator
SLAVE_ADDRESS_ACK | Slave send address ACK
SLAVE_H_WR_ADDRESS_ACK | Slave send High address ACK
SLAVE_L_WR_ADDRESS_ACK | Slave send Low address ACK
SLAVE_GET_DATA | Slave Get Data from Master (Write CMD)
SLAVE_SEND_DATA | Slave Send Data to Master (Read CMD)
SLAVE_H_RD_ADDRESS_ACK | Slave send High address ACK
SLAVE_L_RD_ADDRESS_ACK | Slave send Low address ACK

Definition at line 49 of file usci_i2c.h.