11 #ifndef DRV_I2C_LSM303_H_
12 #define DRV_I2C_LSM303_H_
43 return (int16_t)(data[0] | (data[1] << 8));
Axis structure for 3D information.
bool _lsm303RmwReg(I2C_Device *dev, uint8_t addr, uint8_t reg, uint8_t val, uint8_t mask)
Internal function shared for both LSM303 drivers.
struct Lsm303Axis_ Lsm303Axis
Axis structure for 3D information.
static uint16_t _lsm303RawDataToI16(uint8_t *data)
Function shared for both LSM303 drivers.
void _lsm303RawDataToAxis(uint8_t *data, Lsm303Axis *axis)
Internal function shared for both LSM303 drivers.
Structure defines OpenCores I2C Device.
OpenCores I2C device driver.