Searched refs:ms2 (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/samples/subsys/zbus/priority_boost/src/ |
D | main.c | 11 ZBUS_CHAN_DEFINE(chan_a, int, NULL, NULL, ZBUS_OBSERVERS(l1, ms1, ms2, s1, l2), 0); 76 ZBUS_MSG_SUBSCRIBER_DEFINE(ms2); 87 IF_ENABLED(CONFIG_ZBUS_PRIORITY_BOOST, (zbus_obs_attach_to_thread(&ms2);)); in ms2_thread() 90 err = zbus_sub_wait_msg(&ms2, &chan, &a, K_FOREVER); in ms2_thread()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 1185 static inline int32_t sensor_ms2_to_g(const struct sensor_value *ms2) in sensor_ms2_to_g() argument 1187 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g() 1202 static inline void sensor_g_to_ms2(int32_t g, struct sensor_value *ms2) in sensor_g_to_ms2() argument 1204 ms2->val1 = ((int64_t)g * SENSOR_G) / 1000000LL; in sensor_g_to_ms2() 1205 ms2->val2 = ((int64_t)g * SENSOR_G) % 1000000LL; in sensor_g_to_ms2() 1216 static inline int32_t sensor_ms2_to_ug(const struct sensor_value *ms2) in sensor_ms2_to_ug() argument 1218 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug() 1229 static inline void sensor_ug_to_ms2(int32_t ug, struct sensor_value *ms2) in sensor_ug_to_ms2() argument 1231 ms2->val1 = ((int64_t)ug * SENSOR_G / 1000000LL) / 1000000LL; in sensor_ug_to_ms2() 1232 ms2->val2 = ((int64_t)ug * SENSOR_G / 1000000LL) % 1000000LL; in sensor_ug_to_ms2()
|
/Zephyr-latest/drivers/sensor/st/lis2dw12/ |
D | lis2dw12.c | 194 static inline int32_t sensor_ms2_to_mg(const struct sensor_value *ms2) in sensor_ms2_to_mg() argument 196 int64_t nano_ms2 = (ms2->val1 * 1000000LL + ms2->val2) * 1000LL; in sensor_ms2_to_mg()
|
/Zephyr-latest/samples/subsys/zbus/priority_boost/ |
D | README.rst | 21 ZBUS_OBSERVERS(l1, ms1, ms2, s1, l2),
|