void lis3mdl_read_temp(const lis3mdl_t *dev, int16_t *value)
Reads the temperature value of LIS3MDL.
int lis3mdl_init(lis3mdl_t *dev, const lis3mdl_params_t *params)
Initialize a new LIS3DML device.
@ LIS3MDL_Z_MODE_LOW
Low-power mode.
@ LIS3MDL_ODR_2_5Hz
5.000Hz
void lis3mdl_enable(const lis3mdl_t *dev)
Enable the LIS3MDL device.
lis3mdl_odr_t
Output data rate [Hz] for LIS3MDL.
Device descriptor for LIS3MDL sensor.
unsigned int i2c_t
Default i2c_t type definition.
lis3mdl_op_t op_mode
Operation mode.
@ LIS3MDL_SCALE_8G
+- 8 gauss
@ LIS3MDL_SCALE_12G
+- 12 gauss
@ LIS3MDL_ODR_80HZ
80.000Hz
lis3mdl_z_mode_t
Operating mode of z-axis for LIS3MDL.
lis3mdl_params_t params
Initialization parameters.
@ LIS3MDL_XY_MODE_LOW
Low-power mode.
@ LIS3DML_ODR_20HZ
20.000Hz
3d data container of the LIS3MDL sensor
@ LIS3MDL_SCALE_4G
+- 4 gauss
@ LIS3MDL_Z_MODE_ULTRA
Ultra-High-performance mode.
@ LIS3MDL_ODR_10Hz
10.000Hz
@ LIS3MDL_OP_SNGL_CONV
Single-conversion mode.
@ LIS3MDL_SCALE_16G
+- 16 gauss
int16_t y_axis
Magnometer data from y_axis.
int16_t x_axis
Magnometer data from x-axis.
@ LIS3DML_ODR_40HZ
40.000Hz
lis3mdl_xy_mode_t xy_mode
Power mode of x- and y-axis.
lis3mdl_scale_t
Scale [gauss] for LIS3MDL.
@ LIS3MDL_XY_MODE_HIGH
High-performance mode.
@ LIS3MDL_Z_MODE_HIGH
High-performance mode.
@ LIS3MDL_ODR_0_625Hz
0.625Hz
lis3mdl_scale_t scale
Scale factor.
@ LIS3MDL_OP_CONT_CONV
Continous-conversion mode.
Low-level GPIO peripheral driver interface definitions.
Device initialization parameters.
void lis3mdl_disable(const lis3mdl_t *dev)
Disable the LIS3MDL device.
lis3mdl_xy_mode_t
Operating mode of x- and y-axis for LIS3MDL.
int16_t z_axis
Magnometer data from z_axis.
@ LIS3MDL_ODR_1_25Hz
1.250Hz
@ LIS3MDL_OP_PDOWN
Power-down mode.
@ LIS3MDL_XY_MODE_ULTRA
Ultra-High-performance mode.
uint8_t addr
Magnometer I2C address.
lis3mdl_z_mode_t z_mode
Power mode of z-axis.
@ LIS3MDL_XY_MODE_MEDIUM
Medium-performance mode.
lis3mdl_odr_t odr
Output data rate.
@ LIS3MDL_Z_MODE_MEDIUM
Medium-performance mode.
void lis3mdl_read_mag(const lis3mdl_t *dev, lis3mdl_3d_data_t *data)
Reads the magnometer value of LIS3MDL.
Low-level I2C peripheral driver interface definition.
lis3mdl_op_t
Operating modes.