This beta release provides new commands for controlling YKUSH3 I2C interface functioning modes.
YKUSH3 board has an I2C interface that can be used as an additional downstream port switching control interface or as a type of USB-to-I2C bridge. When YKUSH3 I2C is configured to work in slave mode, a I2C master device can be used to command the switching of the YKUSH3 downstream ports. On the other case where YKUSH3 I2C is configured to function in master mode, the board can be used to work as a type of USB-to-I2C bridge being possible to use ykushcmd to transmit and receive data to/from an I2C slave device.
Details on the I2C YKUSH3 interface and functionalities can be found in the board datasheet available at the YKUSH3 product page.
What's new
- Configuration command to enable, or disable, the YKUSH2 I2C master mode.
- Write command to transmit data to an I2C slave device that is connected to the YKUSH3 I2C bus. This YKUSH3 must be configured with the I2C master mode enabled.
- Read command to receive bytes from I2C slave device that is connected to the I2C of a YKUSH3 with I2C master mode enabled.
- Configuration command to enable, or disable, the YKUSH3 I2C slave mode.
The usage of all these new commands is documented in the ykushcmd reference manual.
Requirements and dependencies
A YKUSH3 with firmware version 1.4.0 or newer is required to use these new YKUSH3 I2C related commands. If your YKUSH3 has an older firmware version you can get a new firmware version, and instructions on how to load it into the YKUSH3 board one, at the YKUSH3 product page.