Home
last modified time | relevance | path

Searched refs:ctrl3 (Results 1 – 25 of 30) sorted by relevance

12

/hal_st-3.6.0/sensor/stmemsc/lis2ds12_STdC/driver/
Dlis2ds12_reg.c773 lis2ds12_ctrl3_t ctrl3; in lis2ds12_xl_self_test_set() local
776 ret = lis2ds12_read_reg(ctx, LIS2DS12_CTRL3, (uint8_t *)&ctrl3, 1); in lis2ds12_xl_self_test_set()
780 ctrl3.st = (uint8_t)val; in lis2ds12_xl_self_test_set()
781 ret = lis2ds12_write_reg(ctx, LIS2DS12_CTRL3, (uint8_t *)&ctrl3, 1); in lis2ds12_xl_self_test_set()
798 lis2ds12_ctrl3_t ctrl3; in lis2ds12_xl_self_test_get() local
801 ret = lis2ds12_read_reg(ctx, LIS2DS12_CTRL3, (uint8_t *)&ctrl3, 1); in lis2ds12_xl_self_test_get()
803 switch (ctrl3.st) in lis2ds12_xl_self_test_get()
1170 lis2ds12_ctrl3_t ctrl3; in lis2ds12_pin_mode_set() local
1173 ret = lis2ds12_read_reg(ctx, LIS2DS12_CTRL3, (uint8_t *)&ctrl3, 1); in lis2ds12_pin_mode_set()
1177 ctrl3.pp_od = (uint8_t)val; in lis2ds12_pin_mode_set()
[all …]
Dlis2ds12_reg.h860 lis2ds12_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/l3gd20h_STdC/driver/
Dl3gd20h_reg.c1160 l3gd20h_ctrl3_t ctrl3; in l3gd20h_pin_int2_route_set() local
1162 ret = l3gd20h_read_reg(ctx, L3GD20H_CTRL3, (uint8_t *)&ctrl3, 1); in l3gd20h_pin_int2_route_set()
1166 ctrl3.int2_empty = val.int2_empty; in l3gd20h_pin_int2_route_set()
1167 ctrl3.int2_fth = val.int2_fth; in l3gd20h_pin_int2_route_set()
1168 ctrl3.int2_orun = val.int2_orun; in l3gd20h_pin_int2_route_set()
1169 ctrl3.int2_drdy = val.int2_drdy; in l3gd20h_pin_int2_route_set()
1170 ret = l3gd20h_write_reg(ctx, L3GD20H_CTRL3, (uint8_t *)&ctrl3, 1); in l3gd20h_pin_int2_route_set()
1187 l3gd20h_ctrl3_t ctrl3; in l3gd20h_pin_int2_route_get() local
1189 ret = l3gd20h_read_reg(ctx, L3GD20H_CTRL3, (uint8_t *)&ctrl3, 1); in l3gd20h_pin_int2_route_get()
1190 val->int2_empty = ctrl3.int2_empty; in l3gd20h_pin_int2_route_get()
[all …]
Dl3gd20h_reg.h496 l3gd20h_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/sths34pf80_STdC/driver/
Dsths34pf80_reg.c1235 sths34pf80_ctrl3_t ctrl3; in sths34pf80_tmos_route_int_set() local
1238 ret = sths34pf80_read_reg(ctx, STHS34PF80_CTRL3, (uint8_t *)&ctrl3, 1); in sths34pf80_tmos_route_int_set()
1242 ctrl3.ien = ((uint8_t)val & 0x3U); in sths34pf80_tmos_route_int_set()
1244 ctrl3.int_latched = 0; /* guarantee that latched is zero in INT_OR case */ in sths34pf80_tmos_route_int_set()
1246 ret = sths34pf80_write_reg(ctx, STHS34PF80_CTRL3, (uint8_t *)&ctrl3, 1); in sths34pf80_tmos_route_int_set()
1262 sths34pf80_ctrl3_t ctrl3; in sths34pf80_tmos_route_int_get() local
1265 ret = sths34pf80_read_reg(ctx, STHS34PF80_CTRL3, (uint8_t *)&ctrl3, 1); in sths34pf80_tmos_route_int_get()
1267 switch ((ctrl3.ien)) in sths34pf80_tmos_route_int_get()
1298 sths34pf80_ctrl3_t ctrl3; in sths34pf80_tmos_int_or_set() local
1301 ret = sths34pf80_read_reg(ctx, STHS34PF80_CTRL3, (uint8_t *)&ctrl3, 1); in sths34pf80_tmos_int_or_set()
[all …]
Dsths34pf80_reg.h533 sths34pf80_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/lis2hh12_STdC/driver/
Dlis2hh12_reg.c1297 lis2hh12_ctrl3_t ctrl3; in lis2hh12_pin_int1_route_set() local
1300 ret = lis2hh12_read_reg(ctx, LIS2HH12_CTRL3, (uint8_t *)&ctrl3, 1); in lis2hh12_pin_int1_route_set()
1304 ctrl3.int1_drdy = val.int1_drdy; in lis2hh12_pin_int1_route_set()
1305 ctrl3.int1_fth = val.int1_fth; in lis2hh12_pin_int1_route_set()
1306 ctrl3.int1_ovr = val.int1_ovr; in lis2hh12_pin_int1_route_set()
1307 ctrl3.int1_ig1 = val.int1_ig1; in lis2hh12_pin_int1_route_set()
1308 ctrl3.int1_ig2 = val.int1_ig2; in lis2hh12_pin_int1_route_set()
1309 ctrl3.int1_inact = val.int1_inact; in lis2hh12_pin_int1_route_set()
1310 ret = lis2hh12_write_reg(ctx, LIS2HH12_CTRL3, (uint8_t *)&ctrl3, 1); in lis2hh12_pin_int1_route_set()
1327 lis2hh12_ctrl3_t ctrl3; in lis2hh12_pin_int1_route_get() local
[all …]
Dlis2hh12_reg.h552 lis2hh12_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/lis2du12_STdC/driver/
Dlis2du12_reg.c683 lis2du12_ctrl3_t ctrl3; in lis2du12_self_test_start() local
690 ret = lis2du12_read_reg(ctx, LIS2DU12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2du12_self_test_start()
691 ctrl3.st = (uint8_t) val; in lis2du12_self_test_start()
692 ret += lis2du12_write_reg(ctx, LIS2DU12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2du12_self_test_start()
707 lis2du12_ctrl3_t ctrl3; in lis2du12_self_test_stop() local
710 ret = lis2du12_read_reg(ctx, LIS2DU12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2du12_self_test_stop()
711 ctrl3.st = 0; in lis2du12_self_test_stop()
712 ret += lis2du12_write_reg(ctx, LIS2DU12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2du12_self_test_stop()
1126 lis2du12_ctrl3_t ctrl3; in lis2du12_pin_int2_route_set() local
1132 ret += lis2du12_read_reg(ctx, LIS2DU12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2du12_pin_int2_route_set()
[all …]
Dlis2du12_reg.h658 lis2du12_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/lis2dux12_STdC/driver/
Dlis2dux12_reg.c311 lis2dux12_ctrl3_t ctrl3; in lis2dux12_mode_set() local
391 ret += lis2dux12_read_reg(ctx, LIS2DUX12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2dux12_mode_set()
393 ctrl3.hp_en = (((uint8_t)val->odr & 0x30U) == 0x10U) ? 1U : 0U; in lis2dux12_mode_set()
397 ret += lis2dux12_write_reg(ctx, LIS2DUX12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2dux12_mode_set()
413 lis2dux12_ctrl3_t ctrl3; in lis2dux12_mode_get() local
418 ret += lis2dux12_read_reg(ctx, LIS2DUX12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2dux12_mode_get()
437 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUX12_12Hz5_HP : LIS2DUX12_12Hz5_LP; in lis2dux12_mode_get()
440 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUX12_25Hz_HP : LIS2DUX12_25Hz_LP; in lis2dux12_mode_get()
443 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUX12_50Hz_HP : LIS2DUX12_50Hz_LP; in lis2dux12_mode_get()
446 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUX12_100Hz_HP : LIS2DUX12_100Hz_LP; in lis2dux12_mode_get()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lis2duxs12_STdC/driver/
Dlis2duxs12_reg.c316 lis2duxs12_ctrl3_t ctrl3; in lis2duxs12_mode_set() local
396 ret += lis2duxs12_read_reg(ctx, LIS2DUXS12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2duxs12_mode_set()
398 ctrl3.hp_en = (((uint8_t)val->odr & 0x30U) == 0x10U) ? 1U : 0U; in lis2duxs12_mode_set()
402 ret += lis2duxs12_write_reg(ctx, LIS2DUXS12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2duxs12_mode_set()
418 lis2duxs12_ctrl3_t ctrl3; in lis2duxs12_mode_get() local
423 ret += lis2duxs12_read_reg(ctx, LIS2DUXS12_CTRL3, (uint8_t*)&ctrl3, 1); in lis2duxs12_mode_get()
442 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUXS12_12Hz5_HP : LIS2DUXS12_12Hz5_LP; in lis2duxs12_mode_get()
445 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUXS12_25Hz_HP : LIS2DUXS12_25Hz_LP; in lis2duxs12_mode_get()
448 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUXS12_50Hz_HP : LIS2DUXS12_50Hz_LP; in lis2duxs12_mode_get()
451 val->odr = (ctrl3.hp_en == 0x1U) ? LIS2DUXS12_100Hz_HP : LIS2DUXS12_100Hz_LP; in lis2duxs12_mode_get()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/
Dlsm6dsv16bx_reg.c204 lsm6dsv16bx_ctrl3_t ctrl3; in lsm6dsv16bx_reset_set() local
207 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_reset_set()
213 ctrl3.boot = ((uint8_t)val & 0x04U) >> 2; in lsm6dsv16bx_reset_set()
214 ctrl3.sw_reset = ((uint8_t)val & 0x02U) >> 1; in lsm6dsv16bx_reset_set()
219 ret = lsm6dsv16bx_write_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_reset_set()
240 lsm6dsv16bx_ctrl3_t ctrl3; in lsm6dsv16bx_reset_get() local
243 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_reset_get()
249 switch ((ctrl3.sw_reset << 2) + (ctrl3.boot << 1) + func_cfg_access.sw_por) in lsm6dsv16bx_reset_get()
691 lsm6dsv16bx_ctrl3_t ctrl3; in lsm6dsv16bx_auto_increment_set() local
694 ret = lsm6dsv16bx_read_reg(ctx, LSM6DSV16BX_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16bx_auto_increment_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/ais2dw12_STdC/driver/
Dais2dw12_reg.c248 ais2dw12_ctrl3_t ctrl3; in ais2dw12_data_rate_set() local
261 ret = ais2dw12_read_reg(ctx, AIS2DW12_CTRL3, (uint8_t *) &ctrl3, 1); in ais2dw12_data_rate_set()
266 ctrl3.slp_mode = ((uint8_t) val & 0x30U) >> 4; in ais2dw12_data_rate_set()
267 ret = ais2dw12_write_reg(ctx, AIS2DW12_CTRL3, (uint8_t *) &ctrl3, 1); in ais2dw12_data_rate_set()
284 ais2dw12_ctrl3_t ctrl3; in ais2dw12_data_rate_get() local
291 ret = ais2dw12_read_reg(ctx, AIS2DW12_CTRL3, (uint8_t *) &ctrl3, 1); in ais2dw12_data_rate_get()
293 switch ((ctrl3.slp_mode << 4) + ctrl1.odr) in ais2dw12_data_rate_get()
Dais2dw12_reg.h557 ais2dw12_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv_STdC/driver/
Dlsm6dsv_reg.c357 lsm6dsv_ctrl3_t ctrl3; in lsm6dsv_reset_set() local
360 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv_reset_set()
364 ctrl3.boot = ((uint8_t)val & 0x04U) >> 2; in lsm6dsv_reset_set()
365 ctrl3.sw_reset = ((uint8_t)val & 0x02U) >> 1; in lsm6dsv_reset_set()
368 ret = lsm6dsv_write_reg(ctx, LSM6DSV_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv_reset_set()
385 lsm6dsv_ctrl3_t ctrl3; in lsm6dsv_reset_get() local
388 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv_reset_get()
392 switch ((ctrl3.sw_reset << 2) + (ctrl3.boot << 1) + func_cfg_access.sw_por) in lsm6dsv_reset_get()
1104 lsm6dsv_ctrl3_t ctrl3; in lsm6dsv_auto_increment_set() local
1107 ret = lsm6dsv_read_reg(ctx, LSM6DSV_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv_auto_increment_set()
[all …]
/hal_st-3.6.0/sensor/stmemsc/lis2dtw12_STdC/driver/
Dlis2dtw12_reg.c308 lis2dtw12_ctrl3_t ctrl3; in lis2dtw12_data_rate_set() local
321 ret = lis2dtw12_read_reg(ctx, LIS2DTW12_CTRL3, (uint8_t *) &ctrl3, 1); in lis2dtw12_data_rate_set()
326 ctrl3.slp_mode = ((uint8_t) val & 0x30U) >> 4; in lis2dtw12_data_rate_set()
327 ret = lis2dtw12_write_reg(ctx, LIS2DTW12_CTRL3, (uint8_t *) &ctrl3, 1); in lis2dtw12_data_rate_set()
345 lis2dtw12_ctrl3_t ctrl3; in lis2dtw12_data_rate_get() local
352 ret = lis2dtw12_read_reg(ctx, LIS2DTW12_CTRL3, (uint8_t *) &ctrl3, 1); in lis2dtw12_data_rate_get()
354 switch ((ctrl3.slp_mode << 4) + ctrl1.odr) in lis2dtw12_data_rate_get()
Dlis2dtw12_reg.h628 lis2dtw12_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/ais2ih_STdC/driver/
Dais2ih_reg.c304 ais2ih_ctrl3_t ctrl3; in ais2ih_data_rate_set() local
317 ret = ais2ih_read_reg(ctx, AIS2IH_CTRL3, (uint8_t *) &ctrl3, 1); in ais2ih_data_rate_set()
322 ctrl3.slp_mode = ((uint8_t) val & 0x30U) >> 4; in ais2ih_data_rate_set()
323 ret = ais2ih_write_reg(ctx, AIS2IH_CTRL3, (uint8_t *) &ctrl3, 1); in ais2ih_data_rate_set()
340 ais2ih_ctrl3_t ctrl3; in ais2ih_data_rate_get() local
347 ret = ais2ih_read_reg(ctx, AIS2IH_CTRL3, (uint8_t *) &ctrl3, 1); in ais2ih_data_rate_get()
349 switch ((ctrl3.slp_mode << 4) + ctrl1.odr) in ais2ih_data_rate_get()
Dais2ih_reg.h626 ais2ih_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/iis2dlpc_STdC/driver/
Diis2dlpc_reg.c312 iis2dlpc_ctrl3_t ctrl3; in iis2dlpc_data_rate_set() local
325 ret = iis2dlpc_read_reg(ctx, IIS2DLPC_CTRL3, (uint8_t *) &ctrl3, 1); in iis2dlpc_data_rate_set()
330 ctrl3.slp_mode = ((uint8_t) val & 0x30U) >> 4; in iis2dlpc_data_rate_set()
331 ret = iis2dlpc_write_reg(ctx, IIS2DLPC_CTRL3, (uint8_t *) &ctrl3, 1); in iis2dlpc_data_rate_set()
353 iis2dlpc_ctrl3_t ctrl3; in iis2dlpc_data_rate_get() local
360 ret = iis2dlpc_read_reg(ctx, IIS2DLPC_CTRL3, (uint8_t *) &ctrl3, 1); in iis2dlpc_data_rate_get()
362 switch ((ctrl3.slp_mode << 4) + ctrl1.odr) in iis2dlpc_data_rate_get()
Diis2dlpc_reg.h626 iis2dlpc_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/lis2dw12_STdC/driver/
Dlis2dw12_reg.c307 lis2dw12_ctrl3_t ctrl3; in lis2dw12_data_rate_set() local
320 ret = lis2dw12_read_reg(ctx, LIS2DW12_CTRL3, (uint8_t *) &ctrl3, 1); in lis2dw12_data_rate_set()
325 ctrl3.slp_mode = ((uint8_t) val & 0x30U) >> 4; in lis2dw12_data_rate_set()
326 ret = lis2dw12_write_reg(ctx, LIS2DW12_CTRL3, (uint8_t *) &ctrl3, 1); in lis2dw12_data_rate_set()
343 lis2dw12_ctrl3_t ctrl3; in lis2dw12_data_rate_get() local
350 ret = lis2dw12_read_reg(ctx, LIS2DW12_CTRL3, (uint8_t *) &ctrl3, 1); in lis2dw12_data_rate_get()
352 switch ((ctrl3.slp_mode << 4) + ctrl1.odr) in lis2dw12_data_rate_get()
Dlis2dw12_reg.h630 lis2dw12_ctrl3_t ctrl3; member
/hal_st-3.6.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/
Dlsm6dsv16x_reg.c362 lsm6dsv16x_ctrl3_t ctrl3; in lsm6dsv16x_reset_set() local
365 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16x_reset_set()
369 ctrl3.boot = ((uint8_t)val & 0x04U) >> 2; in lsm6dsv16x_reset_set()
370 ctrl3.sw_reset = ((uint8_t)val & 0x02U) >> 1; in lsm6dsv16x_reset_set()
373 ret = lsm6dsv16x_write_reg(ctx, LSM6DSV16X_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16x_reset_set()
390 lsm6dsv16x_ctrl3_t ctrl3; in lsm6dsv16x_reset_get() local
393 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16x_reset_get()
397 switch ((ctrl3.sw_reset << 2) + (ctrl3.boot << 1) + func_cfg_access.sw_por) in lsm6dsv16x_reset_get()
1109 lsm6dsv16x_ctrl3_t ctrl3; in lsm6dsv16x_auto_increment_set() local
1112 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_CTRL3, (uint8_t *)&ctrl3, 1); in lsm6dsv16x_auto_increment_set()
[all …]

12