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