Searched refs:ms2 (Results 1 – 3 of 3) 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 | 1188 static inline int32_t sensor_ms2_to_g(const struct sensor_value *ms2) in sensor_ms2_to_g() argument 1190 int64_t micro_ms2 = ms2->val1 * 1000000LL + ms2->val2; in sensor_ms2_to_g() 1205 static inline void sensor_g_to_ms2(int32_t g, struct sensor_value *ms2) in sensor_g_to_ms2() argument 1207 ms2->val1 = ((int64_t)g * SENSOR_G) / 1000000LL; in sensor_g_to_ms2() 1208 ms2->val2 = ((int64_t)g * SENSOR_G) % 1000000LL; in sensor_g_to_ms2() 1219 static inline int32_t sensor_ms2_to_mg(const struct sensor_value *ms2) in sensor_ms2_to_mg() argument 1221 int64_t nano_ms2 = (ms2->val1 * 1000000LL + ms2->val2) * 1000LL; in sensor_ms2_to_mg() 1238 static inline int32_t sensor_ms2_to_ug(const struct sensor_value *ms2) in sensor_ms2_to_ug() argument 1240 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug() 1251 static inline void sensor_ug_to_ms2(int32_t ug, struct sensor_value *ms2) in sensor_ug_to_ms2() argument [all …]
|
| /Zephyr-latest/samples/subsys/zbus/priority_boost/ |
| D | README.rst | 21 ZBUS_OBSERVERS(l1, ms1, ms2, s1, l2),
|