Hi! Where can I find information and examples on how to implement a I2C bus using both a master and slave configuration? The examples should be using the functions in Serial Manager.c file.
One issue I have in the Master configuration is the slave address appears to be locked in:
/* Defines the address of the slave when in master mode*/
#define gSerialMgrIICAddress_c (0x76)
I would like to be able to select more than one slave.
Second as the slave how is the slave address set? I'm using the MK41Z for both.
I'm looking at this https://mcuxpresso.nxp.com/api_doc/dev/116/group__i2c.html, but I'm having a difficult time correlating the serialmanager.c and this .html.
I appreciate the help!
Hope you are doing well. The Serial Manager is one of the Framework Services Provided by the Connectivity Framework software. You can use it to communicate with multiple serial interfaces and works with the connectivity stacks.
For more information, please check section 9 of the "Connectivity Framework Reference Manual.pdf" (Path: SDK_FRDM-KW41Z_doc.zip\docs\wireless\Common). Also, this Community post might be helpful: Enable I2C Serial Interface in Bluetooth KW41Z Heart Rate Sensor Demo Application.
And there is only one address to be used for I2C (gSerialMgrIICAddress_c).
The link you shared, corresponds to the SDK API. You can import the driver examples from the SDK: