Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 152) sorted by relevance

1234567

/hal_st-3.4.0/sensor/stmemsc/lsm6dsr_STdC/driver/
Dlsm6dsr_reg.c49 int32_t __weak lsm6dsr_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsr_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsr_read_reg()
70 int32_t __weak lsm6dsr_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsr_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsr_write_reg()
174 int32_t lsm6dsr_xl_full_scale_set(stmdev_ctx_t *ctx, in lsm6dsr_xl_full_scale_set() argument
180 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsr_xl_full_scale_set()
185 ret = lsm6dsr_write_reg(ctx, LSM6DSR_CTRL1_XL, in lsm6dsr_xl_full_scale_set()
200 int32_t lsm6dsr_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6dsr_xl_full_scale_get() argument
206 ret = lsm6dsr_read_reg(ctx, LSM6DSR_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsr_xl_full_scale_get()
242 int32_t lsm6dsr_xl_data_rate_set(stmdev_ctx_t *ctx, in lsm6dsr_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/ism330dhcx_STdC/driver/
Dism330dhcx_reg.c49 int32_t __weak ism330dhcx_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism330dhcx_read_reg() argument
54 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism330dhcx_read_reg()
69 int32_t __weak ism330dhcx_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism330dhcx_write_reg() argument
74 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism330dhcx_write_reg()
172 int32_t ism330dhcx_xl_full_scale_set(stmdev_ctx_t *ctx, in ism330dhcx_xl_full_scale_set() argument
177 ret = ism330dhcx_read_reg(ctx, ISM330DHCX_CTRL1_XL, in ism330dhcx_xl_full_scale_set()
183 ret = ism330dhcx_write_reg(ctx, ISM330DHCX_CTRL1_XL, in ism330dhcx_xl_full_scale_set()
198 int32_t ism330dhcx_xl_full_scale_get(stmdev_ctx_t *ctx, in ism330dhcx_xl_full_scale_get() argument
203 ret = ism330dhcx_read_reg(ctx, ISM330DHCX_CTRL1_XL, in ism330dhcx_xl_full_scale_get()
240 int32_t ism330dhcx_xl_data_rate_set(stmdev_ctx_t *ctx, in ism330dhcx_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dso32_STdC/driver/
Dlsm6dso32_reg.c49 int32_t __weak lsm6dso32_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dso32_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso32_read_reg()
70 int32_t __weak lsm6dso32_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dso32_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso32_write_reg()
167 int32_t lsm6dso32_xl_full_scale_set(stmdev_ctx_t *ctx, in lsm6dso32_xl_full_scale_set() argument
173 ret = lsm6dso32_read_reg(ctx, LSM6DSO32_CTRL1_XL, in lsm6dso32_xl_full_scale_set()
179 ret = lsm6dso32_write_reg(ctx, LSM6DSO32_CTRL1_XL, in lsm6dso32_xl_full_scale_set()
194 int32_t lsm6dso32_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6dso32_xl_full_scale_get() argument
200 ret = lsm6dso32_read_reg(ctx, LSM6DSO32_CTRL1_XL, (uint8_t *)&reg, 1); in lsm6dso32_xl_full_scale_get()
237 int32_t lsm6dso32_xl_data_rate_set(stmdev_ctx_t *ctx, in lsm6dso32_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/asm330lhhx_STdC/driver/
Dasm330lhhx_reg.c49 int32_t __weak asm330lhhx_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in asm330lhhx_read_reg() argument
53 ret = ctx->read_reg(ctx->handle, reg, data, len); in asm330lhhx_read_reg()
67 int32_t __weak asm330lhhx_write_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in asm330lhhx_write_reg() argument
71 ret = ctx->write_reg(ctx->handle, reg, data, len); in asm330lhhx_write_reg()
168 int32_t asm330lhhx_xl_full_scale_set(stmdev_ctx_t *ctx, in asm330lhhx_xl_full_scale_set() argument
174 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in asm330lhhx_xl_full_scale_set()
178 ret = asm330lhhx_write_reg(ctx, ASM330LHHX_CTRL1_XL, in asm330lhhx_xl_full_scale_set()
192 int32_t asm330lhhx_xl_full_scale_get(stmdev_ctx_t *ctx, in asm330lhhx_xl_full_scale_get() argument
198 ret = asm330lhhx_read_reg(ctx, ASM330LHHX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in asm330lhhx_xl_full_scale_get()
228 int32_t asm330lhhx_xl_data_rate_set(stmdev_ctx_t *ctx, in asm330lhhx_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/iis2iclx_STdC/driver/
Diis2iclx_reg.c49 int32_t __weak iis2iclx_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in iis2iclx_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in iis2iclx_read_reg()
70 int32_t __weak iis2iclx_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in iis2iclx_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in iis2iclx_write_reg()
144 int32_t iis2iclx_xl_full_scale_set(stmdev_ctx_t *ctx, in iis2iclx_xl_full_scale_set() argument
150 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in iis2iclx_xl_full_scale_set()
155 ret = iis2iclx_write_reg(ctx, IIS2ICLX_CTRL1_XL, in iis2iclx_xl_full_scale_set()
170 int32_t iis2iclx_xl_full_scale_get(stmdev_ctx_t *ctx, in iis2iclx_xl_full_scale_get() argument
176 ret = iis2iclx_read_reg(ctx, IIS2ICLX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in iis2iclx_xl_full_scale_get()
212 int32_t iis2iclx_xl_data_rate_set(stmdev_ctx_t *ctx, in iis2iclx_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dsm_STdC/driver/
Dlsm6dsm_reg.c49 int32_t __weak lsm6dsm_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsm_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsm_read_reg()
70 int32_t __weak lsm6dsm_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsm_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsm_write_reg()
165 int32_t lsm6dsm_xl_full_scale_set(stmdev_ctx_t *ctx, in lsm6dsm_xl_full_scale_set() argument
171 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); 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()
190 int32_t lsm6dsm_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6dsm_xl_full_scale_get() argument
196 ret = lsm6dsm_read_reg(ctx, LSM6DSM_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsm_xl_full_scale_get()
232 int32_t lsm6dsm_xl_data_rate_set(stmdev_ctx_t *ctx, in lsm6dsm_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dsrx_STdC/driver/
Dlsm6dsrx_reg.c49 int32_t __weak lsm6dsrx_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsrx_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsrx_read_reg()
70 int32_t __weak lsm6dsrx_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsrx_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsrx_write_reg()
174 int32_t lsm6dsrx_xl_full_scale_set(stmdev_ctx_t *ctx, in lsm6dsrx_xl_full_scale_set() argument
180 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsrx_xl_full_scale_set()
185 ret = lsm6dsrx_write_reg(ctx, LSM6DSRX_CTRL1_XL, in lsm6dsrx_xl_full_scale_set()
200 int32_t lsm6dsrx_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6dsrx_xl_full_scale_get() argument
206 ret = lsm6dsrx_read_reg(ctx, LSM6DSRX_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsrx_xl_full_scale_get()
242 int32_t lsm6dsrx_xl_data_rate_set(stmdev_ctx_t *ctx, in lsm6dsrx_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6ds3tr-c_STdC/driver/
Dlsm6ds3tr-c_reg.c49 int32_t __weak lsm6ds3tr_c_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6ds3tr_c_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6ds3tr_c_read_reg()
70 int32_t __weak lsm6ds3tr_c_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6ds3tr_c_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6ds3tr_c_write_reg()
165 int32_t lsm6ds3tr_c_xl_full_scale_set(stmdev_ctx_t *ctx, in lsm6ds3tr_c_xl_full_scale_set() argument
171 ret = lsm6ds3tr_c_read_reg(ctx, LSM6DS3TR_C_CTRL1_XL, 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()
192 int32_t lsm6ds3tr_c_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6ds3tr_c_xl_full_scale_get() argument
198 ret = lsm6ds3tr_c_read_reg(ctx, LSM6DS3TR_C_CTRL1_XL, in lsm6ds3tr_c_xl_full_scale_get()
235 int32_t lsm6ds3tr_c_xl_data_rate_set(stmdev_ctx_t *ctx, in lsm6ds3tr_c_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dsl_STdC/driver/
Dlsm6dsl_reg.c49 int32_t __weak lsm6dsl_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsl_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsl_read_reg()
70 int32_t __weak lsm6dsl_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsl_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsl_write_reg()
165 int32_t lsm6dsl_xl_full_scale_set(stmdev_ctx_t *ctx, in lsm6dsl_xl_full_scale_set() argument
171 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); 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()
190 int32_t lsm6dsl_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6dsl_xl_full_scale_get() argument
196 ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in lsm6dsl_xl_full_scale_get()
232 int32_t lsm6dsl_xl_data_rate_set(stmdev_ctx_t *ctx, in lsm6dsl_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/ism330dlc_STdC/driver/
Dism330dlc_reg.c49 int32_t __weak ism330dlc_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism330dlc_read_reg() argument
54 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism330dlc_read_reg()
69 int32_t __weak ism330dlc_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism330dlc_write_reg() argument
74 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism330dlc_write_reg()
162 int32_t ism330dlc_xl_full_scale_set(stmdev_ctx_t *ctx, in ism330dlc_xl_full_scale_set() argument
167 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL1_XL, in ism330dlc_xl_full_scale_set()
173 ret = ism330dlc_write_reg(ctx, ISM330DLC_CTRL1_XL, in ism330dlc_xl_full_scale_set()
188 int32_t ism330dlc_xl_full_scale_get(stmdev_ctx_t *ctx, in ism330dlc_xl_full_scale_get() argument
193 ret = ism330dlc_read_reg(ctx, ISM330DLC_CTRL1_XL, in ism330dlc_xl_full_scale_get()
230 int32_t ism330dlc_xl_data_rate_set(stmdev_ctx_t *ctx, in ism330dlc_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dsv_STdC/driver/
Dlsm6dsv_reg.c49 int32_t __weak lsm6dsv_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsv_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsv_read_reg()
70 int32_t __weak lsm6dsv_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsv_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsv_write_reg()
193 int32_t lsm6dsv_xl_offset_on_out_set(stmdev_ctx_t *ctx, uint8_t val) in lsm6dsv_xl_offset_on_out_set() argument
198 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv_xl_offset_on_out_set()
202 ret = lsm6dsv_write_reg(ctx, LSM6DSV_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv_xl_offset_on_out_set()
216 int32_t lsm6dsv_xl_offset_on_out_get(stmdev_ctx_t *ctx, uint8_t *val) in lsm6dsv_xl_offset_on_out_get() argument
221 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv_xl_offset_on_out_get()
235 int32_t lsm6dsv_xl_offset_mg_set(stmdev_ctx_t *ctx, in lsm6dsv_xl_offset_mg_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm303ah_STdC/driver/
Dlsm303ah_reg.c49 int32_t __weak lsm303ah_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm303ah_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm303ah_read_reg()
70 int32_t __weak lsm303ah_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm303ah_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm303ah_write_reg()
144 int32_t lsm303ah_xl_all_sources_get(stmdev_ctx_t *ctx, in lsm303ah_xl_all_sources_get() argument
149 ret = lsm303ah_read_reg(ctx, LSM303AH_FIFO_SRC_A, in lsm303ah_xl_all_sources_get()
154 ret = lsm303ah_read_reg(ctx, LSM303AH_STATUS_DUP_A, in lsm303ah_xl_all_sources_get()
160 ret = lsm303ah_read_reg(ctx, LSM303AH_WAKE_UP_SRC_A, in lsm303ah_xl_all_sources_get()
166 ret = lsm303ah_read_reg(ctx, LSM303AH_TAP_SRC_A, in lsm303ah_xl_all_sources_get()
172 ret = lsm303ah_read_reg(ctx, LSM303AH_6D_SRC_A, in lsm303ah_xl_all_sources_get()
[all …]
/hal_st-3.4.0/sensor/stmemsc/asm330lhb_STdC/driver/
Dasm330lhb_reg.c49 int32_t __weak asm330lhb_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in asm330lhb_read_reg() argument
53 ret = ctx->read_reg(ctx->handle, reg, data, len); in asm330lhb_read_reg()
67 int32_t __weak asm330lhb_write_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in asm330lhb_write_reg() argument
71 ret = ctx->write_reg(ctx->handle, reg, data, len); in asm330lhb_write_reg()
168 int32_t asm330lhb_xl_full_scale_set(stmdev_ctx_t *ctx, in asm330lhb_xl_full_scale_set() argument
174 ret = asm330lhb_read_reg(ctx, ASM330LHB_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in asm330lhb_xl_full_scale_set()
178 ret = asm330lhb_write_reg(ctx, ASM330LHB_CTRL1_XL, in asm330lhb_xl_full_scale_set()
192 int32_t asm330lhb_xl_full_scale_get(stmdev_ctx_t *ctx, in asm330lhb_xl_full_scale_get() argument
198 ret = asm330lhb_read_reg(ctx, ASM330LHB_CTRL1_XL, (uint8_t *)&ctrl1_xl, 1); in asm330lhb_xl_full_scale_get()
228 int32_t asm330lhb_xl_data_rate_set(stmdev_ctx_t *ctx, in asm330lhb_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dso16is_STdC/driver/
Dlsm6dso16is_reg.c49 int32_t __weak lsm6dso16is_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dso16is_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso16is_read_reg()
70 int32_t __weak lsm6dso16is_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dso16is_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso16is_write_reg()
160 int32_t lsm6dso16is_odr_cal_reg_set(stmdev_ctx_t *ctx, uint8_t val) in lsm6dso16is_odr_cal_reg_set() argument
165 ret = lsm6dso16is_read_reg(ctx, LSM6DSO16IS_INTERNAL_FREQ_FINE, in lsm6dso16is_odr_cal_reg_set()
171 ret = lsm6dso16is_write_reg(ctx, LSM6DSO16IS_INTERNAL_FREQ_FINE, in lsm6dso16is_odr_cal_reg_set()
188 int32_t lsm6dso16is_odr_cal_reg_get(stmdev_ctx_t *ctx, uint8_t *val) in lsm6dso16is_odr_cal_reg_get() argument
193 ret = lsm6dso16is_read_reg(ctx, LSM6DSO16IS_INTERNAL_FREQ_FINE, in lsm6dso16is_odr_cal_reg_get()
208 int32_t lsm6dso16is_mem_bank_set(stmdev_ctx_t *ctx, lsm6dso16is_mem_bank_t val) in lsm6dso16is_mem_bank_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/ism330is_STdC/driver/
Dism330is_reg.c49 int32_t __weak ism330is_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism330is_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism330is_read_reg()
70 int32_t __weak ism330is_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism330is_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism330is_write_reg()
160 int32_t ism330is_odr_cal_reg_set(stmdev_ctx_t *ctx, uint8_t val) in ism330is_odr_cal_reg_set() argument
165 ret = ism330is_read_reg(ctx, ISM330IS_INTERNAL_FREQ_FINE, in ism330is_odr_cal_reg_set()
171 ret = ism330is_write_reg(ctx, ISM330IS_INTERNAL_FREQ_FINE, in ism330is_odr_cal_reg_set()
188 int32_t ism330is_odr_cal_reg_get(stmdev_ctx_t *ctx, uint8_t *val) in ism330is_odr_cal_reg_get() argument
193 ret = ism330is_read_reg(ctx, ISM330IS_INTERNAL_FREQ_FINE, in ism330is_odr_cal_reg_get()
208 int32_t ism330is_mem_bank_set(stmdev_ctx_t *ctx, ism330is_mem_bank_t val) in ism330is_mem_bank_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6ds3_STdC/driver/
Dlsm6ds3_reg.c49 int32_t __weak lsm6ds3_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6ds3_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6ds3_read_reg()
70 int32_t __weak lsm6ds3_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6ds3_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6ds3_write_reg()
164 int32_t lsm6ds3_gy_data_orient_set(stmdev_ctx_t *ctx, in lsm6ds3_gy_data_orient_set() argument
170 ret = lsm6ds3_read_reg(ctx, LSM6DS3_ORIENT_CFG_G, in lsm6ds3_gy_data_orient_set()
176 ret = lsm6ds3_write_reg(ctx, LSM6DS3_ORIENT_CFG_G, in lsm6ds3_gy_data_orient_set()
191 int32_t lsm6ds3_gy_data_orient_get(stmdev_ctx_t *ctx, in lsm6ds3_gy_data_orient_get() argument
197 ret = lsm6ds3_read_reg(ctx, LSM6DS3_ORIENT_CFG_G, in lsm6ds3_gy_data_orient_get()
242 int32_t lsm6ds3_gy_data_sign_set(stmdev_ctx_t *ctx, in lsm6ds3_gy_data_sign_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lis2ds12_STdC/driver/
Dlis2ds12_reg.c49 int32_t __weak lis2ds12_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lis2ds12_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2ds12_read_reg()
70 int32_t __weak lis2ds12_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lis2ds12_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2ds12_write_reg()
139 int32_t lis2ds12_all_sources_get(stmdev_ctx_t *ctx, in lis2ds12_all_sources_get() argument
144 ret = lis2ds12_read_reg(ctx, LIS2DS12_FIFO_SRC, in lis2ds12_all_sources_get()
149 ret = lis2ds12_read_reg(ctx, LIS2DS12_STATUS_DUP, in lis2ds12_all_sources_get()
155 ret = lis2ds12_read_reg(ctx, LIS2DS12_WAKE_UP_SRC, in lis2ds12_all_sources_get()
161 ret = lis2ds12_read_reg(ctx, LIS2DS12_TAP_SRC, in lis2ds12_all_sources_get()
167 ret = lis2ds12_read_reg(ctx, LIS2DS12_6D_SRC, in lis2ds12_all_sources_get()
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/
Dlsm6dsv16x_reg.c49 int32_t __weak lsm6dsv16x_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsv16x_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsv16x_read_reg()
70 int32_t __weak lsm6dsv16x_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsv16x_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsv16x_write_reg()
198 int32_t lsm6dsv16x_xl_offset_on_out_set(stmdev_ctx_t *ctx, uint8_t val) in lsm6dsv16x_xl_offset_on_out_set() argument
203 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv16x_xl_offset_on_out_set()
207 ret = lsm6dsv16x_write_reg(ctx, LSM6DSV16X_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv16x_xl_offset_on_out_set()
221 int32_t lsm6dsv16x_xl_offset_on_out_get(stmdev_ctx_t *ctx, uint8_t *val) in lsm6dsv16x_xl_offset_on_out_get() argument
226 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL9, (uint8_t *)&ctrl9, 1); in lsm6dsv16x_xl_offset_on_out_get()
240 int32_t lsm6dsv16x_xl_offset_mg_set(stmdev_ctx_t *ctx, in lsm6dsv16x_xl_offset_mg_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/ism303dac_STdC/driver/
Dism303dac_reg.c49 int32_t __weak ism303dac_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism303dac_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in ism303dac_read_reg()
70 int32_t __weak ism303dac_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in ism303dac_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in ism303dac_write_reg()
144 int32_t ism303dac_xl_all_sources_get(stmdev_ctx_t *ctx, in ism303dac_xl_all_sources_get() argument
149 ret = ism303dac_read_reg(ctx, ISM303DAC_FIFO_SRC_A, in ism303dac_xl_all_sources_get()
154 ret = ism303dac_read_reg(ctx, ISM303DAC_STATUS_DUP_A, in ism303dac_xl_all_sources_get()
160 ret = ism303dac_read_reg(ctx, ISM303DAC_WAKE_UP_SRC_A, in ism303dac_xl_all_sources_get()
166 ret = ism303dac_read_reg(ctx, ISM303DAC_TAP_SRC_A, in ism303dac_xl_all_sources_get()
172 ret = ism303dac_read_reg(ctx, ISM303DAC_6D_SRC_A, in ism303dac_xl_all_sources_get()
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/
Dlsm6dsv16bx_reg.c49 int32_t __weak lsm6dsv16bx_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsv16bx_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dsv16bx_read_reg()
70 int32_t __weak lsm6dsv16bx_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dsv16bx_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dsv16bx_write_reg()
196 int32_t lsm6dsv16bx_reset_set(stmdev_ctx_t *ctx, lsm6dsv16bx_reset_t val) in lsm6dsv16bx_reset_set() argument
202 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_reset_set()
205 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_FUNC_CFG_ACCESS, (uint8_t *)&func_cfg_access, 1); in lsm6dsv16bx_reset_set()
214 ret = lsm6dsv16bx_write_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_reset_set()
218 ret = lsm6dsv16bx_write_reg(ctx, LSM6DSV16BX_FUNC_CFG_ACCESS, (uint8_t *)&func_cfg_access, 1); in lsm6dsv16bx_reset_set()
232 int32_t lsm6dsv16bx_reset_get(stmdev_ctx_t *ctx, lsm6dsv16bx_reset_t *val) in lsm6dsv16bx_reset_get() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/asm330lhh_STdC/driver/
Dasm330lhh_reg.c49 int32_t __weak asm330lhh_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in asm330lhh_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in asm330lhh_read_reg()
70 int32_t __weak asm330lhh_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in asm330lhh_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in asm330lhh_write_reg()
174 int32_t asm330lhh_xl_full_scale_set(stmdev_ctx_t *ctx, in asm330lhh_xl_full_scale_set() argument
180 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL1_XL, in asm330lhh_xl_full_scale_set()
186 ret = asm330lhh_write_reg(ctx, ASM330LHH_CTRL1_XL, in asm330lhh_xl_full_scale_set()
201 int32_t asm330lhh_xl_full_scale_get(stmdev_ctx_t *ctx, in asm330lhh_xl_full_scale_get() argument
207 ret = asm330lhh_read_reg(ctx, ASM330LHH_CTRL1_XL, in asm330lhh_xl_full_scale_get()
244 int32_t asm330lhh_xl_data_rate_set(stmdev_ctx_t *ctx, in asm330lhh_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm6dso32x_STdC/driver/
Dlsm6dso32x_reg.c49 int32_t __weak lsm6dso32x_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dso32x_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm6dso32x_read_reg()
70 int32_t __weak lsm6dso32x_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm6dso32x_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm6dso32x_write_reg()
187 int32_t lsm6dso32x_xl_full_scale_set(stmdev_ctx_t *ctx, lsm6dso32x_fs_xl_t val) in lsm6dso32x_xl_full_scale_set() argument
192 ret = lsm6dso32x_read_reg(ctx, LSM6DSO32X_CTRL1_XL, (uint8_t *)&reg, 1); 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()
211 int32_t lsm6dso32x_xl_full_scale_get(stmdev_ctx_t *ctx, in lsm6dso32x_xl_full_scale_get() argument
217 ret = lsm6dso32x_read_reg(ctx, LSM6DSO32X_CTRL1_XL, (uint8_t *)&reg, 1); in lsm6dso32x_xl_full_scale_get()
253 int32_t lsm6dso32x_xl_data_rate_set(stmdev_ctx_t *ctx, lsm6dso32x_odr_xl_t val) in lsm6dso32x_xl_data_rate_set() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lsm303agr_STdC/driver/
Dlsm303agr_reg.c49 int32_t __weak lsm303agr_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm303agr_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lsm303agr_read_reg()
70 int32_t __weak lsm303agr_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lsm303agr_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lsm303agr_write_reg()
193 int32_t lsm303agr_temp_status_reg_get(stmdev_ctx_t *ctx, in lsm303agr_temp_status_reg_get() argument
198 ret = lsm303agr_read_reg(ctx, LSM303AGR_STATUS_REG_AUX_A, buff, 1); in lsm303agr_temp_status_reg_get()
211 int32_t lsm303agr_temp_data_ready_get(stmdev_ctx_t *ctx, uint8_t *val) in lsm303agr_temp_data_ready_get() argument
216 ret = lsm303agr_read_reg(ctx, LSM303AGR_STATUS_REG_AUX_A, in lsm303agr_temp_data_ready_get()
231 int32_t lsm303agr_temp_data_ovr_get(stmdev_ctx_t *ctx, uint8_t *val) in lsm303agr_temp_data_ovr_get() argument
236 ret = lsm303agr_read_reg(ctx, LSM303AGR_STATUS_REG_AUX_A, in lsm303agr_temp_data_ovr_get()
[all …]
/hal_st-3.4.0/sensor/stmemsc/ais2ih_STdC/driver/
Dais2ih_reg.c49 int32_t __weak ais2ih_read_reg(stmdev_ctx_t *ctx, uint8_t reg, uint8_t *data, in ais2ih_read_reg() argument
54 ret = ctx->read_reg(ctx->handle, reg, data, len); in ais2ih_read_reg()
69 int32_t __weak ais2ih_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in ais2ih_write_reg() argument
75 ret = ctx->write_reg(ctx->handle, reg, data, len); in ais2ih_write_reg()
159 int32_t ais2ih_power_mode_set(stmdev_ctx_t *ctx, ais2ih_mode_t val) in ais2ih_power_mode_set() argument
165 ret = ais2ih_read_reg(ctx, AIS2IH_CTRL1, (uint8_t *) &ctrl1, 1); in ais2ih_power_mode_set()
171 ret = ais2ih_write_reg(ctx, AIS2IH_CTRL1, (uint8_t *) &ctrl1, 1); in ais2ih_power_mode_set()
176 ret = ais2ih_read_reg(ctx, AIS2IH_CTRL6, (uint8_t *) &ctrl6, 1); in ais2ih_power_mode_set()
182 ret = ais2ih_write_reg(ctx, AIS2IH_CTRL6, (uint8_t *) &ctrl6, 1); in ais2ih_power_mode_set()
197 int32_t ais2ih_power_mode_get(stmdev_ctx_t *ctx, ais2ih_mode_t *val) in ais2ih_power_mode_get() argument
[all …]
/hal_st-3.4.0/sensor/stmemsc/lis2dw12_STdC/driver/
Dlis2dw12_reg.c49 int32_t __weak lis2dw12_read_reg(stmdev_ctx_t *ctx, uint8_t reg, in lis2dw12_read_reg() argument
55 ret = ctx->read_reg(ctx->handle, reg, data, len); in lis2dw12_read_reg()
70 int32_t __weak lis2dw12_write_reg(stmdev_ctx_t *ctx, uint8_t reg, in lis2dw12_write_reg() argument
76 ret = ctx->write_reg(ctx->handle, reg, data, len); in lis2dw12_write_reg()
160 int32_t lis2dw12_power_mode_set(stmdev_ctx_t *ctx, in lis2dw12_power_mode_set() argument
167 ret = lis2dw12_read_reg(ctx, LIS2DW12_CTRL1, (uint8_t *) &ctrl1, 1); in lis2dw12_power_mode_set()
173 ret = lis2dw12_write_reg(ctx, LIS2DW12_CTRL1, (uint8_t *) &ctrl1, 1); in lis2dw12_power_mode_set()
178 ret = lis2dw12_read_reg(ctx, LIS2DW12_CTRL6, (uint8_t *) &ctrl6, 1); in lis2dw12_power_mode_set()
184 ret = lis2dw12_write_reg(ctx, LIS2DW12_CTRL6, (uint8_t *) &ctrl6, 1); in lis2dw12_power_mode_set()
199 int32_t lis2dw12_power_mode_get(stmdev_ctx_t *ctx, in lis2dw12_power_mode_get() argument
[all …]

1234567