19#ifndef LSM6DSO32_REGS_H
99 return ((float_t)lsb) * 0.122f;
104 return ((float_t)lsb) * 0.244f;
109 return ((float_t)lsb) * 0.488f;
114 return ((float_t)lsb) * 0.976f;
119 return ((float_t)lsb) * 4.375f;
124 return ((float_t)lsb) * 8.75f;
129 return ((float_t)lsb) * 17.50f;
134 return ((float_t)lsb) * 35.0f;
139 return ((float_t)lsb) * 70.0f;
144 return (((float_t)lsb / 256.0f) + 25.0f);
149 return ((float_t)lsb * 25000.0f);
179 (uint8_t *)&ctrl1_xl, 1);
183 ctrl1_xl.
fs_xl = (uint8_t) val & 0x03U;
185 (uint8_t *)&ctrl1_xl, 1);
252 (uint8_t *)&ctrl1_xl, 1);
258 (uint8_t *)&ctrl1_xl, 1);
264 (uint8_t *)&func_cfg_access, 1);
274 ctrl5_c.
xl_ulp_en = ((uint8_t)val & 0x20U) >> 5;
276 (uint8_t *) &ctrl5_c, 1);
286 ctrl6_c.
xl_hm_mode = ((uint8_t)val & 0x10U) >> 4;
288 (uint8_t *) &ctrl6_c, 1);
294 (uint8_t *)&ctrl1_xl, 1);
299 ctrl1_xl.
odr_xl = (uint8_t) val & 0x0FU;
301 (uint8_t *)&ctrl1_xl, 1);
326 (uint8_t *)&ctrl1_xl, 1);
331 (uint8_t *)&func_cfg_access, 1);
465 reg.
fs_g = (uint8_t) val;
548 ctrl7_g.
g_hm_mode = ((uint8_t)val & 0x10U) >> 4;
559 ctrl2_g.
odr_g = (uint8_t)val & 0x0FU;
1155 *val = (*val * 256U) + buff[2];
1156 *val = (*val * 256U) + buff[1];
1157 *val = (*val * 256U) + buff[0];
1258 val[0] = (int16_t)buff[1];
1259 val[0] = (val[0] * 256) + (int16_t)buff[0];
1280 val[0] = (int16_t)buff[1];
1281 val[0] = (val[0] * 256) + (int16_t)buff[0];
1282 val[1] = (int16_t)buff[3];
1283 val[1] = (val[1] * 256) + (int16_t)buff[2];
1284 val[2] = (int16_t)buff[5];
1285 val[2] = (val[2] * 256) + (int16_t)buff[4];
1306 val[0] = (int16_t)buff[1];
1307 val[0] = (val[0] * 256) + (int16_t)buff[0];
1308 val[1] = (int16_t)buff[3];
1309 val[1] = (val[1] * 256) + (int16_t)buff[2];
1310 val[2] = (int16_t)buff[5];
1311 val[2] = (val[2] * 256) + (int16_t)buff[4];
1357 *val = (*val * 256U) + buff[0];
1387 (uint8_t *)®, 1);
1428 (uint8_t *)®, 1);
1434 (uint8_t *)®, 1);
1456 (uint8_t *)®, 1);
1479 (uint8_t *)®, 1);
1485 (uint8_t *)®, 1);
1507 (uint8_t *)®, 1);
1560 (uint8_t *) &page_rw, 1);
1566 (uint8_t *) &page_sel, 1);
1571 page_sel.
page_sel = ((uint8_t)(address >> 8) & 0x0FU);
1574 (uint8_t *) &page_sel, 1);
1579 page_address.
page_addr = (uint8_t)address & 0xFFU;
1581 (uint8_t *)&page_address, 1);
1598 (uint8_t *) &page_rw, 1);
1620 uint8_t *buf, uint8_t len)
1629 msb = ((uint8_t)(address >> 8) & 0x0FU);
1630 lsb = (uint8_t)address & 0xFFU;
1642 (uint8_t *) &page_rw, 1);
1648 (uint8_t *) &page_sel, 1);
1656 (uint8_t *) &page_sel, 1);
1663 (uint8_t *)&page_address, 1);
1668 for (i = 0; ((i < len) && (ret == 0)); i++)
1673 if ((lsb == 0x00U) && (ret == 0))
1678 (uint8_t *)&page_sel, 1);
1682 page_sel.page_sel = msb;
1683 page_sel.not_used_01 = 1;
1685 (uint8_t *)&page_sel, 1);
1693 (uint8_t *) &page_sel, 1);
1705 (uint8_t *) &page_rw, 1);
1744 (uint8_t *) &page_rw, 1);
1750 (uint8_t *) &page_sel, 1);
1755 page_sel.
page_sel = ((uint8_t)(address >> 8) & 0x0FU);
1758 (uint8_t *) &page_sel, 1);
1763 page_address.
page_addr = (uint8_t)address & 0x00FFU;
1765 (uint8_t *)&page_address, 1);
1782 (uint8_t *) &page_rw, 1);
1809 (uint8_t *)®, 1);
1815 (uint8_t *)®, 1);
1838 (uint8_t *)®, 1);
2025 reg.
st_xl = (uint8_t)val;
2088 reg.
st_g = (uint8_t)val;
2302 reg.
ftype = (uint8_t)val;
2432 reg.
hpcf_xl = (uint8_t)val & 0x07U;
2688 reg.
hp_en_g = ((uint8_t)val & 0x80U) >> 7;
2689 reg.
hpm_g = (uint8_t)val & 0x03U;
2834 reg.
sim = (uint8_t)val;
2952 (uint8_t *)&ctrl9_xl, 1);
2956 ctrl9_xl.
i3c_disable = ((uint8_t)val & 0x80U) >> 7;
2958 (uint8_t *)&ctrl9_xl, 1);
2964 (uint8_t *)&i3c_bus_avb, 1);
2971 (uint8_t *)&i3c_bus_avb, 1);
2993 (uint8_t *)&ctrl9_xl, 1);
2998 (uint8_t *)&i3c_bus_avb, 1);
3000 switch ((ctrl9_xl.
i3c_disable << 7) | i3c_bus_avb.i3c_bus_avb_sel)
3189 (uint8_t *) &tap_cfg2, 1);
3236 (uint8_t *) &tap_cfg2, 1);
3381 (uint8_t *) &tap_cfg2, 1);
3428 (uint8_t *) &tap_cfg2, 1);
3506 reg.
pp_od = (uint8_t)val;
3665 (uint8_t *) &tap_cfg0, 1);
3669 tap_cfg0.
lir = (uint8_t)val & 0x01U;
3672 (uint8_t *) &tap_cfg0, 1);
3689 (uint8_t *) &page_rw, 1);
3716 (uint8_t *) &tap_cfg0, 1);
4948 reg.
ff_ths = (uint8_t)val;
5009 (uint8_t *)&wake_up_dur, 1);
5014 (uint8_t *)&free_fall, 1);
5019 wake_up_dur.
ff_dur = ((uint8_t)val & 0x20U) >> 5;
5020 free_fall.
ff_dur = (uint8_t)val & 0x1FU;
5022 (uint8_t *)&wake_up_dur, 1);
5028 (uint8_t *)&free_fall, 1);
5050 (uint8_t *)&wake_up_dur, 1);
5055 (uint8_t *)&free_fall, 1);
5056 *val = (wake_up_dur.
ff_dur << 5) + free_fall.ff_dur;
5090 (uint8_t *)&fifo_ctrl2, 1);
5094 fifo_ctrl1.
wtm = 0x00FFU & (uint8_t)val;
5095 fifo_ctrl2.
wtm = (uint8_t)((0x0100U & val) >> 8);
5097 (uint8_t *)&fifo_ctrl1, 1);
5103 (uint8_t *)&fifo_ctrl2, 1);
5124 (uint8_t *)&fifo_ctrl1, 1);
5129 (uint8_t *)&fifo_ctrl2, 1);
5130 *val = ((uint16_t)fifo_ctrl2.wtm << 8) + (uint16_t)fifo_ctrl1.
wtm;
5156 (uint8_t *)®, 1);
5163 (uint8_t *)®, 1);
5194 (uint8_t *)®, 1);
5227 (uint8_t *)&emb_func_en_b, 1);
5234 (uint8_t *)&emb_func_en_b, 1);
5245 (uint8_t *)&fifo_ctrl2, 1);
5253 (uint8_t *)&fifo_ctrl2, 1);
5462 reg.
bdr_xl = (uint8_t)val;
5563 reg.
bdr_gy = (uint8_t)val;
5877 (uint8_t *)®, 1);
5883 (uint8_t *)®, 1);
5906 (uint8_t *)®, 1);
5943 (uint8_t *)®, 1);
5949 (uint8_t *)®, 1);
5972 (uint8_t *)®, 1);
5995 (uint8_t *)&counter_bdr_reg1, 1);
5999 counter_bdr_reg2.
cnt_bdr_th = 0x00FFU & (uint8_t)val;
6000 counter_bdr_reg1.
cnt_bdr_th = (uint8_t)(0x0700U & val) >> 8;
6002 (uint8_t *)&counter_bdr_reg1, 1);
6008 (uint8_t *)&counter_bdr_reg2, 1);
6031 (uint8_t *)&counter_bdr_reg1, 1);
6036 (uint8_t *)&counter_bdr_reg2, 1);
6037 *val = ((uint16_t)counter_bdr_reg1.
cnt_bdr_th << 8)
6038 + (uint16_t)counter_bdr_reg2.cnt_bdr_th;
6060 (uint8_t *)&fifo_status1, 1);
6065 (uint8_t *)&fifo_status2, 1);
6066 *val = ((uint16_t)fifo_status2.diff_fifo << 8) +
6164 (uint8_t *)®, 1);
6272 (uint8_t *)®, 1);
6279 (uint8_t *)®, 1);
6309 (uint8_t *)®, 1);
6442 *val = reg.batch_ext_sens_1_en;
6688 reg.
den_lh = (uint8_t)val;
6951 (uint8_t *)&pedo_cmd_reg);
6961 (uint8_t *)&emb_func_en_a, 1);
6967 (uint8_t *)&emb_func_en_b, 1);
6968 emb_func_en_a.
pedo_en = (uint8_t)val & 0x01U;
6969 emb_func_en_b.pedo_adv_en = ((uint8_t)val & 0x02U) >> 1;
6971 pedo_cmd_reg.
ad_det_en = ((uint8_t)val & 0x20U) >> 5;
6977 (uint8_t *)&emb_func_en_a, 1);
6983 (uint8_t *)&emb_func_en_b, 1);
6994 (uint8_t *)&pedo_cmd_reg);
7017 (uint8_t *)&pedo_cmd_reg);
7027 (uint8_t *)&emb_func_en_a, 1);
7033 (uint8_t *)&emb_func_en_b, 1);
7092 (uint8_t *)®, 1);
7156 buff[1] = (uint8_t)(val / 256U);
7157 buff[0] = (uint8_t)(val - (buff[1] * 256U));
7192 *val = (*val * 256U) + buff[0];
7294 (uint8_t *)®, 1);
7301 (uint8_t *)®, 1);
7330 (uint8_t *)®, 1);
7361 (uint8_t *)®, 1);
7405 (uint8_t *)®, 1);
7412 (uint8_t *)®, 1);
7441 (uint8_t *)®, 1);
7472 (uint8_t *)®, 1);
7510 buff[1] = (uint8_t)(val / 256U);
7511 buff[0] = (uint8_t)(val - (buff[1] * 256U));
7546 *val = (*val * 256U) + buff[0];
7565 buff[1] = (uint8_t)((uint16_t)val[0] / 256U);
7566 buff[0] = (uint8_t)((uint16_t)val[0] - (buff[1] * 256U));
7567 buff[3] = (uint8_t)((uint16_t)val[1] / 256U);
7568 buff[2] = (uint8_t)((uint16_t)val[1] - (buff[3] * 256U));
7569 buff[5] = (uint8_t)((uint16_t)val[2] / 256U);
7570 buff[4] = (uint8_t)((uint16_t)val[2] - (buff[5] * 256U));
7651 val[0] = (int16_t)buff[1];
7652 val[0] = (val[0] * 256) + (int16_t)buff[0];
7653 val[1] = (int16_t)buff[3];
7654 val[1] = (val[1] * 256) + (int16_t)buff[2];
7655 val[2] = (int16_t)buff[5];
7656 val[2] = (val[2] * 256) + (int16_t)buff[4];
7682 buff[1] = (uint8_t)((uint16_t)val[0] / 256U);
7683 buff[0] = (uint8_t)((uint16_t)val[0] - (buff[1] * 256U));
7684 buff[3] = (uint8_t)((uint16_t)val[1] / 256U);
7685 buff[2] = (uint8_t)((uint16_t)val[1] - (buff[3] * 256U));
7686 buff[5] = (uint8_t)((uint16_t)val[2] / 256U);
7687 buff[4] = (uint8_t)((uint16_t)val[2] - (buff[5] * 256U));
7688 buff[7] = (uint8_t)((uint16_t)val[3] / 256U);
7689 buff[6] = (uint8_t)((uint16_t)val[3] - (buff[7] * 256U));
7690 buff[9] = (uint8_t)((uint16_t)val[4] / 256U);
7691 buff[8] = (uint8_t)((uint16_t)val[4] - (buff[9] * 256U));
7692 buff[11] = (uint8_t)((uint16_t)val[5] / 256U);
7693 buff[10] = (uint8_t)((uint16_t)val[5] - (buff[11] * 256U));
7880 val[0] = (int16_t)buff[1];
7881 val[0] = (val[0] * 256) + (int16_t)buff[0];
7882 val[1] = (int16_t)buff[3];
7883 val[1] = (val[1] * 256) + (int16_t)buff[2];
7884 val[2] = (int16_t)buff[5];
7885 val[2] = (val[2] * 256) + (int16_t)buff[4];
7886 val[3] = (int16_t)buff[7];
7887 val[3] = (val[3] * 256) + (int16_t)buff[6];
7888 val[4] = (int16_t)buff[9];
7889 val[4] = (val[4] * 256) + (int16_t)buff[8];
7890 val[5] = (int16_t)buff[11];
7891 val[5] = (val[5] * 256) + (int16_t)buff[10];
8182 (uint8_t *)®, 1);
8212 (uint8_t *)®, 1);
8219 (uint8_t *)®, 1);
8248 (uint8_t *)®, 1);
8255 (uint8_t *)®, 1);
8297 (uint8_t *)®, 1);
8329 (uint8_t *)®, 1);
8383 buff[1] = (uint8_t)(val / 256U);
8384 buff[0] = (uint8_t)(val - (buff[1] * 256U));
8425 *val = (*val * 256U) + buff[0];
8451 (uint8_t *)®, 1);
8456 reg. fsm_lc_clr = (uint8_t)val;
8458 (uint8_t *)®, 1);
8489 (uint8_t *)®, 1);
8570 (uint8_t *)®, 1);
8579 (uint8_t *)®, 1);
8609 (uint8_t *)®, 1);
8661 (uint8_t *)®, 1);
8668 (uint8_t *)®, 1);
8697 (uint8_t *)®, 1);
8726 buff[1] = (uint8_t)(val / 256U);
8727 buff[0] = (uint8_t)(val - (buff[1] * 256U));
8765 *val = (*val * 256U) + buff[0];
8822 buff[1] = (uint8_t)(val / 256U);
8823 buff[0] = (uint8_t)(val - (buff[1] * 256U));
8860 *val = (*val * 256U) + buff[0];
8898 (uint8_t *) val, 18U);
8928 (uint8_t *)®, 1);
8935 (uint8_t *)®, 1);
8965 (uint8_t *)®, 1);
9017 (uint8_t *)®, 1);
9024 (uint8_t *)®, 1);
9053 (uint8_t *)®, 1);
9084 (uint8_t *)®, 1);
9091 (uint8_t *)®, 1);
9121 (uint8_t *)®, 1);
9166 (uint8_t *)®, 1);
9173 (uint8_t *)®, 1);
9203 (uint8_t *)®, 1);
9234 (uint8_t *)®, 1);
9241 (uint8_t *)®, 1);
9271 (uint8_t *)®, 1);
9317 (uint8_t *)®, 1);
9324 (uint8_t *)®, 1);
9355 (uint8_t *)®, 1);
9398 (uint8_t *)®, 1);
9405 (uint8_t *)®, 1);
9412 (uint8_t *)®, 1);
9441 (uint8_t *)®, 1);
9611 (uint8_t *)&slv0_add, 1);
9623 (uint8_t *)&slv0_config, 1);
9630 (uint8_t *)&slv0_config, 1);
9666 (uint8_t *)&slv1_add, 1);
9678 (uint8_t *)&slv1_config, 1);
9685 (uint8_t *)&slv1_config, 1);
9721 (uint8_t *)&slv2_add, 1);
9733 (uint8_t *)&slv2_config, 1);
9740 (uint8_t *)&slv2_config, 1);
9776 (uint8_t *)&slv3_add, 1);
9788 (uint8_t *)&slv3_config, 1);
9795 (uint8_t *)&slv3_config, 1);
9824 (uint8_t *) val, 1);
int32_t lsm6dso32_den_mark_axis_x_set(stmdev_ctx_t *ctx, uint8_t val)
DEN value stored in LSB of X-axis.[set].
int32_t lsm6dso32_den_mode_set(stmdev_ctx_t *ctx, lsm6dso32_den_mode_t val)
DEN functionality marking mode.[set].
int32_t lsm6dso32_den_mark_axis_z_get(stmdev_ctx_t *ctx, uint8_t *val)
DEN value stored in LSB of Z-axis.[get].
int32_t lsm6dso32_den_mark_axis_y_set(stmdev_ctx_t *ctx, uint8_t val)
DEN value stored in LSB of Y-axis.[set].
int32_t lsm6dso32_den_mode_get(stmdev_ctx_t *ctx, lsm6dso32_den_mode_t *val)
DEN functionality marking mode.[get].
int32_t lsm6dso32_den_enable_get(stmdev_ctx_t *ctx, lsm6dso32_den_xl_g_t *val)
DEN enable.[get].
int32_t lsm6dso32_den_mark_axis_x_get(stmdev_ctx_t *ctx, uint8_t *val)
DEN value stored in LSB of X-axis.[get].
int32_t lsm6dso32_den_mark_axis_y_get(stmdev_ctx_t *ctx, uint8_t *val)
DEN value stored in LSB of Y-axis.[get].
int32_t lsm6dso32_den_polarity_get(stmdev_ctx_t *ctx, lsm6dso32_den_lh_t *val)
DEN active level configuration.[get].
int32_t lsm6dso32_den_enable_set(stmdev_ctx_t *ctx, lsm6dso32_den_xl_g_t val)
DEN enable.[set].
int32_t lsm6dso32_den_polarity_set(stmdev_ctx_t *ctx, lsm6dso32_den_lh_t val)
DEN active level configuration.[set].
int32_t lsm6dso32_den_mark_axis_z_set(stmdev_ctx_t *ctx, uint8_t val)
DEN value stored in LSB of Z-axis.[set].
int32_t lsm6dso32_angular_rate_raw_get(stmdev_ctx_t *ctx, int16_t *val)
Angular rate sensor. The value is expressed as a 16-bit word in two’s complement.[get].
int32_t lsm6dso32_temperature_raw_get(stmdev_ctx_t *ctx, int16_t *val)
Temperature data output register (r). L and H registers together express a 16-bit word in two’s compl...
int32_t lsm6dso32_number_of_steps_get(stmdev_ctx_t *ctx, uint16_t *val)
Step counter output register.[get].
int32_t lsm6dso32_steps_reset(stmdev_ctx_t *ctx)
Reset step counter register.[get].
int32_t lsm6dso32_rounding_mode_set(stmdev_ctx_t *ctx, lsm6dso32_rounding_t val)
Circular burst-mode (rounding) read of the output registers.[set].
int32_t lsm6dso32_rounding_mode_get(stmdev_ctx_t *ctx, lsm6dso32_rounding_t *val)
Gyroscope UI chain full-scale selection.[get].
int32_t lsm6dso32_fifo_out_raw_get(stmdev_ctx_t *ctx, uint8_t *buff)
FIFO data output [get].
int32_t lsm6dso32_acceleration_raw_get(stmdev_ctx_t *ctx, int16_t *val)
Linear acceleration output register. The value is expressed as a 16-bit word in two’s complement....
int32_t lsm6dso32_act_mode_get(stmdev_ctx_t *ctx, lsm6dso32_inact_en_t *val)
Enable inactivity function.[get].
int32_t lsm6dso32_mag_offset_get(stmdev_ctx_t *ctx, int16_t *val)
Offset for hard-iron compensation register (r/w).[get].
int32_t lsm6dso32_mag_x_orient_get(stmdev_ctx_t *ctx, lsm6dso32_mag_x_axis_t *val)
Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)....
int32_t lsm6dso32_6d_threshold_set(stmdev_ctx_t *ctx, lsm6dso32_sixd_ths_t val)
Threshold for 4D/6D function.[set].
int32_t lsm6dso32_mag_y_orient_set(stmdev_ctx_t *ctx, lsm6dso32_mag_y_axis_t val)
Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)....
int32_t lsm6dso32_act_sleep_dur_get(stmdev_ctx_t *ctx, uint8_t *val)
Duration to go in sleep mode.[get] 1 LSb = 512 / ODR.
int32_t lsm6dso32_act_mode_set(stmdev_ctx_t *ctx, lsm6dso32_inact_en_t val)
Enable inactivity function.[set].
int32_t lsm6dso32_act_pin_notification_get(stmdev_ctx_t *ctx, lsm6dso32_sleep_status_on_int_t *val)
Drives the sleep status instead of sleep change on INT pins (only if INT1_SLEEP_CHANGE or INT2_SLEEP_...
int32_t lsm6dso32_mag_y_orient_get(stmdev_ctx_t *ctx, lsm6dso32_mag_y_axis_t *val)
Magnetometer Y-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)....
int32_t lsm6dso32_mag_z_orient_get(stmdev_ctx_t *ctx, lsm6dso32_mag_z_axis_t *val)
Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)....
int32_t lsm6dso32_mag_offset_set(stmdev_ctx_t *ctx, int16_t *val)
Offset for hard-iron compensation register (r/w).[set].
int32_t lsm6dso32_act_pin_notification_set(stmdev_ctx_t *ctx, lsm6dso32_sleep_status_on_int_t val)
Drives the sleep status instead of sleep change on INT pins (only if INT1_SLEEP_CHANGE or INT2_SLEEP_...
int32_t lsm6dso32_mag_sensitivity_set(stmdev_ctx_t *ctx, uint16_t val)
External magnetometer sensitivity value register.[set].
int32_t lsm6dso32_mag_z_orient_set(stmdev_ctx_t *ctx, lsm6dso32_mag_z_axis_t val)
Magnetometer Z-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)....
int32_t lsm6dso32_6d_threshold_get(stmdev_ctx_t *ctx, lsm6dso32_sixd_ths_t *val)
Threshold for 4D/6D function.[get].
int32_t lsm6dso32_4d_mode_set(stmdev_ctx_t *ctx, uint8_t val)
4D orientation detection enable.[set]
int32_t lsm6dso32_mag_soft_iron_get(stmdev_ctx_t *ctx, int16_t *val)
Soft-iron (3x3 symmetric) matrix correction register (r/w). The value is expressed as half-precision ...
int32_t lsm6dso32_mag_sensitivity_get(stmdev_ctx_t *ctx, uint16_t *val)
External magnetometer sensitivity value register.[get].
int32_t lsm6dso32_4d_mode_get(stmdev_ctx_t *ctx, uint8_t *val)
4D orientation detection enable.[get]
int32_t lsm6dso32_act_sleep_dur_set(stmdev_ctx_t *ctx, uint8_t val)
Duration to go in sleep mode.[set] 1 LSb = 512 / ODR.
int32_t lsm6dso32_gy_sleep_mode_get(stmdev_ctx_t *ctx, uint8_t *val)
Enables gyroscope Sleep mode.[get].
int32_t lsm6dso32_gy_sleep_mode_set(stmdev_ctx_t *ctx, uint8_t val)
Enables gyroscope Sleep mode.[set].
int32_t lsm6dso32_mag_x_orient_set(stmdev_ctx_t *ctx, lsm6dso32_mag_x_axis_t val)
Magnetometer X-axis coordinates rotation (to be aligned to accelerometer/gyroscope axes orientation)....
int32_t lsm6dso32_mag_soft_iron_set(stmdev_ctx_t *ctx, int16_t *val)
Soft-iron (3x3 symmetric) matrix correction register (r/w). The value is expressed as half-precision ...
int32_t __weak lsm6dso32_write_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
Write generic device register.
int32_t __weak lsm6dso32_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, uint16_t len)
Read generic device register.
int32_t lsm6dso32_pedo_int_mode_set(stmdev_ctx_t *ctx, lsm6dso32_carry_count_en_t val)
Set when user wants to generate interrupt on count overflow event/every step.[set].
int32_t lsm6dso32_pedo_sens_set(stmdev_ctx_t *ctx, lsm6dso32_pedo_md_t val)
Enable pedometer algorithm.[set].
int32_t lsm6dso32_pedo_steps_period_get(stmdev_ctx_t *ctx, uint16_t *val)
Time period register for step detection on delta time (r/w).[get].
int32_t lsm6dso32_pedo_step_detect_get(stmdev_ctx_t *ctx, uint8_t *val)
Interrupt status bit for step detection.[get].
int32_t lsm6dso32_pedo_sens_get(stmdev_ctx_t *ctx, lsm6dso32_pedo_md_t *val)
Enable pedometer algorithm.[get].
int32_t lsm6dso32_pedo_int_mode_get(stmdev_ctx_t *ctx, lsm6dso32_carry_count_en_t *val)
Set when user wants to generate interrupt on count overflow event/every step.[get].
int32_t lsm6dso32_pedo_debounce_steps_set(stmdev_ctx_t *ctx, uint8_t *buff)
Pedometer debounce configuration register (r/w).[set].
int32_t lsm6dso32_pedo_steps_period_set(stmdev_ctx_t *ctx, uint16_t val)
Time period register for step detection on delta time (r/w).[set].
int32_t lsm6dso32_pedo_debounce_steps_get(stmdev_ctx_t *ctx, uint8_t *buff)
Pedometer debounce configuration register (r/w).[get].
float_t lsm6dso32_from_lsb_to_celsius(int16_t lsb)
float_t lsm6dso32_from_fs1000_to_mdps(int16_t lsb)
float_t lsm6dso32_from_fs500_to_mdps(int16_t lsb)
float_t lsm6dso32_from_fs250_to_mdps(int16_t lsb)
float_t lsm6dso32_from_fs125_to_mdps(int16_t lsb)
float_t lsm6dso32_from_fs8_to_mg(int16_t lsb)
float_t lsm6dso32_from_fs4_to_mg(int16_t lsb)
float_t lsm6dso32_from_lsb_to_nsec(int16_t lsb)
float_t lsm6dso32_from_fs32_to_mg(int16_t lsb)
float_t lsm6dso32_from_fs16_to_mg(int16_t lsb)
float_t lsm6dso32_from_fs2000_to_mdps(int16_t lsb)
int32_t lsm6dso32_sh_data_rate_get(stmdev_ctx_t *ctx, lsm6dso32_shub_odr_t *val)
Rate at which the master communicates.[get].
int32_t lsm6dso32_sh_data_rate_set(stmdev_ctx_t *ctx, lsm6dso32_shub_odr_t val)
Rate at which the master communicates.[set].
int32_t lsm6dso32_sh_syncro_mode_set(stmdev_ctx_t *ctx, lsm6dso32_start_config_t val)
Sensor hub trigger signal selection.[set].
int32_t lsm6dso32_sh_pin_mode_get(stmdev_ctx_t *ctx, lsm6dso32_shub_pu_en_t *val)
Master I2C pull-up enable.[get].
int32_t lsm6dso32_sh_slave_connected_get(stmdev_ctx_t *ctx, lsm6dso32_aux_sens_on_t *val)
Number of external sensors to be read by the sensor hub.[get].
int32_t lsm6dso32_sh_master_get(stmdev_ctx_t *ctx, uint8_t *val)
Sensor hub I2C master enable.[get].
int32_t lsm6dso32_sh_pass_through_set(stmdev_ctx_t *ctx, uint8_t val)
I2C interface pass-through.[set].
int32_t lsm6dso32_sh_write_mode_set(stmdev_ctx_t *ctx, lsm6dso32_write_once_t val)
Slave 0 write operation is performed only at the first sensor hub cycle.[set].
int32_t lsm6dso32_sh_slv1_cfg_read(stmdev_ctx_t *ctx, lsm6dso32_sh_cfg_read_t *val)
Configure slave 0 for perform a write/read.[set].
int32_t lsm6dso32_sh_slv2_cfg_read(stmdev_ctx_t *ctx, lsm6dso32_sh_cfg_read_t *val)
Configure slave 0 for perform a write/read.[set].
int32_t lsm6dso32_sh_cfg_write(stmdev_ctx_t *ctx, lsm6dso32_sh_cfg_write_t *val)
Configure slave 0 for perform a write.[set].
int32_t lsm6dso32_sh_slave_connected_set(stmdev_ctx_t *ctx, lsm6dso32_aux_sens_on_t val)
Number of external sensors to be read by the sensor hub.[set].
int32_t lsm6dso32_sh_pass_through_get(stmdev_ctx_t *ctx, uint8_t *val)
I2C interface pass-through.[get].
int32_t lsm6dso32_sh_status_get(stmdev_ctx_t *ctx, lsm6dso32_status_master_t *val)
Sensor hub source register.[get].
int32_t lsm6dso32_sh_syncro_mode_get(stmdev_ctx_t *ctx, lsm6dso32_start_config_t *val)
Sensor hub trigger signal selection.[get].
int32_t lsm6dso32_sh_master_set(stmdev_ctx_t *ctx, uint8_t val)
Sensor hub I2C master enable.[set].
int32_t lsm6dso32_sh_write_mode_get(stmdev_ctx_t *ctx, lsm6dso32_write_once_t *val)
Slave 0 write operation is performed only at the first sensor hub cycle.[get].
int32_t lsm6dso32_sh_read_data_raw_get(stmdev_ctx_t *ctx, lsm6dso32_emb_sh_read_t *val)
Sensor hub output registers.[get].
int32_t lsm6dso32_sh_reset_get(stmdev_ctx_t *ctx, uint8_t *val)
Reset Master logic and output registers.[get].
int32_t lsm6dso32_sh_reset_set(stmdev_ctx_t *ctx)
Reset Master logic and output registers.[set].
int32_t lsm6dso32_sh_pin_mode_set(stmdev_ctx_t *ctx, lsm6dso32_shub_pu_en_t val)
Master I2C pull-up enable.[set].
int32_t lsm6dso32_sh_slv0_cfg_read(stmdev_ctx_t *ctx, lsm6dso32_sh_cfg_read_t *val)
Configure slave 0 for perform a read.[set].
int32_t lsm6dso32_sh_slv3_cfg_read(stmdev_ctx_t *ctx, lsm6dso32_sh_cfg_read_t *val)
Configure slave 0 for perform a write/read.[set].
int32_t lsm6dso32_timestamp_set(stmdev_ctx_t *ctx, uint8_t val)
Enables timestamp counter.[set].
int32_t lsm6dso32_timestamp_get(stmdev_ctx_t *ctx, uint8_t *val)
Enables timestamp counter.[get].
int32_t lsm6dso32_timestamp_raw_get(stmdev_ctx_t *ctx, uint32_t *val)
Timestamp first data output register (r). The value is expressed as a 32-bit word and the bit resolut...
int32_t lsm6dso32_wkup_dur_set(stmdev_ctx_t *ctx, uint8_t val)
Wake up duration event.[set] 1LSb = 1 / ODR.
int32_t lsm6dso32_wkup_ths_weight_get(stmdev_ctx_t *ctx, lsm6dso32_wake_ths_w_t *val)
Weight of 1 LSB of wakeup threshold.[get] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256.
int32_t lsm6dso32_wkup_dur_get(stmdev_ctx_t *ctx, uint8_t *val)
Wake up duration event.[get] 1LSb = 1 / ODR.
int32_t lsm6dso32_wkup_threshold_get(stmdev_ctx_t *ctx, uint8_t *val)
Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.[get].
int32_t lsm6dso32_wkup_ths_weight_set(stmdev_ctx_t *ctx, lsm6dso32_wake_ths_w_t val)
Weight of 1 LSB of wakeup threshold.[set] 0: 1 LSB =FS_XL / 64 1: 1 LSB = FS_XL / 256.
int32_t lsm6dso32_wkup_threshold_set(stmdev_ctx_t *ctx, uint8_t val)
Threshold for wakeup: 1 LSB weight depends on WAKE_THS_W in WAKE_UP_DUR.[set].
int32_t lsm6dso32_xl_usr_offset_on_wkup_get(stmdev_ctx_t *ctx, uint8_t *val)
Wake up duration event.[get] 1LSb = 1 / ODR.
int32_t lsm6dso32_xl_usr_offset_on_wkup_set(stmdev_ctx_t *ctx, uint8_t val)
Wake up duration event.[set] 1LSb = 1 / ODR.
int32_t lsm6dso32_ln_pg_write(stmdev_ctx_t *ctx, uint16_t address, uint8_t *buf, uint8_t len)
Write buffer in a page.[set].
int32_t lsm6dso32_ln_pg_read_byte(stmdev_ctx_t *ctx, uint16_t address, uint8_t *val)
Read a line(byte) in a page.[get].
int32_t lsm6dso32_reset_get(stmdev_ctx_t *ctx, uint8_t *val)
Software reset. Restore the default values in user registers.[get].
int32_t lsm6dso32_mem_bank_set(stmdev_ctx_t *ctx, lsm6dso32_reg_access_t val)
Enable access to the embedded functions/sensor hub configuration registers.[set].
int32_t lsm6dso32_gy_self_test_set(stmdev_ctx_t *ctx, lsm6dso32_st_g_t val)
Angular rate sensor self-test enable.[set].
int32_t lsm6dso32_reset_set(stmdev_ctx_t *ctx, uint8_t val)
Software reset. Restore the default values in user registers[set].
int32_t lsm6dso32_boot_get(stmdev_ctx_t *ctx, uint8_t *val)
Reboot memory content. Reload the calibration parameters.[get].
int32_t lsm6dso32_data_ready_mode_set(stmdev_ctx_t *ctx, lsm6dso32_dataready_pulsed_t val)
Data-ready pulsed / letched mode.[set].
int32_t lsm6dso32_odr_cal_reg_get(stmdev_ctx_t *ctx, uint8_t *val)
Difference in percentage of the effective ODR(and timestamp rate) with respect to the typical....
int32_t lsm6dso32_gy_self_test_get(stmdev_ctx_t *ctx, lsm6dso32_st_g_t *val)
Angular rate sensor self-test enable.[get].
int32_t lsm6dso32_odr_cal_reg_set(stmdev_ctx_t *ctx, uint8_t val)
Difference in percentage of the effective ODR(and timestamp rate) with respect to the typical....
int32_t lsm6dso32_data_ready_mode_get(stmdev_ctx_t *ctx, lsm6dso32_dataready_pulsed_t *val)
Data-ready pulsed / letched mode.[get].
int32_t lsm6dso32_auto_increment_get(stmdev_ctx_t *ctx, uint8_t *val)
Register address automatically incremented during a multiple byte access with a serial interface....
int32_t lsm6dso32_boot_set(stmdev_ctx_t *ctx, uint8_t val)
Reboot memory content. Reload the calibration parameters.[set].
int32_t lsm6dso32_xl_self_test_get(stmdev_ctx_t *ctx, lsm6dso32_st_xl_t *val)
Linear acceleration sensor self-test enable.[get].
int32_t lsm6dso32_device_id_get(stmdev_ctx_t *ctx, uint8_t *buff)
Device "Who am I".[get].
int32_t lsm6dso32_auto_increment_set(stmdev_ctx_t *ctx, uint8_t val)
Register address automatically incremented during a multiple byte access with a serial interface....
int32_t lsm6dso32_ln_pg_write_byte(stmdev_ctx_t *ctx, uint16_t address, uint8_t *val)
Write a line(byte) in a page.[set].
int32_t lsm6dso32_xl_self_test_set(stmdev_ctx_t *ctx, lsm6dso32_st_xl_t val)
Linear acceleration sensor self-test enable.[set].
int32_t lsm6dso32_mem_bank_get(stmdev_ctx_t *ctx, lsm6dso32_reg_access_t *val)
Enable access to the embedded functions/sensor hub configuration registers.[get].
int32_t lsm6dso32_rst_batch_counter_get(stmdev_ctx_t *ctx, uint8_t *val)
Resets the internal counter of batching events for a single sensor. This bit is automatically reset t...
int32_t lsm6dso32_batch_counter_threshold_set(stmdev_ctx_t *ctx, uint16_t val)
Batch data rate counter.[set].
int32_t lsm6dso32_fifo_pedo_batch_set(stmdev_ctx_t *ctx, uint8_t val)
: Enable FIFO batching of pedometer embedded function values.[set]
int32_t lsm6dso32_compression_algo_set(stmdev_ctx_t *ctx, lsm6dso32_uncoptr_rate_t val)
Enable and configure compression algo.[set].
int32_t lsm6dso32_fifo_gy_batch_get(stmdev_ctx_t *ctx, lsm6dso32_bdr_gy_t *val)
Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.[get].
int32_t lsm6dso32_compression_algo_real_time_set(stmdev_ctx_t *ctx, uint8_t val)
Enables/Disables compression algorithm runtime.[set].
int32_t lsm6dso32_fifo_xl_batch_set(stmdev_ctx_t *ctx, lsm6dso32_bdr_xl_t val)
Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.[set].
int32_t lsm6dso32_sh_batch_slave_3_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable FIFO batching data of fourth slave.[get].
int32_t lsm6dso32_fifo_ovr_flag_get(stmdev_ctx_t *ctx, uint8_t *val)
FIFO overrun status.[get].
int32_t lsm6dso32_fifo_data_level_get(stmdev_ctx_t *ctx, uint16_t *val)
Number of unread sensor data(TAG + 6 bytes) stored in FIFO.[get].
int32_t lsm6dso32_fifo_virtual_sens_odr_chg_set(stmdev_ctx_t *ctx, uint8_t val)
Enables ODR CHANGE virtual sensor to be batched in FIFO.[set].
int32_t lsm6dso32_fifo_temp_batch_set(stmdev_ctx_t *ctx, lsm6dso32_odr_t_batch_t val)
Selects Batching Data Rate (writing frequency in FIFO) for temperature data.[set].
int32_t lsm6dso32_compression_algo_real_time_get(stmdev_ctx_t *ctx, uint8_t *val)
Enables/Disables compression algorithm runtime.[get].
int32_t lsm6dso32_sh_batch_slave_0_set(stmdev_ctx_t *ctx, uint8_t val)
Enable FIFO batching data of first slave.[set].
int32_t lsm6dso32_batch_counter_threshold_get(stmdev_ctx_t *ctx, uint16_t *val)
Batch data rate counter.[get].
int32_t lsm6dso32_rst_batch_counter_set(stmdev_ctx_t *ctx, uint8_t val)
Resets the internal counter of batching vents for a single sensor. This bit is automatically reset to...
int32_t lsm6dso32_fifo_watermark_get(stmdev_ctx_t *ctx, uint16_t *val)
FIFO watermark level selection.[get].
lsm6dso32_trig_counter_bdr_t
int32_t lsm6dso32_fifo_xl_batch_get(stmdev_ctx_t *ctx, lsm6dso32_bdr_xl_t *val)
Selects Batching Data Rate (writing frequency in FIFO) for accelerometer data.[get].
int32_t lsm6dso32_fifo_mode_set(stmdev_ctx_t *ctx, lsm6dso32_fifo_mode_t val)
FIFO mode selection.[set].
int32_t lsm6dso32_fifo_sensor_tag_get(stmdev_ctx_t *ctx, lsm6dso32_fifo_tag_t *val)
Identifies the sensor in FIFO_DATA_OUT.[get].
int32_t lsm6dso32_sh_batch_slave_2_set(stmdev_ctx_t *ctx, uint8_t val)
Enable FIFO batching data of third slave.[set].
int32_t lsm6dso32_fifo_pedo_batch_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable FIFO batching of pedometer embedded function values.[get].
int32_t lsm6dso32_sh_batch_slave_1_set(stmdev_ctx_t *ctx, uint8_t val)
Enable FIFO batching data of second slave.[set].
int32_t lsm6dso32_fifo_status_get(stmdev_ctx_t *ctx, lsm6dso32_fifo_status2_t *val)
FIFO status.[get].
int32_t lsm6dso32_fifo_mode_get(stmdev_ctx_t *ctx, lsm6dso32_fifo_mode_t *val)
FIFO mode selection.[get].
int32_t lsm6dso32_fifo_timestamp_decimation_get(stmdev_ctx_t *ctx, lsm6dso32_odr_ts_batch_t *val)
Selects decimation for timestamp batching in FIFO. Writing rate will be the maximum rate between XL a...
int32_t lsm6dso32_sh_batch_slave_1_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable FIFO batching data of second slave.[get].
int32_t lsm6dso32_compression_algo_get(stmdev_ctx_t *ctx, lsm6dso32_uncoptr_rate_t *val)
Enable and configure compression algo.[get].
int32_t lsm6dso32_fifo_gy_batch_set(stmdev_ctx_t *ctx, lsm6dso32_bdr_gy_t val)
Selects Batching Data Rate (writing frequency in FIFO) for gyroscope data.[set].
int32_t lsm6dso32_fifo_cnt_event_batch_get(stmdev_ctx_t *ctx, lsm6dso32_trig_counter_bdr_t *val)
Selects the trigger for the internal counter of batching events between XL and gyro....
int32_t lsm6dso32_fifo_stop_on_wtm_get(stmdev_ctx_t *ctx, uint8_t *val)
Sensing chain FIFO stop values memorization at threshold level.[get].
int32_t lsm6dso32_fifo_virtual_sens_odr_chg_get(stmdev_ctx_t *ctx, uint8_t *val)
Enables ODR CHANGE virtual sensor to be batched in FIFO.[get].
int32_t lsm6dso32_compression_algo_init_set(stmdev_ctx_t *ctx, uint8_t val)
FIFO compression feature initialization request [set].
int32_t lsm6dso32_fifo_wtm_flag_get(stmdev_ctx_t *ctx, uint8_t *val)
FIFO watermark status.[get].
int32_t lsm6dso32_fifo_timestamp_decimation_set(stmdev_ctx_t *ctx, lsm6dso32_odr_ts_batch_t val)
Selects decimation for timestamp batching in FIFO. Writing rate will be the maximum rate between XL a...
int32_t lsm6dso32_compression_algo_init_get(stmdev_ctx_t *ctx, uint8_t *val)
FIFO compression feature initialization request [get].
int32_t lsm6dso32_fifo_stop_on_wtm_set(stmdev_ctx_t *ctx, uint8_t val)
Sensing chain FIFO stop values memorization at threshold level.[set].
int32_t lsm6dso32_fifo_cnt_event_batch_set(stmdev_ctx_t *ctx, lsm6dso32_trig_counter_bdr_t val)
Selects the trigger for the internal counter of batching events between XL and gyro....
int32_t lsm6dso32_fifo_watermark_set(stmdev_ctx_t *ctx, uint16_t val)
FIFO watermark level selection.[set].
int32_t lsm6dso32_sh_batch_slave_2_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable FIFO batching data of third slave.[get].
int32_t lsm6dso32_fifo_full_flag_get(stmdev_ctx_t *ctx, uint8_t *val)
Smart FIFO full status.[get].
int32_t lsm6dso32_sh_batch_slave_3_set(stmdev_ctx_t *ctx, uint8_t val)
Enable FIFO batching data of fourth slave.[set].
int32_t lsm6dso32_fifo_temp_batch_get(stmdev_ctx_t *ctx, lsm6dso32_odr_t_batch_t *val)
Selects Batching Data Rate (writing frequency in FIFO) for temperature data.[get].
int32_t lsm6dso32_sh_batch_slave_0_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable FIFO batching data of first slave.[get].
@ LSM6DSO32_BYPASS_TO_FIFO_MODE
@ LSM6DSO32_BYPASS_TO_STREAM_MODE
@ LSM6DSO32_STREAM_TO_FIFO_MODE
@ LSM6DSO32_SENSORHUB_NACK_TAG
@ LSM6DSO32_XL_NC_T_1_TAG
@ LSM6DSO32_SENSORHUB_SLAVE3_TAG
@ LSM6DSO32_GYRO_NC_T_2_TAG
@ LSM6DSO32_GYRO_NC_T_1_TAG
@ LSM6DSO32_XL_NC_T_2_TAG
@ LSM6DSO32_SENSORHUB_SLAVE2_TAG
@ LSM6DSO32_CFG_CHANGE_TAG
@ LSM6DSO32_TIMESTAMP_TAG
@ LSM6DSO32_TEMPERATURE_TAG
@ LSM6DSO32_SENSORHUB_SLAVE0_TAG
@ LSM6DSO32_SENSORHUB_SLAVE1_TAG
@ LSM6DSO32_STEP_COUNTER_TAG
@ LSM6DSO32_TEMP_BATCHED_AT_1Hz6
@ LSM6DSO32_TEMP_NOT_BATCHED
@ LSM6DSO32_TEMP_BATCHED_AT_52Hz
@ LSM6DSO32_TEMP_BATCHED_AT_12Hz5
@ LSM6DSO32_GY_BATCHED_AT_3333Hz
@ LSM6DSO32_GY_NOT_BATCHED
@ LSM6DSO32_GY_BATCHED_AT_417Hz
@ LSM6DSO32_GY_BATCHED_AT_833Hz
@ LSM6DSO32_GY_BATCHED_AT_26Hz
@ LSM6DSO32_GY_BATCHED_AT_6Hz5
@ LSM6DSO32_GY_BATCHED_AT_12Hz5
@ LSM6DSO32_GY_BATCHED_AT_1667Hz
@ LSM6DSO32_GY_BATCHED_AT_208Hz
@ LSM6DSO32_GY_BATCHED_AT_52Hz
@ LSM6DSO32_GY_BATCHED_AT_104Hz
@ LSM6DSO32_GY_BATCHED_AT_6667Hz
@ LSM6DSO32_GYRO_BATCH_EVENT
@ LSM6DSO32_XL_BATCH_EVENT
@ LSM6DSO32_NO_DECIMATION
@ LSM6DSO32_XL_BATCHED_AT_26Hz
@ LSM6DSO32_XL_BATCHED_AT_1667Hz
@ LSM6DSO32_XL_BATCHED_AT_12Hz5
@ LSM6DSO32_XL_BATCHED_AT_208Hz
@ LSM6DSO32_XL_BATCHED_AT_6Hz5
@ LSM6DSO32_XL_BATCHED_AT_104Hz
@ LSM6DSO32_XL_BATCHED_AT_417Hz
@ LSM6DSO32_XL_BATCHED_AT_3333Hz
@ LSM6DSO32_XL_BATCHED_AT_6667Hz
@ LSM6DSO32_XL_NOT_BATCHED
@ LSM6DSO32_XL_BATCHED_AT_52Hz
@ LSM6DSO32_XL_BATCHED_AT_833Hz
int32_t lsm6dso32_xl_fast_settling_get(stmdev_ctx_t *ctx, uint8_t *val)
Enables accelerometer LPF2 and HPF fast-settling mode. The filter sets the second samples after writi...
int32_t lsm6dso32_xl_fast_settling_set(stmdev_ctx_t *ctx, uint8_t val)
Enables accelerometer LPF2 and HPF fast-settling mode. The filter sets the second samples after writi...
int32_t lsm6dso32_xl_hp_path_internal_get(stmdev_ctx_t *ctx, lsm6dso32_slope_fds_t *val)
HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions.[get].
int32_t lsm6dso32_xl_lp2_on_6d_set(stmdev_ctx_t *ctx, uint8_t val)
Low pass filter 2 on 6D function selection.[set].
int32_t lsm6dso32_xl_lp2_on_6d_get(stmdev_ctx_t *ctx, uint8_t *val)
Low pass filter 2 on 6D function selection.[get].
int32_t lsm6dso32_gy_filter_lp1_get(stmdev_ctx_t *ctx, uint8_t *val)
Enables gyroscope digital LPF1 if auxiliary SPI is disabled; the bandwidth can be selected through FT...
int32_t lsm6dso32_xl_filter_lp2_set(stmdev_ctx_t *ctx, uint8_t val)
Accelerometer output from LPF2 filtering stage selection.[set].
int32_t lsm6dso32_xl_filter_lp2_get(stmdev_ctx_t *ctx, uint8_t *val)
Accelerometer output from LPF2 filtering stage selection.[get].
int32_t lsm6dso32_xl_hp_path_internal_set(stmdev_ctx_t *ctx, lsm6dso32_slope_fds_t val)
HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions.[set].
int32_t lsm6dso32_gy_lp1_bandwidth_get(stmdev_ctx_t *ctx, lsm6dso32_ftype_t *val)
Gyroscope lp1 bandwidth.[get].
int32_t lsm6dso32_gy_hp_path_internal_set(stmdev_ctx_t *ctx, lsm6dso32_hpm_g_t val)
Enables gyroscope digital high-pass filter. The filter is enabled only if the gyro is in HP mode....
int32_t lsm6dso32_filter_settling_mask_get(stmdev_ctx_t *ctx, uint8_t *val)
Mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked)....
int32_t lsm6dso32_xl_hp_path_on_out_set(stmdev_ctx_t *ctx, lsm6dso32_hp_slope_xl_en_t val)
Accelerometer slope filter / high-pass filter selection on output.[set].
int32_t lsm6dso32_gy_hp_path_internal_get(stmdev_ctx_t *ctx, lsm6dso32_hpm_g_t *val)
Enables gyroscope digital high-pass filter. The filter is enabled only if the gyro is in HP mode....
int32_t lsm6dso32_filter_settling_mask_set(stmdev_ctx_t *ctx, uint8_t val)
Mask DRDY on pin (both XL & Gyro) until filter settling ends (XL and Gyro independently masked)....
int32_t lsm6dso32_gy_lp1_bandwidth_set(stmdev_ctx_t *ctx, lsm6dso32_ftype_t val)
Gyroscope lp1 bandwidth.[set].
int32_t lsm6dso32_gy_filter_lp1_set(stmdev_ctx_t *ctx, uint8_t val)
Enables gyroscope digital LPF1 if auxiliary SPI is disabled; the bandwidth can be selected through FT...
int32_t lsm6dso32_xl_hp_path_on_out_get(stmdev_ctx_t *ctx, lsm6dso32_hp_slope_xl_en_t *val)
Accelerometer slope filter / high-pass filter selection on output.[get].
int32_t lsm6dso32_fsm_data_rate_set(stmdev_ctx_t *ctx, lsm6dso32_fsm_odr_t val)
Finite State Machine ODR configuration.[set].
int32_t lsm6dso32_long_clr_set(stmdev_ctx_t *ctx, lsm6dso32_fsm_lc_clr_t val)
Clear FSM long counter value.[set].
int32_t lsm6dso32_fsm_enable_set(stmdev_ctx_t *ctx, lsm6dso32_emb_fsm_enable_t *val)
Final State Machine enable.[set].
int32_t lsm6dso32_emb_fsm_en_set(stmdev_ctx_t *ctx, uint8_t val)
Final State Machine global enable.[set].
int32_t lsm6dso32_long_cnt_int_value_set(stmdev_ctx_t *ctx, uint16_t val)
FSM long counter timeout register (r/w). The long counter timeout value is an unsigned integer value ...
int32_t lsm6dso32_fsm_data_rate_get(stmdev_ctx_t *ctx, lsm6dso32_fsm_odr_t *val)
Finite State Machine ODR configuration.[get].
int32_t lsm6dso32_long_clr_get(stmdev_ctx_t *ctx, lsm6dso32_fsm_lc_clr_t *val)
Clear FSM long counter value.[get].
int32_t lsm6dso32_fsm_number_of_programs_get(stmdev_ctx_t *ctx, uint8_t *buff)
FSM number of programs register.[get].
int32_t lsm6dso32_fsm_init_set(stmdev_ctx_t *ctx, uint8_t val)
FSM initialization request.[set].
int32_t lsm6dso32_fsm_number_of_programs_set(stmdev_ctx_t *ctx, uint8_t *buff)
FSM number of programs register.[set].
int32_t lsm6dso32_fsm_init_get(stmdev_ctx_t *ctx, uint8_t *val)
FSM initialization request.[get].
int32_t lsm6dso32_long_cnt_flag_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val)
Interrupt status bit for FSM long counter timeout interrupt event.[get].
int32_t lsm6dso32_long_cnt_int_value_get(stmdev_ctx_t *ctx, uint16_t *val)
FSM long counter timeout register (r/w). The long counter timeout value is an unsigned integer value ...
int32_t lsm6dso32_fsm_enable_get(stmdev_ctx_t *ctx, lsm6dso32_emb_fsm_enable_t *val)
Final State Machine enable.[get].
int32_t lsm6dso32_fsm_out_get(stmdev_ctx_t *ctx, lsm6dso32_fsm_out_t *val)
FSM output registers[get].
int32_t lsm6dso32_emb_fsm_en_get(stmdev_ctx_t *ctx, uint8_t *val)
Final State Machine global enable.[get].
int32_t lsm6dso32_fsm_start_address_get(stmdev_ctx_t *ctx, uint16_t *val)
FSM start address register (r/w). First available address is 0x033C.[get].
int32_t lsm6dso32_fsm_start_address_set(stmdev_ctx_t *ctx, uint16_t val)
FSM start address register (r/w). First available address is 0x033C.[set].
int32_t lsm6dso32_long_cnt_get(stmdev_ctx_t *ctx, uint16_t *val)
FSM long counter status register. Long counter value is an unsigned integer value (16-bit format)....
int32_t lsm6dso32_long_cnt_set(stmdev_ctx_t *ctx, uint16_t val)
FSM long counter status register. Long counter value is an unsigned integer value (16-bit format)....
@ LSM6DSO32_LC_CLEAR_DONE
@ LSM6DSO32_ODR_FSM_12Hz5
@ LSM6DSO32_ODR_FSM_104Hz
int32_t lsm6dso32_ff_dur_get(stmdev_ctx_t *ctx, uint8_t *val)
Free-fall duration event.[get] 1LSb = 1 / ODR.
int32_t lsm6dso32_ff_dur_set(stmdev_ctx_t *ctx, uint8_t val)
Free-fall duration event.[set] 1LSb = 1 / ODR.
int32_t lsm6dso32_ff_threshold_set(stmdev_ctx_t *ctx, lsm6dso32_ff_ths_t val)
Free fall threshold setting.[set].
int32_t lsm6dso32_ff_threshold_get(stmdev_ctx_t *ctx, lsm6dso32_ff_ths_t *val)
Free fall threshold setting.[get].
int32_t lsm6dso32_pin_int2_route_get(stmdev_ctx_t *ctx, lsm6dso32_pin_int2_route_t *val)
Select the signal that need to route on int2 pad.[get].
int32_t lsm6dso32_int_notification_get(stmdev_ctx_t *ctx, lsm6dso32_lir_t *val)
Interrupt notification mode.[get].
int32_t lsm6dso32_pin_mode_set(stmdev_ctx_t *ctx, lsm6dso32_pp_od_t val)
Push-pull/open drain selection on interrupt pads.[set].
int32_t lsm6dso32_pin_int1_route_set(stmdev_ctx_t *ctx, lsm6dso32_pin_int1_route_t *val)
Select the signal that need to route on int1 pad.[set].
int32_t lsm6dso32_pin_mode_get(stmdev_ctx_t *ctx, lsm6dso32_pp_od_t *val)
Push-pull/open drain selection on interrupt pads.[get].
int32_t lsm6dso32_pin_int2_route_set(stmdev_ctx_t *ctx, lsm6dso32_pin_int2_route_t *val)
Select the signal that need to route on int2 pad.[set].
int32_t lsm6dso32_pin_int1_route_get(stmdev_ctx_t *ctx, lsm6dso32_pin_int1_route_t *val)
Select the signal that need to route on int1 pad.[get].
int32_t lsm6dso32_pin_polarity_get(stmdev_ctx_t *ctx, lsm6dso32_h_lactive_t *val)
Interrupt active-high/low.[get].
int32_t lsm6dso32_pin_polarity_set(stmdev_ctx_t *ctx, lsm6dso32_h_lactive_t val)
Interrupt active-high/low.[set].
int32_t lsm6dso32_int1_mode_get(stmdev_ctx_t *ctx, lsm6dso32_int1_pd_en_t *val)
Connect/Disconnect INT1 internal pull-down.[get].
int32_t lsm6dso32_all_on_int1_get(stmdev_ctx_t *ctx, uint8_t *val)
All interrupt signals become available on INT1 pin.[get].
int32_t lsm6dso32_int1_mode_set(stmdev_ctx_t *ctx, lsm6dso32_int1_pd_en_t val)
Connect/Disconnect INT1 internal pull-down.[set].
int32_t lsm6dso32_all_on_int1_set(stmdev_ctx_t *ctx, uint8_t val)
All interrupt signals become available on INT1 pin.[set].
int32_t lsm6dso32_int_notification_set(stmdev_ctx_t *ctx, lsm6dso32_lir_t val)
Interrupt notification mode.[set].
int32_t lsm6dso32_motion_flag_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val)
Interrupt status bit for significant motion detection.[get].
int32_t lsm6dso32_motion_sens_set(stmdev_ctx_t *ctx, uint8_t val)
Enable significant motion detection function.[set].
int32_t lsm6dso32_motion_sens_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable significant motion detection function.[get].
int32_t lsm6dso32_tap_detection_on_z_set(stmdev_ctx_t *ctx, uint8_t val)
Enable Z direction in tap recognition.[set].
int32_t lsm6dso32_tap_shock_set(stmdev_ctx_t *ctx, uint8_t val)
Maximum duration is the maximum time of an over threshold signal detection to be recognized as a tap ...
int32_t lsm6dso32_tap_threshold_x_set(stmdev_ctx_t *ctx, uint8_t val)
X-axis tap recognition threshold.[set].
int32_t lsm6dso32_tap_quiet_get(stmdev_ctx_t *ctx, uint8_t *val)
Quiet time is the time after the first detected tap in which there must not be any over threshold eve...
int32_t lsm6dso32_tap_detection_on_x_set(stmdev_ctx_t *ctx, uint8_t val)
Enable X direction in tap recognition.[set].
int32_t lsm6dso32_tap_detection_on_y_set(stmdev_ctx_t *ctx, uint8_t val)
Enable Y direction in tap recognition.[set].
int32_t lsm6dso32_tap_threshold_z_set(stmdev_ctx_t *ctx, uint8_t val)
Z-axis recognition threshold.[set].
int32_t lsm6dso32_tap_threshold_y_get(stmdev_ctx_t *ctx, uint8_t *val)
Y-axis tap recognition threshold.[get].
int32_t lsm6dso32_tap_detection_on_y_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable Y direction in tap recognition.[get].
int32_t lsm6dso32_tap_mode_get(stmdev_ctx_t *ctx, lsm6dso32_single_double_tap_t *val)
Single/double-tap event enable.[get].
int32_t lsm6dso32_tap_dur_set(stmdev_ctx_t *ctx, uint8_t val)
When double tap recognition is enabled, this register expresses the maximum time between two consecut...
int32_t lsm6dso32_tap_detection_on_z_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable Z direction in tap recognition.[get].
int32_t lsm6dso32_tap_axis_priority_get(stmdev_ctx_t *ctx, lsm6dso32_tap_priority_t *val)
Selection of axis priority for TAP detection.[get].
int32_t lsm6dso32_tap_detection_on_x_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable X direction in tap recognition.[get].
int32_t lsm6dso32_tap_mode_set(stmdev_ctx_t *ctx, lsm6dso32_single_double_tap_t val)
Single/double-tap event enable.[set].
int32_t lsm6dso32_tap_quiet_set(stmdev_ctx_t *ctx, uint8_t val)
Quiet time is the time after the first detected tap in which there must not be any over threshold eve...
int32_t lsm6dso32_tap_threshold_x_get(stmdev_ctx_t *ctx, uint8_t *val)
X-axis tap recognition threshold.[get].
int32_t lsm6dso32_tap_shock_get(stmdev_ctx_t *ctx, uint8_t *val)
Maximum duration is the maximum time of an over threshold signal detection to be recognized as a tap ...
int32_t lsm6dso32_tap_threshold_y_set(stmdev_ctx_t *ctx, uint8_t val)
Y-axis tap recognition threshold.[set].
int32_t lsm6dso32_tap_axis_priority_set(stmdev_ctx_t *ctx, lsm6dso32_tap_priority_t val)
Selection of axis priority for TAP detection.[set].
int32_t lsm6dso32_tap_dur_get(stmdev_ctx_t *ctx, uint8_t *val)
When double tap recognition is enabled, this register expresses the maximum time between two consecut...
int32_t lsm6dso32_tap_threshold_z_get(stmdev_ctx_t *ctx, uint8_t *val)
Z-axis recognition threshold.[get].
int32_t lsm6dso32_tilt_flag_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val)
Interrupt status bit for tilt detection.[get].
int32_t lsm6dso32_tilt_sens_set(stmdev_ctx_t *ctx, uint8_t val)
Enable tilt calculation.[set].
int32_t lsm6dso32_tilt_sens_get(stmdev_ctx_t *ctx, uint8_t *val)
Enable tilt calculation.[get].
int32_t lsm6dso32_xl_usr_offset_x_get(stmdev_ctx_t *ctx, uint8_t *buff)
Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_...
int32_t lsm6dso32_gy_full_scale_set(stmdev_ctx_t *ctx, lsm6dso32_fs_g_t val)
Gyroscope UI chain full-scale selection.[set].
int32_t lsm6dso32_xl_usr_offset_get(stmdev_ctx_t *ctx, uint8_t *val)
User offset on out flag.[get].
int32_t lsm6dso32_xl_usr_offset_z_get(stmdev_ctx_t *ctx, uint8_t *buff)
Accelerometer Z-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_...
int32_t lsm6dso32_xl_offset_weight_set(stmdev_ctx_t *ctx, lsm6dso32_usr_off_w_t val)
Weight of XL user offset bits of registers X_OFS_USR (73h), Y_OFS_USR (74h), Z_OFS_USR (75h)....
int32_t lsm6dso32_xl_full_scale_set(stmdev_ctx_t *ctx, lsm6dso32_fs_xl_t val)
Accelerometer full-scale selection.[set].
int32_t lsm6dso32_block_data_update_set(stmdev_ctx_t *ctx, uint8_t val)
Block data update.[set].
int32_t lsm6dso32_xl_usr_offset_z_set(stmdev_ctx_t *ctx, uint8_t *buff)
Accelerometer Z-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_...
int32_t lsm6dso32_xl_flag_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val)
Accelerometer new data available.[get].
int32_t lsm6dso32_xl_data_rate_set(stmdev_ctx_t *ctx, lsm6dso32_odr_xl_t val)
Accelerometer UI data rate and power mode selection.[set].
int32_t lsm6dso32_xl_usr_offset_y_set(stmdev_ctx_t *ctx, uint8_t *buff)
Accelerometer Y-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_...
int32_t lsm6dso32_xl_full_scale_get(stmdev_ctx_t *ctx, lsm6dso32_fs_xl_t *val)
Accelerometer full-scale selection.[get].
int32_t lsm6dso32_xl_offset_weight_get(stmdev_ctx_t *ctx, lsm6dso32_usr_off_w_t *val)
Weight of XL user offset bits of registers X_OFS_USR (73h), Y_OFS_USR (74h), Z_OFS_USR (75h)....
int32_t lsm6dso32_i3c_disable_set(stmdev_ctx_t *ctx, lsm6dso32_i3c_disable_t val)
I3C Enable/Disable communication protocol[.set].
int32_t lsm6dso32_gy_flag_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val)
Gyroscope new data available.[get].
int32_t lsm6dso32_xl_data_rate_get(stmdev_ctx_t *ctx, lsm6dso32_odr_xl_t *val)
Accelerometer UI data rate selection.[get].
int32_t lsm6dso32_all_sources_get(stmdev_ctx_t *ctx, lsm6dso32_all_sources_t *val)
Read all the interrupt flag of the device.[get].
int32_t lsm6dso32_xl_usr_offset_x_set(stmdev_ctx_t *ctx, uint8_t *buff)
Accelerometer X-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_...
int32_t lsm6dso32_temp_flag_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val)
Temperature new data available.[get].
int32_t lsm6dso32_i3c_disable_get(stmdev_ctx_t *ctx, lsm6dso32_i3c_disable_t *val)
I3C Enable/Disable communication protocol.[get].
int32_t lsm6dso32_gy_data_rate_get(stmdev_ctx_t *ctx, lsm6dso32_odr_g_t *val)
Gyroscope UI data rate selection.[get].
int32_t lsm6dso32_gy_full_scale_get(stmdev_ctx_t *ctx, lsm6dso32_fs_g_t *val)
Gyroscope UI chain full-scale selection.[get].
int32_t lsm6dso32_gy_data_rate_set(stmdev_ctx_t *ctx, lsm6dso32_odr_g_t val)
Gyroscope UI data rate selection.[set].
int32_t lsm6dso32_status_reg_get(stmdev_ctx_t *ctx, lsm6dso32_status_reg_t *val)
The STATUS_REG register is read by the primary interface.[get].
int32_t lsm6dso32_i2c_interface_get(stmdev_ctx_t *ctx, lsm6dso32_i2c_disable_t *val)
Disable / Enable I2C interface.[get].
int32_t lsm6dso32_xl_usr_offset_y_get(stmdev_ctx_t *ctx, uint8_t *buff)
Accelerometer Y-axis user offset correction expressed in two’s complement, weight depends on USR_OFF_...
int32_t lsm6dso32_block_data_update_get(stmdev_ctx_t *ctx, uint8_t *val)
Block data update.[get].
int32_t lsm6dso32_spi_mode_get(stmdev_ctx_t *ctx, lsm6dso32_sim_t *val)
SPI Serial Interface Mode selection.[get].
int32_t lsm6dso32_spi_mode_set(stmdev_ctx_t *ctx, lsm6dso32_sim_t val)
SPI Serial Interface Mode selection.[set].
int32_t lsm6dso32_xl_usr_offset_set(stmdev_ctx_t *ctx, uint8_t val)
Enables user offset on out.[set].
int32_t lsm6dso32_i2c_interface_set(stmdev_ctx_t *ctx, lsm6dso32_i2c_disable_t val)
Disable / Enable I2C interface.[set].
int32_t lsm6dso32_sdo_sa0_mode_get(stmdev_ctx_t *ctx, lsm6dso32_sdo_pu_en_t *val)
Connect/Disconnect SDO/SA0 internal pull-up.[get].
int32_t lsm6dso32_sdo_sa0_mode_set(stmdev_ctx_t *ctx, lsm6dso32_sdo_pu_en_t val)
Connect/Disconnect SDO/SA0 internal pull-up.[set].
This file contains all the functions prototypes for the lsm6dso32_reg.c driver.
#define LSM6DSO32_WAKE_UP_DUR
#define LSM6DSO32_SLV3_SUBADD
#define LSM6DSO32_FSM_LONG_COUNTER_CLEAR
#define LSM6DSO32_CTRL6_C
#define LSM6DSO32_MD2_CFG
#define LSM6DSO32_EMB_FUNC_ODR_CFG_B
#define LSM6DSO32_Y_OFS_USR
#define LSM6DSO32_INT2_CTRL
#define LSM6DSO32_FIFO_CTRL4
lsm6dso32_hp_slope_xl_en_t
@ LSM6DSO32_LP_ODR_DIV_10
@ LSM6DSO32_HP_REF_MD_ODR_DIV_10
@ LSM6DSO32_LP_ODR_DIV_100
@ LSM6DSO32_HP_PATH_DISABLE_ON_OUT
@ LSM6DSO32_HP_REF_MD_ODR_DIV_20
@ LSM6DSO32_HP_REF_MD_ODR_DIV_45
@ LSM6DSO32_HP_REF_MD_ODR_DIV_100
@ LSM6DSO32_HP_ODR_DIV_800
@ LSM6DSO32_HP_REF_MD_ODR_DIV_400
@ LSM6DSO32_LP_ODR_DIV_20
@ LSM6DSO32_HP_ODR_DIV_20
@ LSM6DSO32_HP_ODR_DIV_100
@ LSM6DSO32_SLOPE_ODR_DIV_4
@ LSM6DSO32_HP_REF_MD_ODR_DIV_800
@ LSM6DSO32_LP_ODR_DIV_45
@ LSM6DSO32_LP_ODR_DIV_200
@ LSM6DSO32_HP_ODR_DIV_200
@ LSM6DSO32_LP_ODR_DIV_800
@ LSM6DSO32_HP_ODR_DIV_45
@ LSM6DSO32_HP_REF_MD_ODR_DIV_200
@ LSM6DSO32_HP_ODR_DIV_10
@ LSM6DSO32_LP_ODR_DIV_400
@ LSM6DSO32_HP_ODR_DIV_400
#define LSM6DSO32_MAG_CFG_B
#define LSM6DSO32_FSM_ENABLE_A
#define LSM6DSO32_SLV0_SUBADD
#define LSM6DSO32_SLV3_CONFIG
#define LSM6DSO32_FSM_STATUS_A
#define LSM6DSO32_EMB_FUNC_SRC
#define LSM6DSO32_FSM_OUTS1
@ LSM6DSO32_XL_ST_POSITIVE
@ LSM6DSO32_XL_ST_DISABLE
@ LSM6DSO32_XL_ST_NEGATIVE
@ LSM6DSO32_LSb_FS_DIV_64
@ LSM6DSO32_LSb_FS_DIV_256
#define LSM6DSO32_MAG_SI_YY_H
#define LSM6DSO32_COUNTER_BDR_REG2
#define LSM6DSO32_SLV1_SUBADD
#define LSM6DSO32_CTRL1_XL
#define LSM6DSO32_DATAWRITE_SLV0
#define LSM6DSO32_PEDO_SC_DELTAT_L
#define LSM6DSO32_FSM_INT2_B
#define LSM6DSO32_PAGE_SEL
#define LSM6DSO32_SLV3_ADD
#define LSM6DSO32_FSM_LC_TIMEOUT_L
#define LSM6DSO32_FIFO_DATA_OUT_X_L
#define LSM6DSO32_MAG_SI_ZZ_L
#define LSM6DSO32_FIFO_DATA_OUT_TAG
#define LSM6DSO32_PEDO_CMD_REG
#define LSM6DSO32_FIFO_STATUS2
#define LSM6DSO32_MASTER_CONFIG
#define LSM6DSO32_FIFO_CTRL2
#define LSM6DSO32_CTRL7_G
#define LSM6DSO32_SENSOR_HUB_1
#define LSM6DSO32_EMB_FUNC_FIFO_CFG
#define LSM6DSO32_INT_DUR2
#define LSM6DSO32_MAG_OFFZ_L
#define LSM6DSO32_FIFO_STATUS1
@ LSM6DSO32_EMBEDDED_FUNC_BANK
@ LSM6DSO32_SENSOR_HUB_BANK
#define LSM6DSO32_PAGE_ADDRESS
#define LSM6DSO32_SLV2_CONFIG
#define LSM6DSO32_CTRL9_XL
#define LSM6DSO32_EMB_FUNC_INT1
#define LSM6DSO32_CTRL2_G
#define LSM6DSO32_STEP_COUNTER_L
#define LSM6DSO32_MAG_SENSITIVITY_L
#define LSM6DSO32_INTERNAL_FREQ_FINE
#define LSM6DSO32_MAG_SENSITIVITY_H
#define LSM6DSO32_COUNTER_BDR_REG1
#define LSM6DSO32_FREE_FALL
#define LSM6DSO32_SLV2_SUBADD
#define LSM6DSO32_TAP_THS_6D
#define LSM6DSO32_FSM_INT1_B
#define LSM6DSO32_MAG_SI_YZ_L
@ LSM6DSO32_I3C_ENABLE_T_25ms
@ LSM6DSO32_I3C_ENABLE_T_2us
@ LSM6DSO32_I3C_ENABLE_T_50us
@ LSM6DSO32_I3C_ENABLE_T_1ms
#define LSM6DSO32_FSM_STATUS_B
@ LSM6DSO32_LEVEL_TRIGGER
@ LSM6DSO32_LEVEL_LETCHED
#define LSM6DSO32_OUT_TEMP_L
#define LSM6DSO32_MD1_CFG
#define LSM6DSO32_SLV0_CONFIG
@ LSM6DSO32_GY_ST_NEGATIVE
@ LSM6DSO32_GY_ST_POSITIVE
@ LSM6DSO32_GY_ST_DISABLE
#define LSM6DSO32_WHO_AM_I
#define LSM6DSO32_MAG_OFFY_L
#define LSM6DSO32_STATUS_REG
#define LSM6DSO32_TAP_CFG2
#define LSM6DSO32_WAKE_UP_SRC
#define LSM6DSO32_SLV0_ADD
#define LSM6DSO32_EMB_FUNC_EN_A
#define LSM6DSO32_MAG_SI_ZZ_H
#define LSM6DSO32_OUTX_L_A
@ LSM6DSO32_PEDO_BASE_MODE
@ LSM6DSO32_PEDO_ADV_MODE
@ LSM6DSO32_FALSE_STEP_REJ
@ LSM6DSO32_FALSE_STEP_REJ_ADV_MODE
#define LSM6DSO32_SLV1_CONFIG
#define LSM6DSO32_MAG_SI_XZ_L
#define LSM6DSO32_EMB_FUNC_INIT_B
#define LSM6DSO32_ALL_INT_SRC
#define LSM6DSO32_D6D_SRC
#define LSM6DSO32_I3C_BUS_AVB
lsm6dso32_single_double_tap_t
@ LSM6DSO32_BOTH_SINGLE_DOUBLE
#define LSM6DSO32_PAGE_VALUE
@ LSM6DSO32_XL_ODR_3333Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_6667Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_833Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_208Hz_ULTRA_LOW_PW
@ LSM6DSO32_XL_ODR_12Hz5_HIGH_PERF
@ LSM6DSO32_XL_ODR_52Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_417Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_6Hz5_ULTRA_LOW_PW
@ LSM6DSO32_XL_ODR_208Hz_NORMAL_MD
@ LSM6DSO32_XL_ODR_26Hz_LOW_PW
@ LSM6DSO32_XL_ODR_208Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_12Hz5_LOW_PW
@ LSM6DSO32_XL_ODR_104Hz_NORMAL_MD
@ LSM6DSO32_XL_ODR_26Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_52Hz_ULTRA_LOW_PW
@ LSM6DSO32_XL_ODR_12Hz5_ULTRA_LOW_PW
@ LSM6DSO32_XL_ODR_6Hz5_LOW_PW
@ LSM6DSO32_XL_ODR_26Hz_ULTRA_LOW_PW
@ LSM6DSO32_XL_ODR_1667Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_104Hz_HIGH_PERF
@ LSM6DSO32_XL_ODR_52Hz_LOW_PW
@ LSM6DSO32_XL_ODR_104Hz_ULTRA_LOW_PW
#define LSM6DSO32_EMB_FUNC_STATUS
#define LSM6DSO32_MAG_SI_YZ_H
lsm6dso32_sleep_status_on_int_t
@ LSM6DSO32_DRIVE_SLEEP_CHG_EVENT
@ LSM6DSO32_DRIVE_SLEEP_STATUS
#define LSM6DSO32_MAG_SI_XX_H
#define LSM6DSO32_CTRL4_C
#define LSM6DSO32_MAG_CFG_A
#define LSM6DSO32_SLV1_ADD
#define LSM6DSO32_MAG_OFFY_H
#define LSM6DSO32_PAGE_RW
#define LSM6DSO32_CTRL8_XL
@ LSM6DSO32_INTERNAL_PULL_UP
#define LSM6DSO32_MAG_OFFZ_H
@ LSM6DSO32_EXT_ON_INT2_PIN
lsm6dso32_carry_count_en_t
@ LSM6DSO32_COUNT_OVERFLOW
@ LSM6DSO32_EACH_SH_CYCLE
@ LSM6DSO32_ONLY_FIRST_CYCLE
#define LSM6DSO32_FSM_INT2_A
#define LSM6DSO32_PIN_CTRL
#define LSM6DSO32_MAG_SI_XY_L
#define LSM6DSO32_FSM_ENABLE_B
#define LSM6DSO32_CTRL10_C
#define LSM6DSO32_TAP_SRC
#define LSM6DSO32_FSM_INT1_A
#define LSM6DSO32_OUTX_L_G
@ LSM6DSO32_PULL_UP_CONNECT
#define LSM6DSO32_MAG_OFFX_L
@ LSM6DSO32_ALL_INT_LATCHED
@ LSM6DSO32_BASE_LATCHED_EMB_PULSED
@ LSM6DSO32_BASE_PULSED_EMB_LATCHED
@ LSM6DSO32_ALL_INT_PULSED
#define LSM6DSO32_FSM_PROGRAMS
#define LSM6DSO32_EMB_FUNC_EN_B
#define LSM6DSO32_CTRL3_C
#define LSM6DSO32_INT1_CTRL
#define LSM6DSO32_STATUS_MASTER
#define LSM6DSO32_TAP_CFG0
#define LSM6DSO32_Z_OFS_USR
#define LSM6DSO32_WAKE_UP_THS
#define LSM6DSO32_MAG_SI_XY_H
#define LSM6DSO32_FSM_START_ADD_L
#define LSM6DSO32_EMB_FUNC_INT2
@ LSM6DSO32_GY_ODR_52Hz_LOW_PW
@ LSM6DSO32_GY_ODR_104Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_12Hz5_LOW_PW
@ LSM6DSO32_GY_ODR_26Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_208Hz_NORMAL_MD
@ LSM6DSO32_GY_ODR_6667Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_104Hz_NORMAL_MD
@ LSM6DSO32_GY_ODR_52Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_417Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_26Hz_LOW_PW
@ LSM6DSO32_GY_ODR_12Hz5_HIGH_PERF
@ LSM6DSO32_GY_ODR_3333Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_1667Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_833Hz_HIGH_PERF
@ LSM6DSO32_GY_ODR_208Hz_HIGH_PERF
#define LSM6DSO32_FIFO_CTRL3
lsm6dso32_dataready_pulsed_t
#define LSM6DSO32_FIFO_CTRL1
@ LSM6DSO32_PULL_DOWN_CONNECT
@ LSM6DSO32_PULL_DOWN_DISC
#define LSM6DSO32_CTRL5_C
#define LSM6DSO32_PEDO_SC_DELTAT_H
@ LSM6DSO32_XL_12Hz5_GY_NOT_AFFECTED
@ LSM6DSO32_XL_12Hz5_GY_PD
@ LSM6DSO32_XL_AND_GY_NOT_AFFECTED
@ LSM6DSO32_XL_12Hz5_GY_SLEEP
#define LSM6DSO32_X_OFS_USR
#define LSM6DSO32_FSM_LONG_COUNTER_L
@ LSM6DSO32_STAMP_IN_XL_DATA
@ LSM6DSO32_STAMP_IN_GY_DATA
@ LSM6DSO32_STAMP_IN_GY_XL_DATA
#define LSM6DSO32_PEDO_DEB_STEPS_CONF
#define LSM6DSO32_FSM_START_ADD_H
#define LSM6DSO32_MAG_SI_YY_L
#define LSM6DSO32_TIMESTAMP0
#define LSM6DSO32_SLV2_ADD
#define LSM6DSO32_MAG_SI_XX_L
#define LSM6DSO32_FUNC_CFG_ACCESS
#define LSM6DSO32_TAP_CFG1
#define LSM6DSO32_FSM_LC_TIMEOUT_H
#define LSM6DSO32_MAG_OFFX_H
@ LSM6DSO32_HP_FILTER_NONE
@ LSM6DSO32_HP_FILTER_16mHz
@ LSM6DSO32_HP_FILTER_1Hz04
@ LSM6DSO32_HP_FILTER_260mHz
@ LSM6DSO32_HP_FILTER_65mHz
#define LSM6DSO32_MAG_SI_XZ_H
: Header for main.c file. This file contains the common defines of the application.
lsm6dso32_all_int_src_t all_int_src
lsm6dso32_emb_func_status_t emb_func_status
lsm6dso32_fsm_status_b_t fsm_status_b
lsm6dso32_d6d_src_t d6d_src
lsm6dso32_wake_up_src_t wake_up_src
lsm6dso32_fsm_status_a_t fsm_status_a
lsm6dso32_status_reg_t status_reg
lsm6dso32_tap_src_t tap_src
uint8_t fastsettl_mode_xl
lsm6dso32_fsm_enable_a_t fsm_enable_a
lsm6dso32_fsm_enable_b_t fsm_enable_b
uint8_t int1_step_detector
uint8_t int2_step_detector
uint8_t pass_through_mode
uint8_t int1_sleep_change
uint8_t int2_sleep_change
lsm6dso32_emb_func_int1_t emb_func_int1
lsm6dso32_int1_ctrl_t int1_ctrl
lsm6dso32_md1_cfg_t md1_cfg
lsm6dso32_fsm_int1_a_t fsm_int1_a
lsm6dso32_fsm_int1_b_t fsm_int1_b
lsm6dso32_int2_ctrl_t int2_ctrl
lsm6dso32_emb_func_int2_t emb_func_int2
lsm6dso32_fsm_int2_b_t fsm_int2_b
lsm6dso32_md2_cfg_t md2_cfg
lsm6dso32_fsm_int2_a_t fsm_int2_a
uint8_t batch_ext_sens_0_en
uint8_t batch_ext_sens_1_en
uint8_t batch_ext_sens_2_en
uint8_t batch_ext_sens_3_en
uint8_t sleep_status_on_int
uint8_t interrupts_enable
uint8_t single_double_tap
stmdev_write_ptr write_reg