Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
LIS3MDL Class Reference
Class representing a HTS221 sensor component. More...
#include <lis3mdl.h>
| Public Member Functions | |
| LIS3MDL (DevI2C &i2c) | |
| Constructor. | |
| void | GetAxes (AxesRaw_TypeDef *pData) | 
| Read data from LIS3MDL Magnetic sensor and calculate Magnetic in mgauss. | |
| void | GetAxesRaw (int16_t *pData) | 
| Read raw data from LIS3MDL Magnetic sensor output register. | |
| void | Init () | 
| Set HTS221 Initialization. | |
| uint8_t | ReadID (void) | 
| Read ID address of HTS221. | |
Detailed Description
Class representing a HTS221 sensor component.
Definition at line 49 of file lis3mdl.h.
Constructor & Destructor Documentation
Member Function Documentation
| void GetAxes | ( | AxesRaw_TypeDef * | pData ) | 
Read data from LIS3MDL Magnetic sensor and calculate Magnetic in mgauss.
- Parameters:
- 
  float *pfData 
- Return values:
- 
  None. 
Definition at line 51 of file lis3mdl.cpp.
| void GetAxesRaw | ( | int16_t * | pData ) | 
Read raw data from LIS3MDL Magnetic sensor output register.
- Parameters:
- 
  float *pfData 
- Return values:
- 
  None. 
Definition at line 94 of file lis3mdl.cpp.
| void Init | ( | ) | 
Set HTS221 Initialization.
- Parameters:
- 
  InitStruct,: it contains the configuration setting for the HTS221. 
- Return values:
- 
  None 
Definition at line 143 of file lis3mdl.cpp.
| uint8_t ReadID | ( | void | ) | 
Read ID address of HTS221.
- Parameters:
- 
  Device ID address 
- Return values:
- 
  ID name 
Definition at line 126 of file lis3mdl.cpp.
Generated on Tue Jul 12 2022 14:47:53 by
 1.7.2
 1.7.2 
    