Get I2C channel state.
This method returns the value of the I2C channel state for the specified port.