Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 77) sorted by relevance

1234

/hal_st-3.7.0/sensor/stmemsc/lsm6dsr_STdC/driver/
Dlsm6dsr_reg.c53 int32_t ret; in lsm6dsr_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsr_read_reg()
57 return ret; in lsm6dsr_read_reg()
74 int32_t ret; in lsm6dsr_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsr_write_reg()
78 return ret; in lsm6dsr_write_reg()
178 int32_t ret; in lsm6dsr_xl_full_scale_set() local
180 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsr_xl_full_scale_set()
182 if (ret == 0) in lsm6dsr_xl_full_scale_set()
185 ret = lsm6dsr_write_reg(ctx, LSM6DSR_CTRL1_XL, in lsm6dsr_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dso32_STdC/driver/
Dlsm6dso32_reg.c53 int32_t ret; in lsm6dso32_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso32_read_reg()
57 return ret; in lsm6dso32_read_reg()
74 int32_t ret; in lsm6dso32_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso32_write_reg()
78 return ret; in lsm6dso32_write_reg()
171 int32_t ret; in lsm6dso32_xl_full_scale_set() local
173 ret = lsm6dso32_read_reg(ctx, LSM6DSO32_CTRL1_XL, in lsm6dso32_xl_full_scale_set()
176 if (ret == 0) in lsm6dso32_xl_full_scale_set()
179 ret = lsm6dso32_write_reg(ctx, LSM6DSO32_CTRL1_XL, in lsm6dso32_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/ism330dhcx_STdC/driver/
Dism330dhcx_reg.c53 int32_t ret; in ism330dhcx_read_reg() local
54 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism330dhcx_read_reg()
56 return ret; in ism330dhcx_read_reg()
73 int32_t ret; in ism330dhcx_write_reg() local
74 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism330dhcx_write_reg()
76 return ret; in ism330dhcx_write_reg()
176 int32_t ret; in ism330dhcx_xl_full_scale_set() local
177 ret = ism330dhcx_read_reg(ctx, ISM330DHCX_CTRL1_XL, in ism330dhcx_xl_full_scale_set()
180 if (ret == 0) in ism330dhcx_xl_full_scale_set()
183 ret = ism330dhcx_write_reg(ctx, ISM330DHCX_CTRL1_XL, in ism330dhcx_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/iis2iclx_STdC/driver/
Diis2iclx_reg.c53 int32_t ret; in iis2iclx_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in iis2iclx_read_reg()
57 return ret; in iis2iclx_read_reg()
74 int32_t ret; in iis2iclx_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in iis2iclx_write_reg()
78 return ret; in iis2iclx_write_reg()
148 int32_t ret; in iis2iclx_xl_full_scale_set() local
150 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in iis2iclx_xl_full_scale_set()
152 if (ret == 0) in iis2iclx_xl_full_scale_set()
155 ret = iis2iclx_write_reg(ctx, IIS2ICLX_CTRL1_XL, in iis2iclx_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/asm330lhhx_STdC/driver/
Dasm330lhhx_reg.c52 int32_t ret; in asm330lhhx_read_reg() local
53 ret = ctx->read_reg(ctx->handle, reg, data, len); in asm330lhhx_read_reg()
54 return ret; in asm330lhhx_read_reg()
70 int32_t ret; in asm330lhhx_write_reg() local
71 ret = ctx->write_reg(ctx->handle, reg, data, len); in asm330lhhx_write_reg()
72 return ret; in asm330lhhx_write_reg()
172 int32_t ret; in asm330lhhx_xl_full_scale_set() local
174 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in asm330lhhx_xl_full_scale_set()
175 if (ret == 0) in asm330lhhx_xl_full_scale_set()
178 ret = asm330lhhx_write_reg(ctx, ASM330LHHX_CTRL1_XL, in asm330lhhx_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsrx_STdC/driver/
Dlsm6dsrx_reg.c53 int32_t ret; in lsm6dsrx_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsrx_read_reg()
57 return ret; in lsm6dsrx_read_reg()
74 int32_t ret; in lsm6dsrx_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsrx_write_reg()
78 return ret; in lsm6dsrx_write_reg()
178 int32_t ret; in lsm6dsrx_xl_full_scale_set() local
180 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsrx_xl_full_scale_set()
182 if (ret == 0) in lsm6dsrx_xl_full_scale_set()
185 ret = lsm6dsrx_write_reg(ctx, LSM6DSRX_CTRL1_XL, in lsm6dsrx_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6ds3tr-c_STdC/driver/
Dlsm6ds3tr-c_reg.c53 int32_t ret; in lsm6ds3tr_c_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6ds3tr_c_read_reg()
57 return ret; in lsm6ds3tr_c_read_reg()
74 int32_t ret; in lsm6ds3tr_c_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6ds3tr_c_write_reg()
78 return ret; in lsm6ds3tr_c_write_reg()
169 int32_t ret; in lsm6ds3tr_c_xl_full_scale_set() local
171 ret = lsm6ds3tr_c_read_reg(ctx, LSM6DS3TR_C_CTRL1_XL, in lsm6ds3tr_c_xl_full_scale_set()
174 if (ret == 0) in lsm6ds3tr_c_xl_full_scale_set()
177 ret = lsm6ds3tr_c_write_reg(ctx, LSM6DS3TR_C_CTRL1_XL, in lsm6ds3tr_c_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsl_STdC/driver/
Dlsm6dsl_reg.c53 int32_t ret; in lsm6dsl_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsl_read_reg()
57 return ret; in lsm6dsl_read_reg()
74 int32_t ret; in lsm6dsl_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsl_write_reg()
78 return ret; in lsm6dsl_write_reg()
169 int32_t ret; in lsm6dsl_xl_full_scale_set() local
171 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsl_xl_full_scale_set()
173 if (ret == 0) in lsm6dsl_xl_full_scale_set()
176 ret = lsm6dsl_write_reg(ctx, LSM6DSL_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsl_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsm_STdC/driver/
Dlsm6dsm_reg.c53 int32_t ret; in lsm6dsm_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsm_read_reg()
57 return ret; in lsm6dsm_read_reg()
74 int32_t ret; in lsm6dsm_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsm_write_reg()
78 return ret; in lsm6dsm_write_reg()
169 int32_t ret; in lsm6dsm_xl_full_scale_set() local
171 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsm_xl_full_scale_set()
173 if (ret == 0) in lsm6dsm_xl_full_scale_set()
176 ret = lsm6dsm_write_reg(ctx, LSM6DSM_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsm_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/ism330dlc_STdC/driver/
Dism330dlc_reg.c53 int32_t ret; in ism330dlc_read_reg() local
54 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism330dlc_read_reg()
56 return ret; in ism330dlc_read_reg()
73 int32_t ret; in ism330dlc_write_reg() local
74 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism330dlc_write_reg()
76 return ret; in ism330dlc_write_reg()
166 int32_t ret; in ism330dlc_xl_full_scale_set() local
167 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL1_XL, in ism330dlc_xl_full_scale_set()
170 if (ret == 0) in ism330dlc_xl_full_scale_set()
173 ret = ism330dlc_write_reg(ctx, ISM330DLC_CTRL1_XL, in ism330dlc_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsv_STdC/driver/
Dlsm6dsv_reg.c53 int32_t ret; in lsm6dsv_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsv_read_reg()
57 return ret; in lsm6dsv_read_reg()
74 int32_t ret; in lsm6dsv_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsv_write_reg()
78 return ret; in lsm6dsv_write_reg()
201 int32_t ret; in lsm6dsv_xl_offset_on_out_set() local
203 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv_xl_offset_on_out_set()
204 if (ret == 0) in lsm6dsv_xl_offset_on_out_set()
207 ret = lsm6dsv_write_reg(ctx, LSM6DSV_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv_xl_offset_on_out_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/asm330lhb_STdC/driver/
Dasm330lhb_reg.c52 int32_t ret; in asm330lhb_read_reg() local
53 ret = ctx->read_reg(ctx->handle, reg, data, len); in asm330lhb_read_reg()
54 return ret; in asm330lhb_read_reg()
70 int32_t ret; in asm330lhb_write_reg() local
71 ret = ctx->write_reg(ctx->handle, reg, data, len); in asm330lhb_write_reg()
72 return ret; in asm330lhb_write_reg()
172 int32_t ret; in asm330lhb_xl_full_scale_set() local
174 ret = asm330lhb_read_reg(ctx, ASM330LHB_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in asm330lhb_xl_full_scale_set()
175 if (ret == 0) in asm330lhb_xl_full_scale_set()
178 ret = asm330lhb_write_reg(ctx, ASM330LHB_CTRL1_XL, in asm330lhb_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/
Dlsm6dsv16x_reg.c53 int32_t ret; in lsm6dsv16x_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsv16x_read_reg()
57 return ret; in lsm6dsv16x_read_reg()
74 int32_t ret; in lsm6dsv16x_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsv16x_write_reg()
78 return ret; in lsm6dsv16x_write_reg()
206 int32_t ret; in lsm6dsv16x_xl_offset_on_out_set() local
208 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv16x_xl_offset_on_out_set()
209 if (ret == 0) in lsm6dsv16x_xl_offset_on_out_set()
212 ret = lsm6dsv16x_write_reg(ctx, LSM6DSV16X_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv16x_xl_offset_on_out_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6ds3_STdC/driver/
Dlsm6ds3_reg.c53 int32_t ret; in lsm6ds3_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6ds3_read_reg()
57 return ret; in lsm6ds3_read_reg()
74 int32_t ret; in lsm6ds3_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6ds3_write_reg()
78 return ret; in lsm6ds3_write_reg()
168 int32_t ret; in lsm6ds3_gy_data_orient_set() local
170 ret = lsm6ds3_read_reg(ctx, LSM6DS3_ORIENT_CFG_G, in lsm6ds3_gy_data_orient_set()
173 if (ret == 0) in lsm6ds3_gy_data_orient_set()
176 ret = lsm6ds3_write_reg(ctx, LSM6DS3_ORIENT_CFG_G, in lsm6ds3_gy_data_orient_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm303ah_STdC/driver/
Dlsm303ah_reg.c53 int32_t ret; in lsm303ah_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm303ah_read_reg()
57 return ret; in lsm303ah_read_reg()
74 int32_t ret; in lsm303ah_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm303ah_write_reg()
78 return ret; in lsm303ah_write_reg()
147 int32_t ret; in lsm303ah_xl_all_sources_get() local
149 ret = lsm303ah_read_reg(ctx, LSM303AH_FIFO_SRC_A, in lsm303ah_xl_all_sources_get()
152 if (ret == 0) in lsm303ah_xl_all_sources_get()
154 ret = lsm303ah_read_reg(ctx, LSM303AH_STATUS_DUP_A, in lsm303ah_xl_all_sources_get()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dso32x_STdC/driver/
Dlsm6dso32x_reg.c53 int32_t ret; in lsm6dso32x_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso32x_read_reg()
57 return ret; in lsm6dso32x_read_reg()
74 int32_t ret; in lsm6dso32x_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso32x_write_reg()
78 return ret; in lsm6dso32x_write_reg()
190 int32_t ret; in lsm6dso32x_xl_full_scale_set() local
192 ret = lsm6dso32x_read_reg(ctx, LSM6DSO32X_CTRL1_XL, (uint8_t *)&reg, 1); in lsm6dso32x_xl_full_scale_set()
194 if (ret == 0) in lsm6dso32x_xl_full_scale_set()
197 ret = lsm6dso32x_write_reg(ctx, LSM6DSO32X_CTRL1_XL, (uint8_t *)&reg, 1); in lsm6dso32x_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lis2ds12_STdC/driver/
Dlis2ds12_reg.c53 int32_t ret; in lis2ds12_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2ds12_read_reg()
57 return ret; in lis2ds12_read_reg()
74 int32_t ret; in lis2ds12_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2ds12_write_reg()
78 return ret; in lis2ds12_write_reg()
142 int32_t ret; in lis2ds12_all_sources_get() local
144 ret = lis2ds12_read_reg(ctx, LIS2DS12_FIFO_SRC, in lis2ds12_all_sources_get()
147 if (ret == 0) in lis2ds12_all_sources_get()
149 ret = lis2ds12_read_reg(ctx, LIS2DS12_STATUS_DUP, in lis2ds12_all_sources_get()
[all …]
/hal_st-3.7.0/sensor/stmemsc/ism303dac_STdC/driver/
Dism303dac_reg.c53 int32_t ret; in ism303dac_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism303dac_read_reg()
57 return ret; in ism303dac_read_reg()
74 int32_t ret; in ism303dac_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism303dac_write_reg()
78 return ret; in ism303dac_write_reg()
147 int32_t ret; in ism303dac_xl_all_sources_get() local
149 ret = ism303dac_read_reg(ctx, ISM303DAC_FIFO_SRC_A, in ism303dac_xl_all_sources_get()
152 if (ret == 0) in ism303dac_xl_all_sources_get()
154 ret = ism303dac_read_reg(ctx, ISM303DAC_STATUS_DUP_A, in ism303dac_xl_all_sources_get()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/
Dlsm6dsv16bx_reg.c53 int32_t ret; in lsm6dsv16bx_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsv16bx_read_reg()
57 return ret; in lsm6dsv16bx_read_reg()
74 int32_t ret; in lsm6dsv16bx_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsv16bx_write_reg()
78 return ret; in lsm6dsv16bx_write_reg()
205 int32_t ret; in lsm6dsv16bx_reset_set() local
207 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_reset_set()
208 if (ret == 0) in lsm6dsv16bx_reset_set()
210 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_FUNC_CFG_ACCESS, (uint8_t *)&func_cfg_access, 1); in lsm6dsv16bx_reset_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/iis2dlpc_STdC/driver/
Diis2dlpc_reg.c53 int32_t ret; in iis2dlpc_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in iis2dlpc_read_reg()
57 return ret; in iis2dlpc_read_reg()
74 int32_t ret; in iis2dlpc_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in iis2dlpc_write_reg()
78 return ret; in iis2dlpc_write_reg()
165 int32_t ret; in iis2dlpc_power_mode_set() local
167 ret = iis2dlpc_read_reg(ctx, IIS2DLPC_CTRL1, (uint8_t *) &ctrl1, 1); in iis2dlpc_power_mode_set()
169 if (ret == 0) in iis2dlpc_power_mode_set()
173 ret = iis2dlpc_write_reg(ctx, IIS2DLPC_CTRL1, (uint8_t *) &ctrl1, 1); in iis2dlpc_power_mode_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/asm330lhh_STdC/driver/
Dasm330lhh_reg.c53 int32_t ret; in asm330lhh_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in asm330lhh_read_reg()
57 return ret; in asm330lhh_read_reg()
74 int32_t ret; in asm330lhh_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in asm330lhh_write_reg()
78 return ret; in asm330lhh_write_reg()
178 int32_t ret; in asm330lhh_xl_full_scale_set() local
180 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL1_XL, in asm330lhh_xl_full_scale_set()
183 if (ret == 0) in asm330lhh_xl_full_scale_set()
186 ret = asm330lhh_write_reg(ctx, ASM330LHH_CTRL1_XL, in asm330lhh_xl_full_scale_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/ais2ih_STdC/driver/
Dais2ih_reg.c52 int32_t ret; in ais2ih_read_reg() local
54 ret = ctx->read_reg(ctx->handle, reg, data, len); in ais2ih_read_reg()
56 return ret; in ais2ih_read_reg()
73 int32_t ret; in ais2ih_write_reg() local
75 ret = ctx->write_reg(ctx->handle, reg, data, len); in ais2ih_write_reg()
77 return ret; in ais2ih_write_reg()
163 int32_t ret; in ais2ih_power_mode_set() local
165 ret = ais2ih_read_reg(ctx, AIS2IH_CTRL1, (uint8_t *) &ctrl1, 1); in ais2ih_power_mode_set()
167 if (ret == 0) in ais2ih_power_mode_set()
171 ret = ais2ih_write_reg(ctx, AIS2IH_CTRL1, (uint8_t *) &ctrl1, 1); in ais2ih_power_mode_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lis2dw12_STdC/driver/
Dlis2dw12_reg.c53 int32_t ret; in lis2dw12_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2dw12_read_reg()
57 return ret; in lis2dw12_read_reg()
74 int32_t ret; in lis2dw12_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2dw12_write_reg()
78 return ret; in lis2dw12_write_reg()
165 int32_t ret; in lis2dw12_power_mode_set() local
167 ret = lis2dw12_read_reg(ctx, LIS2DW12_CTRL1, (uint8_t *) &ctrl1, 1); in lis2dw12_power_mode_set()
169 if (ret == 0) in lis2dw12_power_mode_set()
173 ret = lis2dw12_write_reg(ctx, LIS2DW12_CTRL1, (uint8_t *) &ctrl1, 1); in lis2dw12_power_mode_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/ism330is_STdC/driver/
Dism330is_reg.c53 int32_t ret; in ism330is_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism330is_read_reg()
57 return ret; in ism330is_read_reg()
74 int32_t ret; in ism330is_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism330is_write_reg()
78 return ret; in ism330is_write_reg()
163 int32_t ret; in ism330is_odr_cal_reg_set() local
165 ret = ism330is_read_reg(ctx, ISM330IS_INTERNAL_FREQ_FINE, in ism330is_odr_cal_reg_set()
168 if (ret == 0) in ism330is_odr_cal_reg_set()
171 ret = ism330is_write_reg(ctx, ISM330IS_INTERNAL_FREQ_FINE, in ism330is_odr_cal_reg_set()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dso16is_STdC/driver/
Dlsm6dso16is_reg.c53 int32_t ret; in lsm6dso16is_read_reg() local
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso16is_read_reg()
57 return ret; in lsm6dso16is_read_reg()
74 int32_t ret; in lsm6dso16is_write_reg() local
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso16is_write_reg()
78 return ret; in lsm6dso16is_write_reg()
163 int32_t ret; in lsm6dso16is_odr_cal_reg_set() local
165 ret = lsm6dso16is_read_reg(ctx, LSM6DSO16IS_INTERNAL_FREQ_FINE, in lsm6dso16is_odr_cal_reg_set()
168 if (ret == 0) in lsm6dso16is_odr_cal_reg_set()
171 ret = lsm6dso16is_write_reg(ctx, LSM6DSO16IS_INTERNAL_FREQ_FINE, in lsm6dso16is_odr_cal_reg_set()
[all …]

1234