Part Number: CC2650
I am writing an application where the cc26xx/cc13xx should act both as an i2c slave and master.
The cc26xx/cc13xx technical reference manual states that it "Supports simultaneous master and slave operation", however it seems it is not possible to separately specify the pins to be used for slave and master when routing them using IOCPinTypeI2c(). Consequently, we must re-configure the pins between operations. Given that my understanding is correct:
1) What is the proper procedure to do this switch? To which level must I re-initialize the i2c master/slave cores after/before re-configuring the pins?
2) Any hints on a best practice for the general operation? As slave interrupts may come at any time, it seems most prudent to keep it configured as slave, and revert to master only when needed. However, this would require one to identify if a slave transaction is ongoing, such that the master config is not applied in the middle of a transaction.
Regards,
Andreas