/hal_st-2.7.6/sensor/stmemsc/asm330lhh_STdC/driver/ |
D | asm330lhh_reg.c | 565 asm330lhh_ctrl6_c_t ctrl6_c; in asm330lhh_xl_offset_weight_set() local 568 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in asm330lhh_xl_offset_weight_set() 572 ctrl6_c.usr_off_w = (uint8_t)val; in asm330lhh_xl_offset_weight_set() 573 ret = asm330lhh_write_reg(ctx, ASM330LHH_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in asm330lhh_xl_offset_weight_set() 591 asm330lhh_ctrl6_c_t ctrl6_c; in asm330lhh_xl_offset_weight_get() local 594 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in asm330lhh_xl_offset_weight_get() 596 switch (ctrl6_c.usr_off_w) in asm330lhh_xl_offset_weight_get() 1773 asm330lhh_ctrl6_c_t ctrl6_c; in asm330lhh_gy_lp1_bandwidth_set() local 1776 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in asm330lhh_gy_lp1_bandwidth_set() 1780 ctrl6_c.ftype = (uint8_t)val; in asm330lhh_gy_lp1_bandwidth_set() [all …]
|
D | asm330lhh_reg.h | 869 asm330lhh_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/iis3dwb_STdC/driver/ |
D | iis3dwb_reg.c | 319 iis3dwb_ctrl6_c_t ctrl6_c; in iis3dwb_xl_offset_weight_set() local 322 ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis3dwb_xl_offset_weight_set() 326 ctrl6_c.usr_off_w = (uint8_t)val; in iis3dwb_xl_offset_weight_set() 327 ret = iis3dwb_write_reg(ctx, IIS3DWB_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis3dwb_xl_offset_weight_set() 345 iis3dwb_ctrl6_c_t ctrl6_c; in iis3dwb_xl_offset_weight_get() local 348 ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis3dwb_xl_offset_weight_get() 350 switch (ctrl6_c.usr_off_w) in iis3dwb_xl_offset_weight_get() 381 iis3dwb_ctrl6_c_t ctrl6_c; in iis3dwb_xl_axis_selection_set() local 394 ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis3dwb_xl_axis_selection_set() 399 ctrl6_c.xl_axis_sel = (uint8_t)val; in iis3dwb_xl_axis_selection_set() [all …]
|
D | iis3dwb_reg.h | 694 iis3dwb_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/lsm6ds3tr-c_STdC/driver/ |
D | lsm6ds3tr_c_reg.c | 561 lsm6ds3tr_c_ctrl6_c_t ctrl6_c; in lsm6ds3tr_c_xl_offset_weight_set() local 565 (uint8_t *)&ctrl6_c, 1); in lsm6ds3tr_c_xl_offset_weight_set() 569 ctrl6_c.usr_off_w = (uint8_t) val; in lsm6ds3tr_c_xl_offset_weight_set() 571 (uint8_t *)&ctrl6_c, 1); in lsm6ds3tr_c_xl_offset_weight_set() 589 lsm6ds3tr_c_ctrl6_c_t ctrl6_c; in lsm6ds3tr_c_xl_offset_weight_get() local 593 (uint8_t *)&ctrl6_c, 1); in lsm6ds3tr_c_xl_offset_weight_get() 595 switch (ctrl6_c.usr_off_w) in lsm6ds3tr_c_xl_offset_weight_get() 624 lsm6ds3tr_c_ctrl6_c_t ctrl6_c; in lsm6ds3tr_c_xl_power_mode_set() local 628 (uint8_t *)&ctrl6_c, 1); in lsm6ds3tr_c_xl_power_mode_set() 632 ctrl6_c.xl_hm_mode = (uint8_t) val; in lsm6ds3tr_c_xl_power_mode_set() [all …]
|
D | lsm6ds3tr_c_reg.h | 1628 lsm6ds3tr_c_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dsl_STdC/driver/ |
D | lsm6dsl_reg.c | 544 lsm6dsl_ctrl6_c_t ctrl6_c; in lsm6dsl_xl_offset_weight_set() local 547 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsl_xl_offset_weight_set() 551 ctrl6_c.usr_off_w = (uint8_t) val; in lsm6dsl_xl_offset_weight_set() 552 ret = lsm6dsl_write_reg(ctx, LSM6DSL_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsl_xl_offset_weight_set() 570 lsm6dsl_ctrl6_c_t ctrl6_c; in lsm6dsl_xl_offset_weight_get() local 573 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsl_xl_offset_weight_get() 575 switch (ctrl6_c.usr_off_w) in lsm6dsl_xl_offset_weight_get() 604 lsm6dsl_ctrl6_c_t ctrl6_c; in lsm6dsl_xl_power_mode_set() local 607 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsl_xl_power_mode_set() 611 ctrl6_c.xl_hm_mode = (uint8_t) val; in lsm6dsl_xl_power_mode_set() [all …]
|
D | lsm6dsl_reg.h | 1628 lsm6dsl_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/ism330dlc_STdC/driver/ |
D | ism330dlc_reg.c | 539 ism330dlc_ctrl6_c_t ctrl6_c; in ism330dlc_xl_offset_weight_set() local 541 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in ism330dlc_xl_offset_weight_set() 545 ctrl6_c.usr_off_w = (uint8_t) val; in ism330dlc_xl_offset_weight_set() 546 ret = ism330dlc_write_reg(ctx, ISM330DLC_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in ism330dlc_xl_offset_weight_set() 564 ism330dlc_ctrl6_c_t ctrl6_c; in ism330dlc_xl_offset_weight_get() local 566 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in ism330dlc_xl_offset_weight_get() 568 switch (ctrl6_c.usr_off_w) in ism330dlc_xl_offset_weight_get() 597 ism330dlc_ctrl6_c_t ctrl6_c; in ism330dlc_xl_power_mode_set() local 599 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in ism330dlc_xl_power_mode_set() 603 ctrl6_c.xl_hm_mode = (uint8_t) val; in ism330dlc_xl_power_mode_set() [all …]
|
D | ism330dlc_reg.h | 1617 ism330dlc_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dsm_STdC/driver/ |
D | lsm6dsm_reg.c | 544 lsm6dsm_ctrl6_c_t ctrl6_c; in lsm6dsm_xl_offset_weight_set() local 547 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsm_xl_offset_weight_set() 551 ctrl6_c.usr_off_w = (uint8_t) val; in lsm6dsm_xl_offset_weight_set() 552 ret = lsm6dsm_write_reg(ctx, LSM6DSM_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsm_xl_offset_weight_set() 570 lsm6dsm_ctrl6_c_t ctrl6_c; in lsm6dsm_xl_offset_weight_get() local 573 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsm_xl_offset_weight_get() 575 switch (ctrl6_c.usr_off_w) in lsm6dsm_xl_offset_weight_get() 604 lsm6dsm_ctrl6_c_t ctrl6_c; in lsm6dsm_xl_power_mode_set() local 607 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsm_xl_power_mode_set() 611 ctrl6_c.xl_hm_mode = (uint8_t) val; in lsm6dsm_xl_power_mode_set() [all …]
|
D | lsm6dsm_reg.h | 1715 lsm6dsm_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dsr_STdC/driver/ |
D | lsm6dsr_reg.c | 807 lsm6dsr_ctrl6_c_t ctrl6_c; in lsm6dsr_xl_offset_weight_set() local 810 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsr_xl_offset_weight_set() 814 ctrl6_c.usr_off_w = (uint8_t)val; in lsm6dsr_xl_offset_weight_set() 815 ret = lsm6dsr_write_reg(ctx, LSM6DSR_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsr_xl_offset_weight_set() 833 lsm6dsr_ctrl6_c_t ctrl6_c; in lsm6dsr_xl_offset_weight_get() local 836 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsr_xl_offset_weight_get() 838 switch (ctrl6_c.usr_off_w) in lsm6dsr_xl_offset_weight_get() 867 lsm6dsr_ctrl6_c_t ctrl6_c; in lsm6dsr_xl_power_mode_set() local 870 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsr_xl_power_mode_set() 874 ctrl6_c.xl_hm_mode = (uint8_t)val & 0x01U; in lsm6dsr_xl_power_mode_set() [all …]
|
D | lsm6dsr_reg.h | 2664 lsm6dsr_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/ism330dhcx_STdC/driver/ |
D | ism330dhcx_reg.c | 1024 ism330dhcx_ctrl6_c_t ctrl6_c; in ism330dhcx_xl_offset_weight_set() local 1027 (uint8_t *)&ctrl6_c, 1); in ism330dhcx_xl_offset_weight_set() 1031 ctrl6_c.usr_off_w = (uint8_t)val; in ism330dhcx_xl_offset_weight_set() 1033 (uint8_t *)&ctrl6_c, 1); in ism330dhcx_xl_offset_weight_set() 1051 ism330dhcx_ctrl6_c_t ctrl6_c; in ism330dhcx_xl_offset_weight_get() local 1054 (uint8_t *)&ctrl6_c, 1); in ism330dhcx_xl_offset_weight_get() 1056 switch (ctrl6_c.usr_off_w) in ism330dhcx_xl_offset_weight_get() 1085 ism330dhcx_ctrl6_c_t ctrl6_c; in ism330dhcx_xl_power_mode_set() local 1088 (uint8_t *)&ctrl6_c, 1); in ism330dhcx_xl_power_mode_set() 1092 ctrl6_c.xl_hm_mode = (uint8_t)val & 0x01U; in ism330dhcx_xl_power_mode_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dsrx_STdC/driver/ |
D | lsm6dsrx_reg.c | 1022 lsm6dsrx_ctrl6_c_t ctrl6_c; in lsm6dsrx_xl_offset_weight_set() local 1025 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsrx_xl_offset_weight_set() 1029 ctrl6_c.usr_off_w = (uint8_t)val; in lsm6dsrx_xl_offset_weight_set() 1030 ret = lsm6dsrx_write_reg(ctx, LSM6DSRX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsrx_xl_offset_weight_set() 1048 lsm6dsrx_ctrl6_c_t ctrl6_c; in lsm6dsrx_xl_offset_weight_get() local 1051 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsrx_xl_offset_weight_get() 1053 switch (ctrl6_c.usr_off_w) in lsm6dsrx_xl_offset_weight_get() 1082 lsm6dsrx_ctrl6_c_t ctrl6_c; in lsm6dsrx_xl_power_mode_set() local 1085 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6dsrx_xl_power_mode_set() 1089 ctrl6_c.xl_hm_mode = (uint8_t)val & 0x01U; in lsm6dsrx_xl_power_mode_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6ds3_STdC/driver/ |
D | lsm6ds3_reg.c | 694 lsm6ds3_ctrl6_c_t ctrl6_c; in lsm6ds3_xl_power_mode_set() local 697 ret = lsm6ds3_read_reg(ctx, LSM6DS3_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6ds3_xl_power_mode_set() 701 ctrl6_c.xl_hm_mode = (uint8_t)val; in lsm6ds3_xl_power_mode_set() 702 ret = lsm6ds3_write_reg(ctx, LSM6DS3_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6ds3_xl_power_mode_set() 719 lsm6ds3_ctrl6_c_t ctrl6_c; in lsm6ds3_xl_power_mode_get() local 722 ret = lsm6ds3_read_reg(ctx, LSM6DS3_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6ds3_xl_power_mode_get() 724 switch (ctrl6_c.xl_hm_mode) in lsm6ds3_xl_power_mode_get() 5010 lsm6ds3_ctrl6_c_t ctrl6_c; in lsm6ds3_den_mode_set() local 5013 ret = lsm6ds3_read_reg(ctx, LSM6DS3_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in lsm6ds3_den_mode_set() 5017 ctrl6_c.den_mode = (uint8_t)val; in lsm6ds3_den_mode_set() [all …]
|
D | lsm6ds3_reg.h | 1520 lsm6ds3_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/iis2iclx_STdC/driver/ |
D | iis2iclx_reg.c | 627 iis2iclx_ctrl6_c_t ctrl6_c; in iis2iclx_xl_offset_weight_set() local 630 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis2iclx_xl_offset_weight_set() 634 ctrl6_c.usr_off_w = (uint8_t)val; in iis2iclx_xl_offset_weight_set() 635 ret = iis2iclx_write_reg(ctx, IIS2ICLX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis2iclx_xl_offset_weight_set() 653 iis2iclx_ctrl6_c_t ctrl6_c; in iis2iclx_xl_offset_weight_get() local 656 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis2iclx_xl_offset_weight_get() 658 switch (ctrl6_c.usr_off_w) in iis2iclx_xl_offset_weight_get() 4919 iis2iclx_ctrl6_c_t ctrl6_c; in iis2iclx_den_mode_set() local 4934 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL6_C, (uint8_t *)&ctrl6_c, 1); in iis2iclx_den_mode_set() 4939 ctrl6_c.den_mode = (uint8_t)val & 0x07U; in iis2iclx_den_mode_set() [all …]
|
D | iis2iclx_reg.h | 2355 iis2iclx_ctrl6_c_t ctrl6_c; member
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dso32x_STdC/driver/ |
D | lsm6dso32x_reg.c | 1083 lsm6dso32x_ctrl6_c_t ctrl6_c; in lsm6dso32x_xl_power_mode_set() local 1099 (uint8_t *) &ctrl6_c, 1); in lsm6dso32x_xl_power_mode_set() 1104 ctrl6_c.xl_hm_mode = (uint8_t)val & 0x01U; in lsm6dso32x_xl_power_mode_set() 1106 (uint8_t *) &ctrl6_c, 1); in lsm6dso32x_xl_power_mode_set() 1124 lsm6dso32x_ctrl6_c_t ctrl6_c; in lsm6dso32x_xl_power_mode_get() local 1133 (uint8_t *) &ctrl6_c, 1); in lsm6dso32x_xl_power_mode_get() 1135 switch ((ctrl5_c.xl_ulp_en << 1) | ctrl6_c.xl_hm_mode) in lsm6dso32x_xl_power_mode_get() 11267 lsm6dso32x_ctrl6_c_t ctrl6_c; in lsm6dso32x_mode_set() local 11297 bytecpy((uint8_t *)&ctrl6_c, ®[5]); in lsm6dso32x_mode_set() 11453 switch ((ctrl5_c.xl_ulp_en << 5) | (ctrl6_c.xl_hm_mode << 4) | in lsm6dso32x_mode_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dso_STdC/driver/ |
D | lsm6dso_reg.c | 872 lsm6dso_ctrl6_c_t ctrl6_c; in lsm6dso_xl_power_mode_set() local 885 ret = lsm6dso_read_reg(ctx, LSM6DSO_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dso_xl_power_mode_set() 890 ctrl6_c.xl_hm_mode = (uint8_t)val & 0x01U; in lsm6dso_xl_power_mode_set() 891 ret = lsm6dso_write_reg(ctx, LSM6DSO_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dso_xl_power_mode_set() 909 lsm6dso_ctrl6_c_t ctrl6_c; in lsm6dso_xl_power_mode_get() local 916 ret = lsm6dso_read_reg(ctx, LSM6DSO_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dso_xl_power_mode_get() 918 switch ((ctrl5_c.xl_ulp_en << 1) | ctrl6_c.xl_hm_mode) in lsm6dso_xl_power_mode_get() 11796 lsm6dso_ctrl6_c_t ctrl6_c; in lsm6dso_mode_set() local 11841 bytecpy((uint8_t *)&ctrl6_c, ®[5]); in lsm6dso_mode_set() 11957 switch ((ctrl5_c.xl_ulp_en << 5) | (ctrl6_c.xl_hm_mode << 4) | in lsm6dso_mode_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dsox_STdC/driver/ |
D | lsm6dsox_reg.c | 1091 lsm6dsox_ctrl6_c_t ctrl6_c; in lsm6dsox_xl_power_mode_set() local 1104 ret = lsm6dsox_read_reg(ctx, LSM6DSOX_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dsox_xl_power_mode_set() 1109 ctrl6_c.xl_hm_mode = (uint8_t)val & 0x01U; in lsm6dsox_xl_power_mode_set() 1110 ret = lsm6dsox_write_reg(ctx, LSM6DSOX_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dsox_xl_power_mode_set() 1128 lsm6dsox_ctrl6_c_t ctrl6_c; in lsm6dsox_xl_power_mode_get() local 1135 ret = lsm6dsox_read_reg(ctx, LSM6DSOX_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dsox_xl_power_mode_get() 1137 switch ((ctrl5_c.xl_ulp_en << 1) | ctrl6_c.xl_hm_mode) in lsm6dsox_xl_power_mode_get() 12878 lsm6dsox_ctrl6_c_t ctrl6_c; in lsm6dsox_mode_set() local 12923 bytecpy((uint8_t *)&ctrl6_c, ®[5]); in lsm6dsox_mode_set() 13107 switch ((ctrl5_c.xl_ulp_en << 5) | (ctrl6_c.xl_hm_mode << 4) | in lsm6dsox_mode_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dso32_STdC/driver/ |
D | lsm6dso32_reg.c | 242 lsm6dso32_ctrl6_c_t ctrl6_c; in lsm6dso32_xl_data_rate_set() local 276 ret = lsm6dso32_read_reg(ctx, LSM6DSO32_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dso32_xl_data_rate_set() 281 ctrl6_c.xl_hm_mode = ((uint8_t)val & 0x10U) >> 4; in lsm6dso32_xl_data_rate_set() 283 (uint8_t *) &ctrl6_c, 1); in lsm6dso32_xl_data_rate_set() 316 lsm6dso32_ctrl6_c_t ctrl6_c; in lsm6dso32_xl_data_rate_get() local 336 ret = lsm6dso32_read_reg(ctx, LSM6DSO32_CTRL6_C, (uint8_t *) &ctrl6_c, 1); in lsm6dso32_xl_data_rate_get() 339 switch ((ctrl5_c.xl_ulp_en << 5) + (ctrl6_c.xl_hm_mode << 4) + in lsm6dso32_xl_data_rate_get()
|
D | lsm6dso32_reg.h | 2516 lsm6dso32_ctrl6_c_t ctrl6_c; member
|