Home
last modified time | relevance | path

Searched refs:j (Results 1 – 15 of 15) sorted by relevance

/hal_st-3.7.0/sensor/stmemsc/_resources/FIFO_Utility_Tool/
Dst_fifo.c221 uint16_t j = 0; in st_fifo_decode() local
301 (void)memcpy(&fifo_out_slot[j].timestamp, &fifo_raw_slot[i].fifo_data_out[3], in st_fifo_decode()
306 fifo_out_slot[j].timestamp = timestamp; in st_fifo_decode()
309 fifo_out_slot[j].sensor_tag = sensor_type; in st_fifo_decode()
310 (void)memcpy(fifo_out_slot[j].sensor_data.raw_data, in st_fifo_decode()
315 (void)memcpy(last_data_xl, fifo_out_slot[j].sensor_data.raw_data, 6); in st_fifo_decode()
322 (void)memcpy(last_data_gy, fifo_out_slot[j].sensor_data.raw_data, 6); in st_fifo_decode()
327 j++; in st_fifo_decode()
333 fifo_out_slot[j].sensor_tag = get_sensor_type(tag); in st_fifo_decode()
334 (void)memcpy(fifo_out_slot[j].sensor_data.raw_data, in st_fifo_decode()
[all …]
Dmain.c61 for (uint8_t j = 0; j < 7; j++) in main() local
62 raw_slot[i].fifo_data_out[j] = data_in[j]; in main()
/hal_st-3.7.0/audio/microphone/
DOpenPDMFilter.c166 uint16_t i, j; in Open_PDM_Filter_Init() local
188 for(j = 0; j < SINCN; j++) { in Open_PDM_Filter_Init()
190 coef[j][i] = sinc[j * decimation + i]; in Open_PDM_Filter_Init()
191 sum += sinc[j * decimation + i]; in Open_PDM_Filter_Init()
232 uint8_t j = channels - 1; in Open_PDM_Filter_64() local
237 Z0 = filter_tables_64[j](data, 0); in Open_PDM_Filter_64()
238 Z1 = filter_tables_64[j](data, 1); in Open_PDM_Filter_64()
239 Z2 = filter_tables_64[j](data, 2); in Open_PDM_Filter_64()
280 uint8_t j = channels - 1; in Open_PDM_Filter_128() local
285 Z0 = filter_tables_128[j](data, 0); in Open_PDM_Filter_128()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lis3dsh_STdC/driver/
Dlis3dsh_reg.c759 uint8_t j; in lis3dsh_data_get() local
770 j = 0U; in lis3dsh_data_get()
774 data->xl.raw[i] = (int16_t)buff[j + 1U]; in lis3dsh_data_get()
775 data->xl.raw[i] = (data->xl.raw[i] * 256) + (int16_t) buff[j]; in lis3dsh_data_get()
776 j += 2U; in lis3dsh_data_get()
/hal_st-3.7.0/sensor/stmemsc/lis2du12_STdC/driver/
Dlis2du12_reg.c615 uint8_t j; in lis2du12_data_get() local
620 j = 0U; in lis2du12_data_get()
622 data->xl.raw[i] = (int16_t)buff[j+1U]; in lis2du12_data_get()
623 data->xl.raw[i] = (data->xl.raw[i] * 256) + (int16_t) buff[j]; in lis2du12_data_get()
624 j+=2U; in lis2du12_data_get()
644 data->heat.raw = (int16_t)buff[j+1U]; in lis2du12_data_get()
645 data->heat.raw = (data->heat.raw * 256) + (int16_t) buff[j]; in lis2du12_data_get()
/hal_st-3.7.0/sensor/stmemsc/lsm6dso_STdC/driver/
Dlsm6dso_reg.c11430 uint8_t j; in lsm6dso_data_get() local
11440 j = 0; in lsm6dso_data_get()
11442 data->ui.heat.raw = (int16_t)buff[j + 1U]; in lsm6dso_data_get()
11444 (int16_t)buff[j]); in lsm6dso_data_get()
11445 j += 2U; in lsm6dso_data_get()
11452 data->ui.gy.raw[i] = (int16_t)buff[j + 1U]; in lsm6dso_data_get()
11453 data->ui.gy.raw[i] = (data->ui.gy.raw[i] * 256) + (int16_t) buff[j]; in lsm6dso_data_get()
11454 j += 2U; in lsm6dso_data_get()
11487 data->ui.xl.raw[i] = (int16_t)buff[j + 1U]; in lsm6dso_data_get()
11488 data->ui.xl.raw[i] = (data->ui.xl.raw[i] * 256) + (int16_t) buff[j]; in lsm6dso_data_get()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsox_STdC/driver/
Dlsm6dsox_reg.c14113 uint8_t j; in lsm6dsox_data_get() local
14122 j = 0; in lsm6dsox_data_get()
14124 data->ui.heat.raw = (int16_t)buff[j + 1U]; in lsm6dsox_data_get()
14126 (int16_t)buff[j]); in lsm6dsox_data_get()
14127 j += 2U; in lsm6dsox_data_get()
14134 data->ui.gy.raw[i] = (int16_t)buff[j + 1U]; in lsm6dsox_data_get()
14135 data->ui.gy.raw[i] = (data->ui.gy.raw[i] * 256) + (int16_t) buff[j]; in lsm6dsox_data_get()
14136 j += 2U; in lsm6dsox_data_get()
14171 data->ui.xl.raw[i] = (int16_t)buff[j + 1U]; in lsm6dsox_data_get()
14172 data->ui.xl.raw[i] = (data->ui.xl.raw[i] * 256) + (int16_t) buff[j]; in lsm6dsox_data_get()
[all …]
/hal_st-3.7.0/sensor/stmemsc/ism330is_STdC/driver/
Dism330is_reg.c3034 uint8_t j = 0; in ism330is_ispu_write_memory() local
3043 len_s[j++] = k; in ism330is_ispu_write_memory()
3044 addr_s[j] = mem_addr + i; in ism330is_ispu_write_memory()
3050 len_s[j++] = k; in ism330is_ispu_write_memory()
3053 for (i = 0U; i < j; i++) in ism330is_ispu_write_memory()
/hal_st-3.7.0/sensor/stmemsc/lsm6dso16is_STdC/driver/
Dlsm6dso16is_reg.c3034 uint8_t j = 0; in lsm6dso16is_ispu_write_memory() local
3043 len_s[j++] = k; in lsm6dso16is_ispu_write_memory()
3044 addr_s[j] = mem_addr + i; in lsm6dso16is_ispu_write_memory()
3050 len_s[j++] = k; in lsm6dso16is_ispu_write_memory()
3053 for (i = 0U; i < j; i++) in lsm6dso16is_ispu_write_memory()
/hal_st-3.7.0/sensor/stmemsc/lis2dux12_STdC/driver/
Dlis2dux12_reg.c630 uint8_t j; in lis2dux12_xl_data_get() local
635 j = 0U; in lis2dux12_xl_data_get()
637 data->raw[i] = (int16_t)buff[j+1U]; in lis2dux12_xl_data_get()
638 data->raw[i] = (data->raw[i] * 256) + (int16_t) buff[j]; in lis2dux12_xl_data_get()
639 j+=2U; in lis2dux12_xl_data_get()
/hal_st-3.7.0/sensor/stmemsc/lsm6dsv16bx_STdC/driver/
Dlsm6dsv16bx_reg.c6664 uint8_t i, j; in lsm6dsv16bx_sflp_game_gbias_set() local
6749 j = 0; in lsm6dsv16bx_sflp_game_gbias_set()
6752 ret += lsm6dsv16bx_write_reg(ctx, 0x02 + 3 * i, &data_ptr[j++], 1); in lsm6dsv16bx_sflp_game_gbias_set()
6753 ret += lsm6dsv16bx_write_reg(ctx, 0x03 + 3 * i, &data_ptr[j++], 1); in lsm6dsv16bx_sflp_game_gbias_set()
6754 ret += lsm6dsv16bx_write_reg(ctx, 0x04 + 3 * i, &data_ptr[j], 1); in lsm6dsv16bx_sflp_game_gbias_set()
6758 j = 0; in lsm6dsv16bx_sflp_game_gbias_set()
6760 ret += lsm6dsv16bx_write_reg(ctx, 0x0B + 3 * i, &data_ptr[j++], 1); in lsm6dsv16bx_sflp_game_gbias_set()
6761 ret += lsm6dsv16bx_write_reg(ctx, 0x0C + 3 * i, &data_ptr[j++], 1); in lsm6dsv16bx_sflp_game_gbias_set()
6762 ret += lsm6dsv16bx_write_reg(ctx, 0x0D + 3 * i, &data_ptr[j], 1); in lsm6dsv16bx_sflp_game_gbias_set()
/hal_st-3.7.0/sensor/stmemsc/lis2duxs12_STdC/driver/
Dlis2duxs12_reg.c635 uint8_t j; in lis2duxs12_xl_data_get() local
640 j = 0U; in lis2duxs12_xl_data_get()
642 data->raw[i] = (int16_t)buff[j+1U]; in lis2duxs12_xl_data_get()
643 data->raw[i] = (data->raw[i] * 256) + (int16_t) buff[j]; in lis2duxs12_xl_data_get()
644 j+=2U; in lis2duxs12_xl_data_get()
/hal_st-3.7.0/sensor/stmemsc/lsm6dso32x_STdC/driver/
Dlsm6dso32x_reg.c12069 uint8_t j; in lsm6dso32x_data_get() local
12078 j = 0; in lsm6dso32x_data_get()
12080 data->ui.heat.raw = (int16_t)buff[j + 1U]; in lsm6dso32x_data_get()
12082 (int16_t)buff[j]); in lsm6dso32x_data_get()
12083 j += 2U; in lsm6dso32x_data_get()
12090 data->ui.gy.raw[i] = (int16_t)buff[j + 1U]; in lsm6dso32x_data_get()
12091 data->ui.gy.raw[i] = (data->ui.gy.raw[i] * 256) + (int16_t) buff[j]; in lsm6dso32x_data_get()
12092 j += 2U; in lsm6dso32x_data_get()
12130 data->ui.xl.raw[i] = (int16_t)buff[j + 1U]; in lsm6dso32x_data_get()
12131 data->ui.xl.raw[i] = (data->ui.xl.raw[i] * 256) + (int16_t) buff[j]; in lsm6dso32x_data_get()
[all …]
/hal_st-3.7.0/sensor/stmemsc/lsm6dsv_STdC/driver/
Dlsm6dsv_reg.c5572 uint8_t i, j; in lsm6dsv_sflp_game_gbias_set() local
5656 j = 0; in lsm6dsv_sflp_game_gbias_set()
5660 &data_ptr[j++], 1); in lsm6dsv_sflp_game_gbias_set()
5662 &data_ptr[j++], 1); in lsm6dsv_sflp_game_gbias_set()
5663 ret += lsm6dsv_write_reg(ctx, LSM6DSV_SENSOR_HUB_3 + 3U * i, &data_ptr[j], in lsm6dsv_sflp_game_gbias_set()
5668 j = 0; in lsm6dsv_sflp_game_gbias_set()
5671 &data_ptr[j++], 1); in lsm6dsv_sflp_game_gbias_set()
5673 &data_ptr[j++], 1); in lsm6dsv_sflp_game_gbias_set()
5674 ret += lsm6dsv_write_reg(ctx, LSM6DSV_SENSOR_HUB_12 + 3U * i, &data_ptr[j], in lsm6dsv_sflp_game_gbias_set()
/hal_st-3.7.0/sensor/stmemsc/lsm6dsv16x_STdC/driver/
Dlsm6dsv16x_reg.c5725 uint8_t i, j; in lsm6dsv16x_sflp_game_gbias_set() local
5809 j = 0; in lsm6dsv16x_sflp_game_gbias_set()
5813 &data_ptr[j++], 1); in lsm6dsv16x_sflp_game_gbias_set()
5815 &data_ptr[j++], 1); in lsm6dsv16x_sflp_game_gbias_set()
5816 ret += lsm6dsv16x_write_reg(ctx, LSM6DSV16X_SENSOR_HUB_3 + 3U * i, &data_ptr[j], in lsm6dsv16x_sflp_game_gbias_set()
5821 j = 0; in lsm6dsv16x_sflp_game_gbias_set()
5824 &data_ptr[j++], 1); in lsm6dsv16x_sflp_game_gbias_set()
5826 &data_ptr[j++], 1); in lsm6dsv16x_sflp_game_gbias_set()
5827 ret += lsm6dsv16x_write_reg(ctx, LSM6DSV16X_SENSOR_HUB_12 + 3U * i, &data_ptr[j], in lsm6dsv16x_sflp_game_gbias_set()