#define ReadNXTLineLeaderAverage ( _port,
_i2caddr,
_out,
_result   )     __MSReadValue(_port, _i2caddr, NXTLL_REG_AVERAGE, 1, _out, _result)

Read NXTLineLeader average.

Read the mindsensors NXTLineLeader device's average value. The average is a weighted average of the bits set to 1 based on the position. The left most bit has a weight of 10, second bit has a weight of 20, and so forth. When all 8 sensors are over a black surface the average will be 45. 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.
_out The NXTLineLeader average value.
_result A status code indicating whether the operation completed successfully or not. See TCommLSCheckStatus for possible Result values.

Generated by  doxygen 1.6.2