cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DS3 LIS2MDL LPS22HB HUB

Alex Dim
Associate II

Hello,

i studied extensively the "sensor_hub_lis2mdl_lps22hb_no_fifo_simple" example so i can use the LSM6DS3 with an external magnetometer. There are 4 lines that i cannot understand, in the main example there is the code below

   /*
   * Configure LIS2MDL on the I2C master line
   */
 
 lis2mdl_operating_mode_set(&mag_ctx, LIS2MDL_CONTINUOUS_MODE);
  lis2mdl_offset_temp_comp_set(&mag_ctx, PROPERTY_ENABLE);
  lis2mdl_block_data_update_set(&mag_ctx, PROPERTY_ENABLE);
  lis2mdl_data_rate_set(&mag_ctx, LIS2MDL_ODR_50Hz);

that passes all the desirable options to the registers of the external LIS2MDL magnetometer, i cannot understand how this is possible since it doesn't use the sensor-hub pass-through feature or the required steps to write to an external slave sensor.

Thank you in advance, you have been very helpful

0 REPLIES 0