stmhal: Fix C bindings of I2C.read/write.