#define MSReadValue ( _port,
_i2caddr,
_reg,
_bytes,
_out,
_result   )     __MSReadValue(_port, _i2caddr, _reg, _bytes, _out, _result)

Read a mindsensors device value.

Read a one, two, or four byte value from a mindsensors sensor. The value must be stored with the least signficant byte (LSB) first (i.e., little endian). Returns a boolean value indicating whether or not the operation completed successfully. The port must be configured as a Lowspeed port before using this function.

Parameters:
_port The sensor port. See NBC Input port constants.
_i2caddr The sensor I2C address. See sensor documentation for this value.
_reg The device register to read.
_bytes The number of bytes to read. Only 1, 2, or 4 byte values are supported.
_out The value read from the device.
_result The function call result.

Generated by  doxygen 1.6.2