Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: I2C slave on cc2541

$
0
0

Hello all,

I am working on cc2541 device and need to implement i2c slave. I downloaded hal_i2c files from one of the threads.

I want to initialize i2c as slave. The slave initialization function has two arguments, one is address but the other is related to i2ccallback. I didn't understand how this is working.

If someone has already implemented i2c slave, please let me know how this is supposed to be used. And I would greatly appreciate if someone can explain me how i need to declare variable to pass onto the function and how callback is happening.

Regards,

maharjanbk


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>