TMS320F28335 Library  1.0
Documentation
i2c.h
Go to the documentation of this file.
I2C_readDataAsMaster
int16 I2C_readDataAsMaster(I2CMSG_transmit *)
Read data in I2C master mode from slave.
Definition: i2c.c:194
I2CMSG_transmit
struct _I2CMSG_transmit I2CMSG_transmit
I2C Transmit-Message structure.
int16
int int16
16 Bit Variable: - 32.768 .. 32.767
Definition: global_defines.h:17
TMS_I2C_Reg
struct _TMS_I2C_Reg TMS_I2C_Reg
I2C Register structure for slave receive and transmit operations.
I2CInterface
struct _I2CInterface I2CInterface
I2C Interface: Assign GPIOs to I2C module.
_I2CInterface
I2C Interface: Assign GPIOs to I2C module.
Definition: i2c.h:12
_I2CInterface::scl
Uint16 scl
I2C-SCL-GPIO (GPIO33)
Definition: i2c.h:14
_I2CMSG_transmit::RegisterAddressLow
Uint16 RegisterAddressLow
Write second byte of Registeradress. Example: 0x12.
Definition: i2c.h:29
_I2CInterface::sda
Uint16 sda
I2C-SDA-GPIO (GPIO32)
Definition: i2c.h:13
_I2CMSG_transmit
I2C Transmit-Message structure.
Definition: i2c.h:25
_TMS_I2C_Reg
I2C Register structure for slave receive and transmit operations.
Definition: i2c.h:19
_I2CMSG_transmit::RegisterAddressHigh
Uint16 RegisterAddressHigh
Write first byte of Registeradress. Example: 0xFF.
Definition: i2c.h:28
global_defines.h
Header file for global defines.
Uint16
unsigned int Uint16
16 Bit Variable: 0 .. 65.535
Definition: global_defines.h:21
_I2CMSG_transmit::SlaveAddress
Uint16 SlaveAddress
Write 7-Bit Slave Adress. Example: 0x3.
Definition: i2c.h:26
_I2CMSG_transmit::RegisterAddressLength
Uint16 RegisterAddressLength
Write length of Registeradress in Byte(max. 2). Example: 2 (for 0xFF12)
Definition: i2c.h:27
_I2CMSG_transmit::Data
Uint16 Data[16]
Write data to be sent into Data-Array. Read Data from Array after Read-operations.
Definition: i2c.h:31
TM_REG16
volatile Uint16 TM_REG16
Hardware register definition.
Definition: global_defines.h:53
_I2CMSG_transmit::DataLength
Uint16 DataLength
Write length of databytes to receive or to transmit. Example: 2 (for transmission of 0x6688)
Definition: i2c.h:30
_TMS_I2C_Reg::register_adress
TM_REG16 register_adress
Used by Slave ISR for Registeraccess.
Definition: i2c.h:20
TMPS_I2C_Reg
struct _TMS_I2C_Reg * TMPS_I2C_Reg
init_I2CMasterMode
int16 init_I2CMasterMode(I2CInterface)
Initialization of I2C Interface master mode.
Definition: i2c.c:23
init_I2CSlaveMode
int16 init_I2CSlaveMode(I2CInterface, Uint16)
Initialization of I2C Interface slave mode.
Definition: i2c.c:81
I2C_writeDataAsMaster
int16 I2C_writeDataAsMaster(I2CMSG_transmit *)
Send data in I2C master mode to slave.
Definition: i2c.c:143