/hal_st-3.4.0/sensor/stmemsc/lis2ds12_STdC/driver/ |
D | lis2ds12_reg.c | 596 lis2ds12_ctrl2_t ctrl2; in lis2ds12_auto_increment_set() local 599 ret = lis2ds12_read_reg(ctx, LIS2DS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2ds12_auto_increment_set() 603 ctrl2.if_add_inc = val; in lis2ds12_auto_increment_set() 604 ret = lis2ds12_write_reg(ctx, LIS2DS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2ds12_auto_increment_set() 621 lis2ds12_ctrl2_t ctrl2; in lis2ds12_auto_increment_get() local 624 ret = lis2ds12_read_reg(ctx, LIS2DS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2ds12_auto_increment_get() 625 *val = ctrl2.if_add_inc; in lis2ds12_auto_increment_get() 642 lis2ds12_ctrl2_t ctrl2; in lis2ds12_mem_bank_set() local 649 ret = lis2ds12_read_reg(ctx, LIS2DS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2ds12_mem_bank_set() 653 ctrl2.func_cfg_en = (uint8_t)val; in lis2ds12_mem_bank_set() [all …]
|
D | lis2ds12_reg.h | 859 lis2ds12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lis2hh12_STdC/driver/ |
D | lis2hh12_reg.c | 673 lis2hh12_ctrl2_t ctrl2; in lis2hh12_xl_filter_int_path_set() local 676 ret = lis2hh12_read_reg(ctx, LIS2HH12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2hh12_xl_filter_int_path_set() 680 ctrl2.hpis = (uint8_t)val; in lis2hh12_xl_filter_int_path_set() 681 ret = lis2hh12_write_reg(ctx, LIS2HH12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2hh12_xl_filter_int_path_set() 698 lis2hh12_ctrl2_t ctrl2; in lis2hh12_xl_filter_int_path_get() local 701 ret = lis2hh12_read_reg(ctx, LIS2HH12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2hh12_xl_filter_int_path_get() 703 switch (ctrl2.hpis) in lis2hh12_xl_filter_int_path_get() 737 lis2hh12_ctrl2_t ctrl2; in lis2hh12_xl_filter_out_path_set() local 750 ret = lis2hh12_read_reg(ctx, LIS2HH12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2hh12_xl_filter_out_path_set() 755 ctrl2.fds = ((uint8_t) val & 0x02U) >> 1; in lis2hh12_xl_filter_out_path_set() [all …]
|
D | lis2hh12_reg.h | 551 lis2hh12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/l3gd20h_STdC/driver/ |
D | l3gd20h_reg.c | 754 l3gd20h_ctrl2_t ctrl2; in l3gd20h_gy_filter_hp_bandwidth_set() local 756 ret = l3gd20h_read_reg(ctx, L3GD20H_CTRL2, (uint8_t *)&ctrl2, 1); in l3gd20h_gy_filter_hp_bandwidth_set() 760 ctrl2.hpcf = (uint8_t)val & 0x03U; in l3gd20h_gy_filter_hp_bandwidth_set() 761 ctrl2.hpm = ((uint8_t)val & 0x30U) >> 4; in l3gd20h_gy_filter_hp_bandwidth_set() 762 ret = l3gd20h_write_reg(ctx, L3GD20H_CTRL2, (uint8_t *)&ctrl2, 1); in l3gd20h_gy_filter_hp_bandwidth_set() 779 l3gd20h_ctrl2_t ctrl2; in l3gd20h_gy_filter_hp_bandwidth_get() local 781 ret = l3gd20h_read_reg(ctx, L3GD20H_CTRL2, (uint8_t *)&ctrl2, 1); in l3gd20h_gy_filter_hp_bandwidth_get() 785 ret = l3gd20h_read_reg(ctx, L3GD20H_CTRL2, (uint8_t *)&ctrl2, 1); in l3gd20h_gy_filter_hp_bandwidth_get() 788 switch ((ctrl2.hpm << 4) + ctrl2.hpcf) in l3gd20h_gy_filter_hp_bandwidth_get() 2152 l3gd20h_ctrl2_t ctrl2; in l3gd20h_den_mode_set() local [all …]
|
D | l3gd20h_reg.h | 495 l3gd20h_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lis2du12_STdC/driver/ |
D | lis2du12_reg.c | 1031 lis2du12_ctrl2_t ctrl2; in lis2du12_pin_int1_route_set() local 1037 ret += lis2du12_read_reg(ctx, LIS2DU12_CTRL2, (uint8_t*)&ctrl2, 1); in lis2du12_pin_int1_route_set() 1039 ctrl2.int1_boot = val->boot; in lis2du12_pin_int1_route_set() 1040 ctrl2.int1_drdy = val->drdy_xl; in lis2du12_pin_int1_route_set() 1041 ctrl2.int1_f_fth = val->fifo_th; in lis2du12_pin_int1_route_set() 1042 ctrl2.int1_f_ovr = val->fifo_ovr; in lis2du12_pin_int1_route_set() 1043 ctrl2.int1_f_full = val->fifo_full; in lis2du12_pin_int1_route_set() 1063 ret += lis2du12_write_reg(ctx, LIS2DU12_CTRL2, (uint8_t*)&ctrl2, 1); in lis2du12_pin_int1_route_set() 1081 lis2du12_ctrl2_t ctrl2; in lis2du12_pin_int1_route_get() local 1087 ret += lis2du12_read_reg(ctx, LIS2DU12_CTRL2, (uint8_t*)&ctrl2, 1); in lis2du12_pin_int1_route_get() [all …]
|
D | lis2du12_reg.h | 657 lis2du12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lis2dux12_STdC/driver/ |
D | lis2dux12_reg.c | 1160 lis2dux12_ctrl2_t ctrl2; in lis2dux12_pin_int1_route_set() local 1175 ret = lis2dux12_read_reg(ctx, LIS2DUX12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2dux12_pin_int1_route_set() 1179 ctrl2.int1_drdy = val->drdy; in lis2dux12_pin_int1_route_set() 1180 ctrl2.int1_fifo_ovr = val->fifo_ovr; in lis2dux12_pin_int1_route_set() 1181 ctrl2.int1_fifo_th = val->fifo_th; in lis2dux12_pin_int1_route_set() 1182 ctrl2.int1_fifo_full = val->fifo_full; in lis2dux12_pin_int1_route_set() 1183 ctrl2.int1_boot = val->boot; in lis2dux12_pin_int1_route_set() 1185 ret = lis2dux12_write_reg(ctx, LIS2DUX12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2dux12_pin_int1_route_set() 1221 lis2dux12_ctrl2_t ctrl2; in lis2dux12_pin_int1_route_get() local 1226 ret += lis2dux12_read_reg(ctx, LIS2DUX12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2dux12_pin_int1_route_get() [all …]
|
D | lis2dux12_reg.h | 1907 lis2dux12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lis2duxs12_STdC/driver/ |
D | lis2duxs12_reg.c | 1183 lis2duxs12_ctrl2_t ctrl2; in lis2duxs12_pin_int1_route_set() local 1198 ret = lis2duxs12_read_reg(ctx, LIS2DUXS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2duxs12_pin_int1_route_set() 1202 ctrl2.int1_drdy = val->drdy; in lis2duxs12_pin_int1_route_set() 1203 ctrl2.int1_fifo_ovr = val->fifo_ovr; in lis2duxs12_pin_int1_route_set() 1204 ctrl2.int1_fifo_th = val->fifo_th; in lis2duxs12_pin_int1_route_set() 1205 ctrl2.int1_fifo_full = val->fifo_full; in lis2duxs12_pin_int1_route_set() 1206 ctrl2.int1_boot = val->boot; in lis2duxs12_pin_int1_route_set() 1208 ret = lis2duxs12_write_reg(ctx, LIS2DUXS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2duxs12_pin_int1_route_set() 1244 lis2duxs12_ctrl2_t ctrl2; in lis2duxs12_pin_int1_route_get() local 1249 ret += lis2duxs12_read_reg(ctx, LIS2DUXS12_CTRL2, (uint8_t *)&ctrl2, 1); in lis2duxs12_pin_int1_route_get() [all …]
|
D | lis2duxs12_reg.h | 1927 lis2duxs12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lsm6dsv_STdC/driver/ |
D | lsm6dsv_reg.c | 705 lsm6dsv_ctrl2_t ctrl2; in lsm6dsv_gy_data_rate_set() local 708 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv_gy_data_rate_set() 712 ctrl2.odr_g = (uint8_t)val & 0x0Fu; in lsm6dsv_gy_data_rate_set() 713 ret = lsm6dsv_write_reg(ctx, LSM6DSV_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv_gy_data_rate_set() 730 lsm6dsv_ctrl2_t ctrl2; in lsm6dsv_gy_data_rate_get() local 733 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv_gy_data_rate_get() 735 switch (ctrl2.odr_g) in lsm6dsv_gy_data_rate_get() 806 lsm6dsv_ctrl2_t ctrl2; in lsm6dsv_gy_mode_set() local 809 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv_gy_mode_set() 812 ctrl2.op_mode_g = (uint8_t)val & 0x07U; in lsm6dsv_gy_mode_set() [all …]
|
D | lsm6dsv_reg.h | 3298 lsm6dsv_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/ |
D | lsm6dsv16bx_reg.c | 527 lsm6dsv16bx_ctrl2_t ctrl2; in lsm6dsv16bx_gy_data_rate_set() local 530 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16bx_gy_data_rate_set() 534 ctrl2.odr_g = (uint8_t)val & 0xFU; in lsm6dsv16bx_gy_data_rate_set() 535 ret = lsm6dsv16bx_write_reg(ctx, LSM6DSV16BX_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16bx_gy_data_rate_set() 552 lsm6dsv16bx_ctrl2_t ctrl2; in lsm6dsv16bx_gy_data_rate_get() local 555 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16bx_gy_data_rate_get() 557 switch (ctrl2.odr_g) in lsm6dsv16bx_gy_data_rate_get() 624 lsm6dsv16bx_ctrl2_t ctrl2; in lsm6dsv16bx_gy_mode_set() local 627 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16bx_gy_mode_set() 630 ctrl2.op_mode_g = (uint8_t)val & 0x07U; in lsm6dsv16bx_gy_mode_set() [all …]
|
D | lsm6dsv16bx_reg.h | 2477 lsm6dsv16bx_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/ |
D | lsm6dsv16x_reg.c | 842 lsm6dsv16x_ctrl2_t ctrl2; in lsm6dsv16x_gy_data_rate_set() local 847 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16x_gy_data_rate_set() 851 ctrl2.odr_g = (uint8_t)val & 0x0Fu; in lsm6dsv16x_gy_data_rate_set() 852 ret = lsm6dsv16x_write_reg(ctx, LSM6DSV16X_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16x_gy_data_rate_set() 877 lsm6dsv16x_ctrl2_t ctrl2; in lsm6dsv16x_gy_data_rate_get() local 882 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16x_gy_data_rate_get() 886 switch (ctrl2.odr_g) in lsm6dsv16x_gy_data_rate_get() 1067 lsm6dsv16x_ctrl2_t ctrl2; in lsm6dsv16x_gy_mode_set() local 1070 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL2, (uint8_t *)&ctrl2, 1); in lsm6dsv16x_gy_mode_set() 1073 ctrl2.op_mode_g = (uint8_t)val & 0x07U; in lsm6dsv16x_gy_mode_set() [all …]
|
D | lsm6dsv16x_reg.h | 3633 lsm6dsv16x_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/ais2dw12_STdC/driver/ |
D | ais2dw12_reg.h | 556 ais2dw12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lis2dtw12_STdC/driver/ |
D | lis2dtw12_reg.h | 627 lis2dtw12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/ais2ih_STdC/driver/ |
D | ais2ih_reg.h | 625 ais2ih_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/lis2dw12_STdC/driver/ |
D | lis2dw12_reg.h | 629 lis2dw12_ctrl2_t ctrl2; member
|
/hal_st-3.4.0/sensor/stmemsc/iis2dlpc_STdC/driver/ |
D | iis2dlpc_reg.h | 625 iis2dlpc_ctrl2_t ctrl2; member
|