Functions for accessing and modifying low speed module features. More...
Modules | |
Low level LowSpeed module functions | |
Low level functions for accessing low speed module features. | |
Defines | |
#define | ReadSensorUS(_port, _value) __ReadSensorUS(_port, _value) |
Read ultrasonic sensor value. | |
#define | ReadSensorUSEx(_port, _values, _result) __ReadSensorUSEx(_port, _values, _result) |
Read multiple ultrasonic sensor values. | |
#define | ReadSensorEMeter(_port, _vIn, _aIn, _vOut, _aOut, _joules, _wIn, _wOut, _result) __ReadSensorEMeter(_port, _vIn, _aIn, _vOut, _aOut, _joules, _wIn, _wOut, _result) |
Read the LEGO EMeter values. | |
#define | ConfigureTemperatureSensor(_port, _config, _result) __TempSendCmd(_port, _config, _result) |
Configure LEGO Temperature sensor options. | |
#define | ReadSensorTemperature(_port, _temp) __ReadSensorTemperature(_port, _temp) |
Read the LEGO Temperature sensor value. | |
#define | LowspeedStatus(_port, _bready, _result) __lowspeedStatus(_port, _bready, _result) |
Get lowspeed status. | |
#define | LowspeedCheckStatus(_port, _result) __lowspeedCheckStatus(_port, _result) |
Check lowspeed status. | |
#define | LowspeedBytesReady(_port, _bready) __lowspeedBytesReady(_port, _bready) |
Get lowspeed bytes ready. | |
#define | LowspeedWrite(_port, _retlen, _buffer, _result) __lowspeedWrite(_port, _retlen, _buffer, _result) |
Write lowspeed data. | |
#define | LowspeedRead(_port, _buflen, _buffer, _result) __lowspeedRead(_port, _buflen, _buffer, _result) |
Read lowspeed data. | |
#define | ReadI2CBytes(_port, _inbuf, _count, _outbuf, _result) __ReadI2CBytes(_port, _inbuf, _count, _outbuf, _result) |
Perform an I2C write/read transaction. | |
#define | ReadI2CDeviceInfo(_port, _i2caddr, _info, _strVal) __ReadI2CDeviceInfo(_port, _i2caddr, _info, _strVal) |
Read I2C device information. | |
#define | ReadI2CVersion(_port, _i2caddr, _strVal) ReadI2CDeviceInfo(_port, _i2caddr, I2C_REG_VERSION, _strVal) |
Read I2C device version. | |
#define | ReadI2CVendorId(_port, _i2caddr, _strVal) ReadI2CDeviceInfo(_port, _i2caddr, I2C_REG_VENDOR_ID, _strVal) |
Read I2C device vendor. | |
#define | ReadI2CDeviceId(_port, _i2caddr, _strVal) ReadI2CDeviceInfo(_port, _i2caddr, I2C_REG_DEVICE_ID, _strVal) |
Read I2C device identifier. | |
#define | ReadI2CRegister(_port, _i2caddr, _reg, _out, _result) __MSReadValue(_port, _i2caddr, _reg, 1, _out, _result) |
Read I2C register. | |
#define | WriteI2CRegister(_port, _i2caddr, _reg, _val, _result) __MSWriteToRegister(_port, _i2caddr, _reg, _val, _result) |
Write I2C register. | |
#define | I2CSendCommand(_port, _i2caddr, _cmd, _result) __I2CSendCmd(_port, _i2caddr, _cmd, _result) |
Send an I2C command. | |
#define | SetI2COptions(_port, _options) __setI2COptions(_port, _options) |
Set I2C options. |
Functions for accessing and modifying low speed module features.