MC1322x Software Driver for I2C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC1322x Software Driver for I2C

1,968 Views
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.

Labels (1)
0 Kudos
Reply
2 Replies

974 Views
Houarcheneger
Contributor I

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

 

Thx

0 Kudos
Reply

973 Views
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 Kudos
Reply