Creating a project about IKS10A2 for TT_Mxx
LSM6DSLSensor Class Reference
Abstract class of an LSM6DSL Inertial Measurement Unit (IMU) 6 axes sensor. More...
#include <LSM6DSLSensor.h>
Public Member Functions | |
LSM6DSLSensor (TwoWire *i2c) | |
Constructor. | |
LSM6DSLSensor (TwoWire *i2c, uint8_t address) | |
Constructor. | |
LSM6DSLStatusTypeDef | Enable_X (void) |
Enable LSM6DSL Accelerator. | |
LSM6DSLStatusTypeDef | Enable_G (void) |
Enable LSM6DSL Gyroscope. | |
LSM6DSLStatusTypeDef | Disable_X (void) |
Disable LSM6DSL Accelerator. | |
LSM6DSLStatusTypeDef | Disable_G (void) |
Disable LSM6DSL Gyroscope. | |
LSM6DSLStatusTypeDef | ReadID (uint8_t *p_id) |
Read ID of LSM6DSL Accelerometer and Gyroscope. | |
LSM6DSLStatusTypeDef | Get_X_Axes (int32_t *pData) |
Read data from LSM6DSL Accelerometer. | |
LSM6DSLStatusTypeDef | Get_G_Axes (int32_t *pData) |
Read data from LSM6DSL Gyroscope. | |
LSM6DSLStatusTypeDef | Get_X_Sensitivity (float *pfData) |
Read Accelerometer Sensitivity. | |
LSM6DSLStatusTypeDef | Get_G_Sensitivity (float *pfData) |
Read Gyroscope Sensitivity. | |
LSM6DSLStatusTypeDef | Get_X_AxesRaw (int16_t *pData) |
Read raw data from LSM6DSL Accelerometer. | |
LSM6DSLStatusTypeDef | Get_G_AxesRaw (int16_t *pData) |
Read raw data from LSM6DSL Gyroscope. | |
LSM6DSLStatusTypeDef | Get_X_ODR (float *odr) |
Read LSM6DSL Accelerometer output data rate. | |
LSM6DSLStatusTypeDef | Get_G_ODR (float *odr) |
Read LSM6DSL Gyroscope output data rate. | |
LSM6DSLStatusTypeDef | Set_X_ODR (float odr) |
Set LSM6DSL Accelerometer output data rate. | |
LSM6DSLStatusTypeDef | Set_G_ODR (float odr) |
Set LSM6DSL Gyroscope output data rate. | |
LSM6DSLStatusTypeDef | Get_X_FS (float *fullScale) |
Read LSM6DSL Accelerometer full scale. | |
LSM6DSLStatusTypeDef | Get_G_FS (float *fullScale) |
Read LSM6DSL Gyroscope full scale. | |
LSM6DSLStatusTypeDef | Set_X_FS (float fullScale) |
Set LSM6DSL Accelerometer full scale. | |
LSM6DSLStatusTypeDef | Set_G_FS (float fullScale) |
Set LSM6DSL Gyroscope full scale. | |
LSM6DSLStatusTypeDef | Enable_Free_Fall_Detection (void) |
Enable free fall detection. | |
LSM6DSLStatusTypeDef | Enable_Free_Fall_Detection (LSM6DSL_Interrupt_Pin_t int_pin) |
Enable free fall detection. | |
LSM6DSLStatusTypeDef | Disable_Free_Fall_Detection (void) |
Disable free fall detection. | |
LSM6DSLStatusTypeDef | Set_Free_Fall_Threshold (uint8_t thr) |
Set the free fall detection threshold for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Pedometer (void) |
Enable the pedometer feature for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Disable_Pedometer (void) |
Disable the pedometer feature for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_Step_Counter (uint16_t *step_count) |
Get the step counter for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Reset_Step_Counter (void) |
Reset of the step counter for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Set_Pedometer_Threshold (uint8_t thr) |
Set the pedometer threshold for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Tilt_Detection (void) |
Enable the tilt detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Tilt_Detection (LSM6DSL_Interrupt_Pin_t int_pin) |
Enable the tilt detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Disable_Tilt_Detection (void) |
Disable the tilt detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Wake_Up_Detection (void) |
Enable the wake up detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Wake_Up_Detection (LSM6DSL_Interrupt_Pin_t int_pin) |
Enable the wake up detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Disable_Wake_Up_Detection (void) |
Disable the wake up detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Set_Wake_Up_Threshold (uint8_t thr) |
Set the wake up threshold for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Single_Tap_Detection (void) |
Enable the single tap detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Single_Tap_Detection (LSM6DSL_Interrupt_Pin_t int_pin) |
Enable the single tap detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Disable_Single_Tap_Detection (void) |
Disable the single tap detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Double_Tap_Detection (void) |
Enable the double tap detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_Double_Tap_Detection (LSM6DSL_Interrupt_Pin_t int_pin) |
Enable the double tap detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Disable_Double_Tap_Detection (void) |
Disable the double tap detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Set_Tap_Threshold (uint8_t thr) |
Set the tap threshold for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Set_Tap_Shock_Time (uint8_t time) |
Set the tap shock time window for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Set_Tap_Quiet_Time (uint8_t time) |
Set the tap quiet time window for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Set_Tap_Duration_Time (uint8_t time) |
Set the tap duration of the time window for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_6D_Orientation (void) |
Enable the 6D orientation detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Enable_6D_Orientation (LSM6DSL_Interrupt_Pin_t int_pin) |
Enable the 6D orientation detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Disable_6D_Orientation (void) |
Disable the 6D orientation detection for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_6D_Orientation_XL (uint8_t *xl) |
Get the 6D orientation XL axis for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_6D_Orientation_XH (uint8_t *xh) |
Get the 6D orientation XH axis for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_6D_Orientation_YL (uint8_t *yl) |
Get the 6D orientation YL axis for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_6D_Orientation_YH (uint8_t *yh) |
Get the 6D orientation YH axis for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_6D_Orientation_ZL (uint8_t *zl) |
Get the 6D orientation ZL axis for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_6D_Orientation_ZH (uint8_t *zh) |
Get the 6D orientation ZH axis for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | Get_Event_Status (LSM6DSL_Event_Status_t *status) |
Get the status of all hardware events for LSM6DSL accelerometer sensor. | |
LSM6DSLStatusTypeDef | ReadReg (uint8_t reg, uint8_t *data) |
Read the data from register. | |
LSM6DSLStatusTypeDef | WriteReg (uint8_t reg, uint8_t data) |
Write the data to register. | |
uint8_t | IO_Read (uint8_t *pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead) |
Utility function to read data. | |
uint8_t | IO_Write (uint8_t *pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite) |
Utility function to write data. |
Detailed Description
Abstract class of an LSM6DSL Inertial Measurement Unit (IMU) 6 axes sensor.
Definition at line 134 of file LSM6DSLSensor.h.
Constructor & Destructor Documentation
LSM6DSLSensor | ( | TwoWire * | i2c ) |
Constructor.
- Parameters:
-
i2c object of an helper class which handles the I2C peripheral address the address of the component's instance
Definition at line 52 of file LSM6DSLSensor.cpp.
LSM6DSLSensor | ( | TwoWire * | i2c, |
uint8_t | address | ||
) |
Constructor.
- Parameters:
-
i2c object of an helper class which handles the I2C peripheral address the address of the component's instance
Definition at line 112 of file LSM6DSLSensor.cpp.
Member Function Documentation
LSM6DSLStatusTypeDef Disable_6D_Orientation | ( | void | ) |
Disable the 6D orientation detection for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1875 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_Double_Tap_Detection | ( | void | ) |
Disable the double tap detection for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1674 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_Free_Fall_Detection | ( | void | ) |
Disable free fall detection.
- Parameters:
-
None
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 989 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_G | ( | void | ) |
Disable LSM6DSL Gyroscope.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 245 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_Pedometer | ( | void | ) |
Disable the pedometer feature for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1090 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_Single_Tap_Detection | ( | void | ) |
Disable the single tap detection for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1499 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_Tilt_Detection | ( | void | ) |
Disable the tilt detection for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1240 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_Wake_Up_Detection | ( | void | ) |
Disable the wake up detection for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1345 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Disable_X | ( | void | ) |
Disable LSM6DSL Accelerator.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 216 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_6D_Orientation | ( | void | ) |
Enable the 6D orientation detection for LSM6DSL accelerometer sensor.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1810 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_6D_Orientation | ( | LSM6DSL_Interrupt_Pin_t | int_pin ) |
Enable the 6D orientation detection for LSM6DSL accelerometer sensor.
- Parameters:
-
int_pin the interrupt pin to be used
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1821 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Double_Tap_Detection | ( | void | ) |
Enable the double tap detection for LSM6DSL accelerometer sensor.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1567 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Double_Tap_Detection | ( | LSM6DSL_Interrupt_Pin_t | int_pin ) |
Enable the double tap detection for LSM6DSL accelerometer sensor.
- Parameters:
-
int_pin the interrupt pin to be used
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1578 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Free_Fall_Detection | ( | LSM6DSL_Interrupt_Pin_t | int_pin ) |
Enable free fall detection.
- Parameters:
-
int_pin the interrupt pin to be used
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 910 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Free_Fall_Detection | ( | void | ) |
Enable free fall detection.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 899 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_G | ( | void | ) |
Enable LSM6DSL Gyroscope.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 193 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Pedometer | ( | void | ) |
Enable the pedometer feature for LSM6DSL accelerometer sensor.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 26Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1045 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Single_Tap_Detection | ( | LSM6DSL_Interrupt_Pin_t | int_pin ) |
Enable the single tap detection for LSM6DSL accelerometer sensor.
- Parameters:
-
int_pin the interrupt pin to be used
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1411 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Single_Tap_Detection | ( | void | ) |
Enable the single tap detection for LSM6DSL accelerometer sensor.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1400 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Tilt_Detection | ( | void | ) |
Enable the tilt detection for LSM6DSL accelerometer sensor.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 26Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1175 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Tilt_Detection | ( | LSM6DSL_Interrupt_Pin_t | int_pin ) |
Enable the tilt detection for LSM6DSL accelerometer sensor.
- Parameters:
-
int_pin the interrupt pin to be used
- Note:
- This function sets the LSM6DSL accelerometer ODR to 26Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1186 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Wake_Up_Detection | ( | void | ) |
Enable the wake up detection for LSM6DSL accelerometer sensor.
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1274 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_Wake_Up_Detection | ( | LSM6DSL_Interrupt_Pin_t | int_pin ) |
Enable the wake up detection for LSM6DSL accelerometer sensor.
- Parameters:
-
int_pin the interrupt pin to be used
- Note:
- This function sets the LSM6DSL accelerometer ODR to 416Hz and the LSM6DSL accelerometer full scale to 2g
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1285 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Enable_X | ( | void | ) |
Enable LSM6DSL Accelerator.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 170 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_6D_Orientation_XH | ( | uint8_t * | xh ) |
Get the 6D orientation XH axis for LSM6DSL accelerometer sensor.
- Parameters:
-
xh the pointer to the 6D orientation XH axis
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1938 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_6D_Orientation_XL | ( | uint8_t * | xl ) |
Get the 6D orientation XL axis for LSM6DSL accelerometer sensor.
- Parameters:
-
xl the pointer to the 6D orientation XL axis
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1909 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_6D_Orientation_YH | ( | uint8_t * | yh ) |
Get the 6D orientation YH axis for LSM6DSL accelerometer sensor.
- Parameters:
-
yh the pointer to the 6D orientation YH axis
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1996 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_6D_Orientation_YL | ( | uint8_t * | yl ) |
Get the 6D orientation YL axis for LSM6DSL accelerometer sensor.
- Parameters:
-
yl the pointer to the 6D orientation YL axis
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1967 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_6D_Orientation_ZH | ( | uint8_t * | zh ) |
Get the 6D orientation ZH axis for LSM6DSL accelerometer sensor.
- Parameters:
-
zh the pointer to the 6D orientation ZH axis
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 2054 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_6D_Orientation_ZL | ( | uint8_t * | zl ) |
Get the 6D orientation ZL axis for LSM6DSL accelerometer sensor.
- Parameters:
-
zl the pointer to the 6D orientation ZL axis
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 2025 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_Event_Status | ( | LSM6DSL_Event_Status_t * | status ) |
Get the status of all hardware events for LSM6DSL accelerometer sensor.
- Parameters:
-
status the pointer to the status of all hardware events
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 2083 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_G_Axes | ( | int32_t * | pData ) |
Read data from LSM6DSL Gyroscope.
- Parameters:
-
pData the pointer where the gyroscope data are stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 326 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_G_AxesRaw | ( | int16_t * | pData ) |
Read raw data from LSM6DSL Gyroscope.
- Parameters:
-
pData the pointer where the gyroscope raw data are stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 471 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_G_FS | ( | float * | fullScale ) |
Read LSM6DSL Gyroscope full scale.
- Parameters:
-
fullScale the pointer to the full scale
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 792 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_G_ODR | ( | float * | odr ) |
Read LSM6DSL Gyroscope output data rate.
- Parameters:
-
odr the pointer to the output data rate
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 551 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_G_Sensitivity | ( | float * | pfData ) |
Read Gyroscope Sensitivity.
- Parameters:
-
pfData the pointer where the gyroscope sensitivity is stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 394 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_Step_Counter | ( | uint16_t * | step_count ) |
Get the step counter for LSM6DSL accelerometer sensor.
- Parameters:
-
step_count the pointer to the step counter
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1124 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_X_Axes | ( | int32_t * | pData ) |
Read data from LSM6DSL Accelerometer.
- Parameters:
-
pData the pointer where the accelerometer data are stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 296 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_X_AxesRaw | ( | int16_t * | pData ) |
Read raw data from LSM6DSL Accelerometer.
- Parameters:
-
pData the pointer where the accelerometer raw data are stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 448 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_X_FS | ( | float * | fullScale ) |
Read LSM6DSL Accelerometer full scale.
- Parameters:
-
fullScale the pointer to the full scale
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 756 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_X_ODR | ( | float * | odr ) |
Read LSM6DSL Accelerometer output data rate.
- Parameters:
-
odr the pointer to the output data rate
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 494 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Get_X_Sensitivity | ( | float * | pfData ) |
Read Accelerometer Sensitivity.
- Parameters:
-
pfData the pointer where the accelerometer sensitivity is stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 356 of file LSM6DSLSensor.cpp.
uint8_t IO_Read | ( | uint8_t * | pBuffer, |
uint8_t | RegisterAddr, | ||
uint16_t | NumByteToRead | ||
) |
Utility function to read data.
- Parameters:
-
pBuffer,: pointer to data to be read. RegisterAddr,: specifies internal address register to be read. NumByteToRead,: number of bytes to be read.
- Return values:
-
0 if ok, an error code otherwise.
Definition at line 204 of file LSM6DSLSensor.h.
uint8_t IO_Write | ( | uint8_t * | pBuffer, |
uint8_t | RegisterAddr, | ||
uint16_t | NumByteToWrite | ||
) |
Utility function to write data.
- Parameters:
-
pBuffer,: pointer to data to be written. RegisterAddr,: specifies internal address register to be written. NumByteToWrite,: number of bytes to write.
- Return values:
-
0 if ok, an error code otherwise.
Definition at line 244 of file LSM6DSLSensor.h.
LSM6DSLStatusTypeDef ReadID | ( | uint8_t * | p_id ) |
Read ID of LSM6DSL Accelerometer and Gyroscope.
- Parameters:
-
p_id the pointer where the ID of the device is stored
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 275 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef ReadReg | ( | uint8_t | reg, |
uint8_t * | data | ||
) |
Read the data from register.
- Parameters:
-
reg register address data register data
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 2189 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Reset_Step_Counter | ( | void | ) |
Reset of the step counter for LSM6DSL accelerometer sensor.
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1138 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Free_Fall_Threshold | ( | uint8_t | thr ) |
Set the free fall detection threshold for LSM6DSL accelerometer sensor.
- Parameters:
-
thr the threshold to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1029 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_G_FS | ( | float | fullScale ) |
Set LSM6DSL Gyroscope full scale.
- Parameters:
-
fullScale the full scale to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 863 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_G_ODR | ( | float | odr ) |
Set LSM6DSL Gyroscope output data rate.
- Parameters:
-
odr the output data rate to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 682 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Pedometer_Threshold | ( | uint8_t | thr ) |
Set the pedometer threshold for LSM6DSL accelerometer sensor.
- Parameters:
-
thr the threshold to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1160 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Tap_Duration_Time | ( | uint8_t | time ) |
Set the tap duration of the time window for LSM6DSL accelerometer sensor.
- Parameters:
-
time the duration of the time window to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1795 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Tap_Quiet_Time | ( | uint8_t | time ) |
Set the tap quiet time window for LSM6DSL accelerometer sensor.
- Parameters:
-
time the quiet time window to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1780 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Tap_Shock_Time | ( | uint8_t | time ) |
Set the tap shock time window for LSM6DSL accelerometer sensor.
- Parameters:
-
time the shock time window to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1765 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Tap_Threshold | ( | uint8_t | thr ) |
Set the tap threshold for LSM6DSL accelerometer sensor.
- Parameters:
-
thr the threshold to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1750 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_Wake_Up_Threshold | ( | uint8_t | thr ) |
Set the wake up threshold for LSM6DSL accelerometer sensor.
- Parameters:
-
thr the threshold to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 1385 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_X_FS | ( | float | fullScale ) |
Set LSM6DSL Accelerometer full scale.
- Parameters:
-
fullScale the full scale to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 841 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef Set_X_ODR | ( | float | odr ) |
Set LSM6DSL Accelerometer output data rate.
- Parameters:
-
odr the output data rate to be set
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 608 of file LSM6DSLSensor.cpp.
LSM6DSLStatusTypeDef WriteReg | ( | uint8_t | reg, |
uint8_t | data | ||
) |
Write the data to register.
- Parameters:
-
reg register address data register data
- Return values:
-
LSM6DSL_STATUS_OK in case of success, an error code otherwise
Definition at line 2206 of file LSM6DSLSensor.cpp.
Generated on Tue Jul 12 2022 19:05:13 by 1.7.2