Soldered LSM6DS3 Arduino library 1.0.0
Library for LSM6DS3 accelerometer and gyroscope by Soldered
Loading...
Searching...
No Matches
Soldered_LSM6DS3 Class Reference

#include <LSM6DS3-SOLDERED.h>

Inherits LSM6DS3Sensor.

Public Member Functions

 Soldered_LSM6DS3 (uint8_t address=LSM6DS3_ACC_GYRO_I2C_ADDRESS_HIGH, TwoWire *i2c=&Wire)
 
- Public Member Functions inherited from LSM6DS3Sensor
 LSM6DS3Sensor (TwoWire *i2c, uint8_t address=LSM6DS3_ACC_GYRO_I2C_ADDRESS_HIGH)
 
LSM6DS3StatusTypeDef begin (void)
 Configure the sensor in order to be used.
 
LSM6DS3StatusTypeDef end (void)
 Disable the sensor and relative resources.
 
LSM6DS3StatusTypeDef enableAccelerator (void)
 Enable LSM6DS3 Accelerator.
 
LSM6DS3StatusTypeDef enableGyro (void)
 Enable LSM6DS3 Gyroscope.
 
LSM6DS3StatusTypeDef disableAccelerator (void)
 Disable LSM6DS3 Accelerator.
 
LSM6DS3StatusTypeDef disableGyro (void)
 Disable LSM6DS3 Gyroscope.
 
LSM6DS3StatusTypeDef readId (uint8_t *p_id)
 Read ID of LSM6DS3 Accelerometer and Gyroscope.
 
LSM6DS3StatusTypeDef getAcceleratorAxes (int32_t *pData)
 Read data from LSM6DS3 Accelerometer.
 
LSM6DS3StatusTypeDef getGyroAxes (int32_t *pData)
 Read data from LSM6DS3 Gyroscope.
 
LSM6DS3StatusTypeDef getAcceleratorSensitivity (float *pfData)
 Read Accelerometer Sensitivity.
 
LSM6DS3StatusTypeDef getGyroSensitivity (float *pfData)
 Read Gyroscope Sensitivity.
 
LSM6DS3StatusTypeDef getAcceleratorAxesRaw (int16_t *pData)
 Read raw data from LSM6DS3 Accelerometer.
 
LSM6DS3StatusTypeDef getGyroAxesRaw (int16_t *pData)
 Read raw data from LSM6DS3 Gyroscope.
 
LSM6DS3StatusTypeDef getAcceleratorOdr (float *odr)
 Read LSM6DS3 Accelerometer output data rate.
 
LSM6DS3StatusTypeDef getGyroOdr (float *odr)
 Read LSM6DS3 Gyroscope output data rate.
 
LSM6DS3StatusTypeDef setAcceleratorOdr (float odr)
 Set LSM6DS3 Accelerometer output data rate.
 
LSM6DS3StatusTypeDef setGyroOdr (float odr)
 Set LSM6DS3 Gyroscope output data rate.
 
LSM6DS3StatusTypeDef getAcceleratorFullScale (float *fullScale)
 Read LSM6DS3 Accelerometer full scale.
 
LSM6DS3StatusTypeDef getGyroFullScale (float *fullScale)
 Read LSM6DS3 Gyroscope full scale.
 
LSM6DS3StatusTypeDef setAcceleratorFullScale (float fullScale)
 Set LSM6DS3 Accelerometer full scale.
 
LSM6DS3StatusTypeDef setGyroFullScale (float fullScale)
 Set LSM6DS3 Gyroscope full scale.
 
LSM6DS3StatusTypeDef enableFreeFallDetection (void)
 Enable free fall detection.
 
LSM6DS3StatusTypeDef enableFreeFallDetection (LSM6DS3_Interrupt_Pin_t int_pin)
 Enable free fall detection.
 
LSM6DS3StatusTypeDef disableFreeFallDetection (void)
 Disable free fall detection.
 
LSM6DS3StatusTypeDef setFreeFallThreshold (uint8_t thr)
 Set the free fall detection threshold for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enablePedometer (void)
 Enable the pedometer feature for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef disablePedometer (void)
 Disable the pedometer feature for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef getStepCounter (uint16_t *step_count)
 Get the step counter for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef resetStepCounter (void)
 Reset of the step counter for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef setPedometerThreshold (uint8_t thr)
 Set the pedometer threshold for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableTiltDetection (void)
 Enable the tilt detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableTiltDetection (LSM6DS3_Interrupt_Pin_t int_pin)
 Enable the tilt detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef disableTiltDetection (void)
 Disable the tilt detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableWakeUpDetection (void)
 Enable the wake up detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableWakeUpDetection (LSM6DS3_Interrupt_Pin_t int_pin)
 Enable the wake up detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef disableWakeUpDetection (void)
 Disable the wake up detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef setWakeUpThreshold (uint8_t thr)
 Set the wake up threshold for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableSingleTapDetection (void)
 Enable the single tap detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableSingleTapDetection (LSM6DS3_Interrupt_Pin_t int_pin)
 Enable the single tap detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef disableSingleTapDetection (void)
 Disable the single tap detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableDoubleTapDetection (void)
 Enable the double tap detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enableDoubleTapDetection (LSM6DS3_Interrupt_Pin_t int_pin)
 Enable the double tap detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef disableDoubleTapDetection (void)
 Disable the double tap detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef setTapThreshold (uint8_t thr)
 Set the tap threshold for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef setTapShockTime (uint8_t time)
 Set the tap shock time window for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef setTapQuietTime (uint8_t time)
 Set the tap quiet time window for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef setTapDurationTime (uint8_t time)
 Set the tap duration of the time window for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enable6dOrientation (void)
 Enable the 6D orientation detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef enable6dOrientation (LSM6DS3_Interrupt_Pin_t int_pin)
 Enable the 6D orientation detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef disable6dOrientation (void)
 Disable the 6D orientation detection for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef get6dOrientationXl (uint8_t *xl)
 Get the 6D orientation XL axis for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef get6dOrientationXh (uint8_t *xh)
 Get the 6D orientation XH axis for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef get6dOrientationYl (uint8_t *yl)
 Get the 6D orientation YL axis for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef get6dOrientationYh (uint8_t *yh)
 Get the 6D orientation YH axis for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef get6dOrientationZl (uint8_t *zl)
 Get the 6D orientation ZL axis for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef get6dOrientationZh (uint8_t *zh)
 Get the 6D orientation ZH axis for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef getEventStatus (LSM6DS3_Event_Status_t *status)
 Get the status of all hardware events for LSM6DS3 accelerometer sensor.
 
LSM6DS3StatusTypeDef readRegister (uint8_t reg, uint8_t *data)
 Read the data from register.
 
LSM6DS3StatusTypeDef writeRegister (uint8_t reg, uint8_t data)
 Write the data to register.
 
uint8_t ioRead (uint8_t *pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead)
 Utility function to read data.
 
uint8_t ioWrite (uint8_t *pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite)
 Utility function to write data.
 

Constructor & Destructor Documentation

◆ Soldered_LSM6DS3()

Soldered_LSM6DS3::Soldered_LSM6DS3 ( uint8_t address = LSM6DS3_ACC_GYRO_I2C_ADDRESS_HIGH,
TwoWire * i2c = &Wire )
inline

The documentation for this class was generated from the following file: