Home
last modified time | relevance | path

Searched refs:apex_pedometer (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/sensor/tdk_apex/src/
Dmain.c113 struct sensor_value apex_pedometer[3]; in main() local
115 sensor_channel_get(dev, SENSOR_CHAN_APEX_MOTION, apex_pedometer); in main()
119 now_str(), apex_pedometer[0].val1, in main()
120 sensor_value_to_double(&apex_pedometer[2]), in main()
121 apex_pedometer[1].val1 == 1 ? "Walk" in main()
122 : apex_pedometer[1].val1 == 2 ? "Run" in main()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670_apex.c62 inv_imu_apex_step_activity_t apex_pedometer; in icm42670_apex_fetch_from_dmp() local
69 rc |= inv_imu_apex_get_data_activity(&data->driver, &apex_pedometer); in icm42670_apex_fetch_from_dmp()
72 apex_pedometer.step_cnt + step_cnt_ovflw * (uint64_t)UINT16_MAX) { in icm42670_apex_fetch_from_dmp()
74 apex_pedometer.step_cnt + step_cnt_ovflw * (uint64_t)UINT16_MAX; in icm42670_apex_fetch_from_dmp()
75 data->pedometer_activity = apex_pedometer.activity_class; in icm42670_apex_fetch_from_dmp()
76 data->pedometer_cadence = apex_pedometer.step_cadence; in icm42670_apex_fetch_from_dmp()