MC1322x Software Driver for I2C

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC1322x Software Driver for I2C

1,969 次查看
Houarcheneger
Contributor I

Hi everybody

 

I am trying to use a I2C connection to communicate with a slave device.
I am using functions provided and I have a few questions about them.

 

First, when I configure the I2C with I2c_SetConfig function, what is the "slave adress" ? Is it the slave adress of my device with which I am trying to communicate or is it the slave adress of my micro ?

 

Then, in the I2c_ReceiveData function, is slaveDestAddr parameter the adress of the device I am trying to reach ? If yes, how can I read one register of my device ?

 

Thanks for your answers.

 

Houarcheneger.

标签 (1)
0 项奖励
回复
2 回复数

975 次查看
Houarcheneger
Contributor I

At least, where can I find the source code for the drivers ?

 

Thx

0 项奖励
回复

974 次查看
J2MEJediMaster
Specialist I

The handy-dandy forum search function turns up some I2C code posted in the forums. Try looking here and here.

 

---Tom

0 项奖励
回复