ST Americas mbed Team / Nucleo_Sensor_Shield

Dependents:   Nucleo_Sensors_Demo m2x-temp_ethernet_demo m2x-MEMS_ACKme_Wifi_demo m2x_MEMS_Ublox_Cellular_demo ... more

Fork of Nucleo_Sensor_Shield by Daniel Griffin

Embed: (wiki syntax)

« Back to documentation index

LSM6DS0 Class Reference

LSM6DS0 Class Reference

Class representing a HTS221 sensor component. More...

#include <lsm6ds0.h>

Public Member Functions

 LSM6DS0 (DevI2C &i2c)
 Constructor.
void Gyro_GetAxes (AxesRaw_TypeDef *pData)
 Read data from LSM6DS0 Gyroscope and calculate angular rate in mdps.
void Gyro_GetAxesRaw (int16_t *pData)
 Read raw data from LSM6DS0 Gyroscope output register.
void Acc_GetAxes (AxesRaw_TypeDef *pData)
 Read data from LSM6DS0 Accelerometer and calculate linear acceleration in mg.
void Acc_GetAxesRaw (int16_t *pData)
 Read raw data from LSM6DS0 Accelerometer output register.
void Init ()
 Set LSM6DS0 Initialization.
uint8_t ReadID (void)
 Read ID address of HTS221.

Detailed Description

Class representing a HTS221 sensor component.

Definition at line 49 of file lsm6ds0.h.


Constructor & Destructor Documentation

LSM6DS0 ( DevI2C i2c )

Constructor.

Parameters:

Definition at line 55 of file lsm6ds0.h.


Member Function Documentation

void Acc_GetAxes ( AxesRaw_TypeDef *  pData )

Read data from LSM6DS0 Accelerometer and calculate linear acceleration in mg.

Parameters:
float*pfData
Return values:
None.

Definition at line 131 of file lsm6ds0.cpp.

void Acc_GetAxesRaw ( int16_t *  pData )

Read raw data from LSM6DS0 Accelerometer output register.

Parameters:
float*pfData
Return values:
None.

Definition at line 172 of file lsm6ds0.cpp.

void Gyro_GetAxes ( AxesRaw_TypeDef *  pData )

Read data from LSM6DS0 Gyroscope and calculate angular rate in mdps.

Parameters:
float*pfData
Return values:
None.

Definition at line 51 of file lsm6ds0.cpp.

void Gyro_GetAxesRaw ( int16_t *  pData )

Read raw data from LSM6DS0 Gyroscope output register.

Parameters:
float*pfData
Return values:
None.

Definition at line 93 of file lsm6ds0.cpp.

void Init (  )

Set LSM6DS0 Initialization.

Parameters:
InitStruct,:it contains the configuration setting for the LSM6DS0.
Return values:
None

Definition at line 227 of file lsm6ds0.cpp.

uint8_t ReadID ( void   )

Read ID address of HTS221.

Parameters:
DeviceID address
Return values:
IDname

Definition at line 209 of file lsm6ds0.cpp.