/hal_st-3.6.0/sensor/stmemsc/iis3dwb_STdC/driver/ |
D | iis3dwb_reg.c | 283 iis3dwb_ctrl3_c_t ctrl3_c; in iis3dwb_block_data_update_set() local 285 int32_t ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis3dwb_block_data_update_set() 289 ctrl3_c.bdu = (uint8_t)val; in iis3dwb_block_data_update_set() 290 ret = iis3dwb_write_reg(ctx, IIS3DWB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis3dwb_block_data_update_set() 306 iis3dwb_ctrl3_c_t ctrl3_c; in iis3dwb_block_data_update_get() local 308 const int32_t ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis3dwb_block_data_update_get() 309 *val = ctrl3_c.bdu; in iis3dwb_block_data_update_get() 1128 iis3dwb_ctrl3_c_t ctrl3_c; in iis3dwb_reset_set() local 1130 int32_t ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis3dwb_reset_set() 1134 ctrl3_c.sw_reset = (uint8_t)val; in iis3dwb_reset_set() [all …]
|
D | iis3dwb_reg.h | 707 iis3dwb_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dso16is_STdC/driver/ |
D | lsm6dso16is_reg.c | 336 lsm6dso16is_ctrl3_c_t ctrl3_c; in lsm6dso16is_software_reset() local 339 ret = lsm6dso16is_read_reg(ctx, LSM6DSO16IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso16is_software_reset() 346 ctrl3_c.sw_reset = PROPERTY_ENABLE; in lsm6dso16is_software_reset() 347 ret += lsm6dso16is_write_reg(ctx, LSM6DSO16IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso16is_software_reset() 350 ret += lsm6dso16is_read_reg(ctx, LSM6DSO16IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso16is_software_reset() 351 } while (ret == 0 && ctrl3_c.sw_reset == PROPERTY_ENABLE); in lsm6dso16is_software_reset() 367 lsm6dso16is_ctrl3_c_t ctrl3_c; in lsm6dso16is_boot_set() local 370 ret = lsm6dso16is_read_reg(ctx, LSM6DSO16IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso16is_boot_set() 374 ctrl3_c.boot = val; in lsm6dso16is_boot_set() 375 ret = lsm6dso16is_write_reg(ctx, LSM6DSO16IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso16is_boot_set() [all …]
|
D | lsm6dso16is_reg.h | 2131 lsm6dso16is_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/ism330is_STdC/driver/ |
D | ism330is_reg.c | 336 ism330is_ctrl3_c_t ctrl3_c; in ism330is_software_reset() local 339 ret = ism330is_read_reg(ctx, ISM330IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330is_software_reset() 346 ctrl3_c.sw_reset = PROPERTY_ENABLE; in ism330is_software_reset() 347 ret += ism330is_write_reg(ctx, ISM330IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330is_software_reset() 350 ret += ism330is_read_reg(ctx, ISM330IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330is_software_reset() 351 } while (ret == 0 && ctrl3_c.sw_reset == PROPERTY_ENABLE); in ism330is_software_reset() 367 ism330is_ctrl3_c_t ctrl3_c; in ism330is_boot_set() local 370 ret = ism330is_read_reg(ctx, ISM330IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330is_boot_set() 374 ctrl3_c.boot = val; in ism330is_boot_set() 375 ret = ism330is_write_reg(ctx, ISM330IS_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330is_boot_set() [all …]
|
D | ism330is_reg.h | 2131 ism330is_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/asm330lhh_STdC/driver/ |
D | asm330lhh_reg.c | 515 asm330lhh_ctrl3_c_t ctrl3_c; in asm330lhh_block_data_update_set() local 518 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhh_block_data_update_set() 522 ctrl3_c.bdu = (uint8_t)val; in asm330lhh_block_data_update_set() 523 ret = asm330lhh_write_reg(ctx, ASM330LHH_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhh_block_data_update_set() 540 asm330lhh_ctrl3_c_t ctrl3_c; in asm330lhh_block_data_update_get() local 543 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhh_block_data_update_get() 544 *val = ctrl3_c.bdu; in asm330lhh_block_data_update_get() 1358 asm330lhh_ctrl3_c_t ctrl3_c; in asm330lhh_reset_set() local 1361 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhh_reset_set() 1365 ctrl3_c.sw_reset = (uint8_t)val; in asm330lhh_reset_set() [all …]
|
D | asm330lhh_reg.h | 831 asm330lhh_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/lsm6ds3_STdC/driver/ |
D | lsm6ds3_reg.c | 650 lsm6ds3_ctrl3_c_t ctrl3_c; in lsm6ds3_block_data_update_set() local 653 ret = lsm6ds3_read_reg(ctx, LSM6DS3_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6ds3_block_data_update_set() 657 ctrl3_c.bdu = (uint8_t)val; in lsm6ds3_block_data_update_set() 658 ret = lsm6ds3_write_reg(ctx, LSM6DS3_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6ds3_block_data_update_set() 674 lsm6ds3_ctrl3_c_t ctrl3_c; in lsm6ds3_block_data_update_get() local 677 ret = lsm6ds3_read_reg(ctx, LSM6DS3_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6ds3_block_data_update_get() 678 *val = (uint8_t)ctrl3_c.bdu; in lsm6ds3_block_data_update_get() 1733 lsm6ds3_ctrl3_c_t ctrl3_c; in lsm6ds3_reset_set() local 1736 ret = lsm6ds3_read_reg(ctx, LSM6DS3_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6ds3_reset_set() 1740 ctrl3_c.sw_reset = (uint8_t)val; in lsm6ds3_reset_set() [all …]
|
D | lsm6ds3_reg.h | 1520 lsm6ds3_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/iis2iclx_STdC/driver/ |
D | iis2iclx_reg.c | 581 iis2iclx_ctrl3_c_t ctrl3_c; in iis2iclx_block_data_update_set() local 584 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis2iclx_block_data_update_set() 588 ctrl3_c.bdu = (uint8_t)val; in iis2iclx_block_data_update_set() 589 ret = iis2iclx_write_reg(ctx, IIS2ICLX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis2iclx_block_data_update_set() 606 iis2iclx_ctrl3_c_t ctrl3_c; in iis2iclx_block_data_update_get() local 609 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis2iclx_block_data_update_get() 610 *val = ctrl3_c.bdu; in iis2iclx_block_data_update_get() 1606 iis2iclx_ctrl3_c_t ctrl3_c; in iis2iclx_reset_set() local 1609 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in iis2iclx_reset_set() 1613 ctrl3_c.sw_reset = (uint8_t)val; in iis2iclx_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6ds3tr-c_STdC/driver/ |
D | lsm6ds3tr-c_reg.c | 512 lsm6ds3tr_c_ctrl3_c_t ctrl3_c; in lsm6ds3tr_c_block_data_update_set() local 516 (uint8_t *)&ctrl3_c, 1); in lsm6ds3tr_c_block_data_update_set() 520 ctrl3_c.bdu = val; in lsm6ds3tr_c_block_data_update_set() 522 (uint8_t *)&ctrl3_c, 1); in lsm6ds3tr_c_block_data_update_set() 539 lsm6ds3tr_c_ctrl3_c_t ctrl3_c; in lsm6ds3tr_c_block_data_update_get() local 543 (uint8_t *)&ctrl3_c, 1); in lsm6ds3tr_c_block_data_update_get() 544 *val = ctrl3_c.bdu; in lsm6ds3tr_c_block_data_update_get() 1519 lsm6ds3tr_c_ctrl3_c_t ctrl3_c; in lsm6ds3tr_c_reset_set() local 1523 (uint8_t *)&ctrl3_c, 1); in lsm6ds3tr_c_reset_set() 1527 ctrl3_c.sw_reset = val; in lsm6ds3tr_c_reset_set() [all …]
|
D | lsm6ds3tr-c_reg.h | 1628 lsm6ds3tr_c_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dsl_STdC/driver/ |
D | lsm6dsl_reg.c | 499 lsm6dsl_ctrl3_c_t ctrl3_c; in lsm6dsl_block_data_update_set() local 502 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsl_block_data_update_set() 506 ctrl3_c.bdu = val; in lsm6dsl_block_data_update_set() 507 ret = lsm6dsl_write_reg(ctx, LSM6DSL_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsl_block_data_update_set() 523 lsm6dsl_ctrl3_c_t ctrl3_c; in lsm6dsl_block_data_update_get() local 526 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsl_block_data_update_get() 527 *val = ctrl3_c.bdu; in lsm6dsl_block_data_update_get() 1476 lsm6dsl_ctrl3_c_t ctrl3_c; in lsm6dsl_reset_set() local 1479 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsl_reset_set() 1483 ctrl3_c.sw_reset = val; in lsm6dsl_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/ism330dlc_STdC/driver/ |
D | ism330dlc_reg.c | 495 ism330dlc_ctrl3_c_t ctrl3_c; in ism330dlc_block_data_update_set() local 497 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330dlc_block_data_update_set() 501 ctrl3_c.bdu = val; in ism330dlc_block_data_update_set() 502 ret = ism330dlc_write_reg(ctx, ISM330DLC_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330dlc_block_data_update_set() 519 ism330dlc_ctrl3_c_t ctrl3_c; in ism330dlc_block_data_update_get() local 521 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330dlc_block_data_update_get() 522 *val = ctrl3_c.bdu; in ism330dlc_block_data_update_get() 1425 ism330dlc_ctrl3_c_t ctrl3_c; in ism330dlc_reset_set() local 1427 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in ism330dlc_reset_set() 1431 ctrl3_c.sw_reset = val; in ism330dlc_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/asm330lhb_STdC/driver/ |
D | asm330lhb_reg.c | 885 asm330lhb_ctrl3_c_t ctrl3_c; in asm330lhb_block_data_update_set() local 888 ret = asm330lhb_read_reg(ctx, ASM330LHB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhb_block_data_update_set() 891 ctrl3_c.bdu = (uint8_t)val; in asm330lhb_block_data_update_set() 892 ret = asm330lhb_write_reg(ctx, ASM330LHB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhb_block_data_update_set() 907 asm330lhb_ctrl3_c_t ctrl3_c; in asm330lhb_block_data_update_get() local 910 ret = asm330lhb_read_reg(ctx, ASM330LHB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhb_block_data_update_get() 911 *val = ctrl3_c.bdu; in asm330lhb_block_data_update_get() 2061 asm330lhb_ctrl3_c_t ctrl3_c; in asm330lhb_reset_set() local 2064 ret = asm330lhb_read_reg(ctx, ASM330LHB_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhb_reset_set() 2067 ctrl3_c.sw_reset = (uint8_t)val; in asm330lhb_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dsm_STdC/driver/ |
D | lsm6dsm_reg.c | 499 lsm6dsm_ctrl3_c_t ctrl3_c; in lsm6dsm_block_data_update_set() local 502 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsm_block_data_update_set() 506 ctrl3_c.bdu = val; in lsm6dsm_block_data_update_set() 507 ret = lsm6dsm_write_reg(ctx, LSM6DSM_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsm_block_data_update_set() 523 lsm6dsm_ctrl3_c_t ctrl3_c; in lsm6dsm_block_data_update_get() local 526 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsm_block_data_update_get() 527 *val = ctrl3_c.bdu; in lsm6dsm_block_data_update_get() 1476 lsm6dsm_ctrl3_c_t ctrl3_c; in lsm6dsm_reset_set() local 1479 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsm_reset_set() 1483 ctrl3_c.sw_reset = val; in lsm6dsm_reset_set() [all …]
|
D | lsm6dsm_reg.h | 1715 lsm6dsm_ctrl3_c_t ctrl3_c; member
|
/hal_st-3.6.0/sensor/stmemsc/asm330lhhx_STdC/driver/ |
D | asm330lhhx_reg.c | 897 asm330lhhx_ctrl3_c_t ctrl3_c; in asm330lhhx_block_data_update_set() local 900 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhhx_block_data_update_set() 903 ctrl3_c.bdu = (uint8_t)val; in asm330lhhx_block_data_update_set() 904 ret = asm330lhhx_write_reg(ctx, ASM330LHHX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhhx_block_data_update_set() 919 asm330lhhx_ctrl3_c_t ctrl3_c; in asm330lhhx_block_data_update_get() local 922 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhhx_block_data_update_get() 923 *val = ctrl3_c.bdu; in asm330lhhx_block_data_update_get() 2055 asm330lhhx_ctrl3_c_t ctrl3_c; in asm330lhhx_reset_set() local 2058 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in asm330lhhx_reset_set() 2061 ctrl3_c.sw_reset = (uint8_t)val; in asm330lhhx_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dsr_STdC/driver/ |
D | lsm6dsr_reg.c | 762 lsm6dsr_ctrl3_c_t ctrl3_c; in lsm6dsr_block_data_update_set() local 765 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsr_block_data_update_set() 769 ctrl3_c.bdu = (uint8_t)val; in lsm6dsr_block_data_update_set() 770 ret = lsm6dsr_write_reg(ctx, LSM6DSR_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsr_block_data_update_set() 786 lsm6dsr_ctrl3_c_t ctrl3_c; in lsm6dsr_block_data_update_get() local 789 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsr_block_data_update_get() 790 *val = ctrl3_c.bdu; in lsm6dsr_block_data_update_get() 2092 lsm6dsr_ctrl3_c_t ctrl3_c; in lsm6dsr_reset_set() local 2095 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsr_reset_set() 2099 ctrl3_c.sw_reset = (uint8_t)val; in lsm6dsr_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/ism330dhcx_STdC/driver/ |
D | ism330dhcx_reg.c | 977 ism330dhcx_ctrl3_c_t ctrl3_c; in ism330dhcx_block_data_update_set() local 980 (uint8_t *)&ctrl3_c, 1); in ism330dhcx_block_data_update_set() 984 ctrl3_c.bdu = (uint8_t)val; in ism330dhcx_block_data_update_set() 986 (uint8_t *)&ctrl3_c, 1); in ism330dhcx_block_data_update_set() 1003 ism330dhcx_ctrl3_c_t ctrl3_c; in ism330dhcx_block_data_update_get() local 1006 (uint8_t *)&ctrl3_c, 1); in ism330dhcx_block_data_update_get() 1007 *val = ctrl3_c.bdu; in ism330dhcx_block_data_update_get() 2381 ism330dhcx_ctrl3_c_t ctrl3_c; in ism330dhcx_reset_set() local 2384 (uint8_t *)&ctrl3_c, 1); in ism330dhcx_reset_set() 2388 ctrl3_c.sw_reset = (uint8_t)val; in ism330dhcx_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dsrx_STdC/driver/ |
D | lsm6dsrx_reg.c | 976 lsm6dsrx_ctrl3_c_t ctrl3_c; in lsm6dsrx_block_data_update_set() local 979 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsrx_block_data_update_set() 983 ctrl3_c.bdu = (uint8_t)val; in lsm6dsrx_block_data_update_set() 984 ret = lsm6dsrx_write_reg(ctx, LSM6DSRX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsrx_block_data_update_set() 1001 lsm6dsrx_ctrl3_c_t ctrl3_c; in lsm6dsrx_block_data_update_get() local 1004 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsrx_block_data_update_get() 1005 *val = ctrl3_c.bdu; in lsm6dsrx_block_data_update_get() 2313 lsm6dsrx_ctrl3_c_t ctrl3_c; in lsm6dsrx_reset_set() local 2316 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsrx_reset_set() 2320 ctrl3_c.sw_reset = (uint8_t)val; in lsm6dsrx_reset_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dso32x_STdC/driver/ |
D | lsm6dso32x_reg.c | 3479 lsm6dso32x_ctrl3_c_t ctrl3_c; in lsm6dso32x_pin_mode_set() local 3483 (uint8_t *)&ctrl3_c, 1); in lsm6dso32x_pin_mode_set() 3487 ctrl3_c.pp_od = (uint8_t)val; in lsm6dso32x_pin_mode_set() 3489 (uint8_t *)&ctrl3_c, 1); in lsm6dso32x_pin_mode_set() 3520 lsm6dso32x_ctrl3_c_t ctrl3_c; in lsm6dso32x_pin_mode_get() local 3524 (uint8_t *)&ctrl3_c, 1); in lsm6dso32x_pin_mode_get() 3532 switch ((i3c_bus_avb.pd_dis_int1 << 1) + ctrl3_c.pp_od) in lsm6dso32x_pin_mode_get() 9844 lsm6dso32x_ctrl3_c_t ctrl3_c; in lsm6dso32x_init_set() local 9893 (uint8_t *)&ctrl3_c, 1); in lsm6dso32x_init_set() 9899 ctrl3_c.boot = (uint8_t)val & (uint8_t)LSM6DSO32X_BOOT; in lsm6dso32x_init_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dsox_STdC/driver/ |
D | lsm6dsox_reg.c | 4804 lsm6dsox_ctrl3_c_t ctrl3_c; in lsm6dsox_pin_mode_set() local 4807 ret = lsm6dsox_read_reg(ctx, LSM6DSOX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsox_pin_mode_set() 4811 ctrl3_c.pp_od = (uint8_t)val; in lsm6dsox_pin_mode_set() 4812 ret = lsm6dsox_write_reg(ctx, LSM6DSOX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsox_pin_mode_set() 4843 lsm6dsox_ctrl3_c_t ctrl3_c; in lsm6dsox_pin_mode_get() local 4846 ret = lsm6dsox_read_reg(ctx, LSM6DSOX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsox_pin_mode_get() 4854 switch ((i3c_bus_avb.pd_dis_int1 << 1) + ctrl3_c.pp_od) in lsm6dsox_pin_mode_get() 11385 lsm6dsox_ctrl3_c_t ctrl3_c; in lsm6dsox_init_set() local 11433 ret = lsm6dsox_read_reg(ctx, LSM6DSOX_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dsox_init_set() 11439 ctrl3_c.boot = (uint8_t)val & (uint8_t)LSM6DSOX_BOOT; in lsm6dsox_init_set() [all …]
|
/hal_st-3.6.0/sensor/stmemsc/lsm6dso_STdC/driver/ |
D | lsm6dso_reg.c | 9283 lsm6dso_ctrl3_c_t ctrl3_c; in lsm6dso_init_set() local 9303 ret = lsm6dso_read_reg(ctx, LSM6DSO_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso_init_set() 9307 ctrl3_c.boot = (uint8_t)val & (uint8_t)LSM6DSO_BOOT; in lsm6dso_init_set() 9308 ctrl3_c.sw_reset = ((uint8_t)val & (uint8_t)LSM6DSO_RESET) >> 1; in lsm6dso_init_set() 9309 ret = lsm6dso_write_reg(ctx, LSM6DSO_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso_init_set() 9313 && ((ctrl3_c.bdu == PROPERTY_DISABLE) in lsm6dso_init_set() 9314 || (ctrl3_c.if_inc == PROPERTY_DISABLE)) && (ret == 0)) in lsm6dso_init_set() 9316 ctrl3_c.bdu = PROPERTY_ENABLE; in lsm6dso_init_set() 9317 ctrl3_c.if_inc = PROPERTY_ENABLE; in lsm6dso_init_set() 9318 ret = lsm6dso_write_reg(ctx, LSM6DSO_CTRL3_C, (uint8_t *)&ctrl3_c, 1); in lsm6dso_init_set() [all …]
|