/hal_st-2.7.6/sensor/stmemsc/lsm6dsr_STdC/driver/ |
D | lsm6dsr_reg.c | 53 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-2.7.6/sensor/stmemsc/iis2iclx_STdC/driver/ |
D | iis2iclx_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6dso32_STdC/driver/ |
D | lsm6dso32_reg.c | 53 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-2.7.6/sensor/stmemsc/ism330dhcx_STdC/driver/ |
D | ism330dhcx_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6dsrx_STdC/driver/ |
D | lsm6dsrx_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6ds3tr-c_STdC/driver/ |
D | lsm6ds3tr_c_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6dsl_STdC/driver/ |
D | lsm6dsl_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6dsm_STdC/driver/ |
D | lsm6dsm_reg.c | 53 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-2.7.6/sensor/stmemsc/ism330dlc_STdC/driver/ |
D | ism330dlc_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm303ah_STdC/driver/ |
D | lsm303ah_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6ds3_STdC/driver/ |
D | lsm6ds3_reg.c | 53 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-2.7.6/sensor/stmemsc/lsm6dso32x_STdC/driver/ |
D | lsm6dso32x_reg.c | 53 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 *)®, 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 *)®, 1); in lsm6dso32x_xl_full_scale_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lis2ds12_STdC/driver/ |
D | lis2ds12_reg.c | 53 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-2.7.6/sensor/stmemsc/ism303dac_STdC/driver/ |
D | ism303dac_reg.c | 53 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-2.7.6/sensor/stmemsc/iis2dlpc_STdC/driver/ |
D | iis2dlpc_reg.c | 53 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-2.7.6/sensor/stmemsc/asm330lhh_STdC/driver/ |
D | asm330lhh_reg.c | 53 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-2.7.6/sensor/stmemsc/lis2dw12_STdC/driver/ |
D | lis2dw12_reg.c | 53 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-2.7.6/sensor/stmemsc/ais2ih_STdC/driver/ |
D | ais2ih_reg.c | 52 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-2.7.6/sensor/stmemsc/lis2dtw12_STdC/driver/ |
D | lis2dtw12_reg.c | 53 int32_t ret; in lis2dtw12_read_reg() local 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2dtw12_read_reg() 57 return ret; in lis2dtw12_read_reg() 74 int32_t ret; in lis2dtw12_write_reg() local 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2dtw12_write_reg() 78 return ret; in lis2dtw12_write_reg() 165 int32_t ret; in lis2dtw12_power_mode_set() local 167 ret = lis2dtw12_read_reg(ctx, LIS2DTW12_CTRL1, (uint8_t *) &ctrl1, 1); in lis2dtw12_power_mode_set() 169 if (ret == 0) in lis2dtw12_power_mode_set() 173 ret = lis2dtw12_write_reg(ctx, LIS2DTW12_CTRL1, (uint8_t *) &ctrl1, 1); in lis2dtw12_power_mode_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dso_STdC/driver/ |
D | lsm6dso_reg.c | 54 int32_t ret; in lsm6dso_read_reg() local 56 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso_read_reg() 58 return ret; in lsm6dso_read_reg() 75 int32_t ret; in lsm6dso_write_reg() local 77 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso_write_reg() 79 return ret; in lsm6dso_write_reg() 187 int32_t ret; in lsm6dso_xl_full_scale_set() local 189 ret = lsm6dso_read_reg(ctx, LSM6DSO_CTRL1_XL, (uint8_t *)®, 1); in lsm6dso_xl_full_scale_set() 191 if (ret == 0) in lsm6dso_xl_full_scale_set() 194 ret = lsm6dso_write_reg(ctx, LSM6DSO_CTRL1_XL, (uint8_t *)®, 1); in lsm6dso_xl_full_scale_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm303agr_STdC/driver/ |
D | lsm303agr_reg.c | 53 int32_t ret; in lsm303agr_read_reg() local 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm303agr_read_reg() 57 return ret; in lsm303agr_read_reg() 74 int32_t ret; in lsm303agr_write_reg() local 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm303agr_write_reg() 78 return ret; in lsm303agr_write_reg() 196 int32_t ret; in lsm303agr_temp_status_reg_get() local 198 ret = lsm303agr_read_reg(ctx, LSM303AGR_STATUS_REG_AUX_A, buff, 1); in lsm303agr_temp_status_reg_get() 200 return ret; in lsm303agr_temp_status_reg_get() 214 int32_t ret; in lsm303agr_temp_data_ready_get() local [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lis3de_STdC/driver/ |
D | lis3de_reg.c | 52 int32_t ret; in lis3de_read_reg() local 54 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis3de_read_reg() 56 return ret; in lis3de_read_reg() 73 int32_t ret; in lis3de_write_reg() local 75 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis3de_write_reg() 77 return ret; in lis3de_write_reg() 139 int32_t ret; in lis3de_temp_status_reg_get() local 141 ret = lis3de_read_reg(ctx, LIS3DE_STATUS_REG_AUX, buff, 1); in lis3de_temp_status_reg_get() 143 return ret; in lis3de_temp_status_reg_get() 156 int32_t ret; in lis3de_temp_data_ready_get() local [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lsm6dsox_STdC/driver/ |
D | lsm6dsox_reg.c | 53 int32_t ret; in lsm6dsox_read_reg() local 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsox_read_reg() 57 return ret; in lsm6dsox_read_reg() 74 int32_t ret; in lsm6dsox_write_reg() local 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsox_write_reg() 78 return ret; in lsm6dsox_write_reg() 191 int32_t ret; in lsm6dsox_xl_full_scale_set() local 193 ret = lsm6dsox_read_reg(ctx, LSM6DSOX_CTRL1_XL, (uint8_t *)®, 1); in lsm6dsox_xl_full_scale_set() 195 if (ret == 0) in lsm6dsox_xl_full_scale_set() 198 ret = lsm6dsox_write_reg(ctx, LSM6DSOX_CTRL1_XL, (uint8_t *)®, 1); in lsm6dsox_xl_full_scale_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/iis3dwb_STdC/driver/ |
D | iis3dwb_reg.c | 53 int32_t ret; in iis3dwb_read_reg() local 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in iis3dwb_read_reg() 57 return ret; in iis3dwb_read_reg() 74 int32_t ret; in iis3dwb_write_reg() local 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in iis3dwb_write_reg() 78 return ret; in iis3dwb_write_reg() 148 int32_t ret; in iis3dwb_xl_full_scale_set() local 150 ret = iis3dwb_read_reg(ctx, IIS3DWB_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in iis3dwb_xl_full_scale_set() 152 if (ret == 0) in iis3dwb_xl_full_scale_set() 155 ret = iis3dwb_write_reg(ctx, IIS3DWB_CTRL1_XL, in iis3dwb_xl_full_scale_set() [all …]
|
/hal_st-2.7.6/sensor/stmemsc/lis2de12_STdC/driver/ |
D | lis2de12_reg.c | 53 int32_t ret; in lis2de12_read_reg() local 55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2de12_read_reg() 57 return ret; in lis2de12_read_reg() 74 int32_t ret; in lis2de12_write_reg() local 76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2de12_write_reg() 78 return ret; in lis2de12_write_reg() 140 int32_t ret; in lis2de12_temp_status_reg_get() local 142 ret = lis2de12_read_reg(ctx, LIS2DE12_STATUS_REG_AUX, buff, 1); in lis2de12_temp_status_reg_get() 144 return ret; in lis2de12_temp_status_reg_get() 157 int32_t ret; in lis2de12_temp_data_ready_get() local [all …]
|