0 Replies Latest reply on Jul 12, 2015 1:56 PM by ByReaL

    documentation issue readBytesReg no length argument

    ByReaL

      API — mraa v0.7.3-2-gdf0dbb0 documentation

       

      details mention a length but the function has no length argument.

       

      readBytesReg(

      I2c self,

      uint8_t reg,

      uint8_t * data)

      → int[source]

      http://iotdk.intel.com/docs/master/mraa/python/mraa.html#mraa.I2c.readBytesReg

      Parameters:
      reg: uint8_t data: uint8_t *

      Read length bytes from the bus into *data pointer starting from an i2c register

      reg: Register to read from

      data: pointer to the byte array to read data in to

      length: max number of bytes to read

      length passed to the function or -1