MC1322x Software Driver for I2C

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC1322x Software Driver for I2C

1,504件の閲覧回数
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 返答(返信)

510件の閲覧回数
Houarcheneger
Contributor I

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

 

Thx

0 件の賞賛
返信

509件の閲覧回数
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 件の賞賛
返信