/* Sets the data rate for the ADXL345 (controls power consumption)  */
err_t adxl345SetDataRate(adxl345_dataRate_t dataRate)
/* Sets the data rate for the ADXL345 (controls power consumption)  */
err_t adxl345SetDataRate(adxl345_dataRate_t dataRate)
{
  ASSERT_STATUS(adxl345Write8(ADXL345_REG_BW_RATE, dataRate));
  return ERROR_NONE;
}