Home
last modified time | relevance | path

Searched refs:chan (Results 151 – 175 of 530) sorted by relevance

12345678910>>...22

/Zephyr-latest/drivers/sensor/maxim/max31790/
Dmax31790_fan_speed.c22 static int max31790_fan_speed_sample_fetch(const struct device *dev, enum sensor_channel chan) in max31790_fan_speed_sample_fetch() argument
33 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in max31790_fan_speed_sample_fetch()
93 static int max31790_fan_speed_channel_get(const struct device *dev, enum sensor_channel chan, in max31790_fan_speed_channel_get() argument
98 if (chan != SENSOR_CHAN_RPM) { in max31790_fan_speed_channel_get()
99 LOG_ERR("%s: requesting unsupported channel %i", dev->name, chan); in max31790_fan_speed_channel_get()
/Zephyr-latest/drivers/sensor/microchip/mcp9600/
Dmcp9600.c61 static int mcp9600_sample_fetch(const struct device *dev, enum sensor_channel chan) in mcp9600_sample_fetch() argument
67 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP) { in mcp9600_sample_fetch()
88 static int mcp9600_channel_get(const struct device *dev, enum sensor_channel chan, in mcp9600_channel_get() argument
93 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in mcp9600_channel_get()
/Zephyr-latest/drivers/sensor/aosong/ags10/
Dags10.c41 static int ags10_sample_fetch(const struct device *dev, enum sensor_channel chan) in ags10_sample_fetch() argument
43 if (chan != SENSOR_CHAN_VOC && chan != SENSOR_CHAN_ALL) { in ags10_sample_fetch()
69 static int ags10_channel_get(const struct device *dev, enum sensor_channel chan, in ags10_channel_get() argument
74 if (chan == SENSOR_CHAN_VOC) { in ags10_channel_get()
/Zephyr-latest/drivers/dma/
Ddma_silabs_ldma.c269 struct dma_silabs_channel *chan; in dma_silabs_irq_handler() local
276 chan = &data->dma_chan_table[chnum]; in dma_silabs_irq_handler()
280 if (chan->cb) { in dma_silabs_irq_handler()
281 chan->cb(dev, chan->user_data, chnum, -EIO); in dma_silabs_irq_handler()
289 if (chan->complete_callback_en) { in dma_silabs_irq_handler()
292 atomic_clear(&chan->busy); in dma_silabs_irq_handler()
295 if (chan->cb) { in dma_silabs_irq_handler()
296 chan->cb(dev, chan->user_data, chnum, status); in dma_silabs_irq_handler()
412 struct dma_silabs_channel *chan = &data->dma_chan_table[channel]; in dma_silabs_start() local
418 atomic_inc(&chan->busy); in dma_silabs_start()
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp1075/
Dtmp1075.c61 static int tmp1075_attr_set(const struct device *dev, enum sensor_channel chan, in tmp1075_attr_set() argument
64 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp1075_attr_set()
99 static int tmp1075_attr_get(const struct device *dev, enum sensor_channel chan, in tmp1075_attr_get() argument
102 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp1075_attr_get()
122 static int tmp1075_sample_fetch(const struct device *dev, enum sensor_channel chan) in tmp1075_sample_fetch() argument
128 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp1075_sample_fetch()
137 static int tmp1075_channel_get(const struct device *dev, enum sensor_channel chan, in tmp1075_channel_get() argument
143 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp1075_channel_get()
/Zephyr-latest/tests/drivers/sensor/generic/src/
Dmain.c21 enum sensor_channel chan; member
115 zassert_equal(sensor_sample_fetch_chan(dev, chan_elements[0].chan), in ZTEST()
118 zassert_equal(sensor_channel_get(dev, chan_elements[0].chan, in ZTEST()
130 zassert_equal(sensor_channel_get(dev, chan_elements[i].chan, in ZTEST()
209 trigger_elements[i].trig.chan, in ZTEST()
216 trigger_elements[i].trig.chan, in ZTEST()
234 trigger_elements[i].trig.chan, in ZTEST()
245 trigger_elements[i].trig.chan, in ZTEST()
252 trigger_elements[i].trig.chan, in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_broadcaster.c35 static void send_data(struct bt_iso_chan *chan) in send_data() argument
90 static void iso_connected_cb(struct bt_iso_chan *chan) in iso_connected_cb() argument
92 LOG_INF("ISO Channel %p connected", chan); in iso_connected_cb()
94 if (chan == default_chan) { in iso_connected_cb()
101 static void iso_disconnected_cb(struct bt_iso_chan *chan, uint8_t reason) in iso_disconnected_cb() argument
103 LOG_INF("ISO Channel %p disconnected (reason 0x%02x)", chan, reason); in iso_disconnected_cb()
105 if (chan == default_chan) { in iso_disconnected_cb()
112 static void sdu_sent_cb(struct bt_iso_chan *chan) in sdu_sent_cb() argument
119 send_data(chan); in sdu_sent_cb()
/Zephyr-latest/drivers/sensor/ti/tmp112/
Dtmp112.c66 enum sensor_channel chan, in tmp112_attr_set() argument
73 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp112_attr_set()
140 enum sensor_channel chan) in tmp112_sample_fetch() argument
146 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp112_sample_fetch()
164 enum sensor_channel chan, in tmp112_channel_get() argument
170 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp112_channel_get()
/Zephyr-latest/drivers/sensor/adi/adt7420/
Dadt7420.c46 enum sensor_channel chan, in adt7420_attr_set() argument
55 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in adt7420_attr_set()
112 enum sensor_channel chan) in adt7420_sample_fetch() argument
117 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || in adt7420_sample_fetch()
118 chan == SENSOR_CHAN_AMBIENT_TEMP); in adt7420_sample_fetch()
130 enum sensor_channel chan, in adt7420_channel_get() argument
136 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in adt7420_channel_get()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/send_on_connect/src/
Dmain_l2cap_send_on_connect.c57 static int chan_recv_cb(struct bt_l2cap_chan *chan, struct net_buf *buf) in chan_recv_cb() argument
59 (void)chan; in chan_recv_cb()
81 channel.chan.ops = &l2cap_ops; in accept()
82 *l2cap_chan = &channel.chan; in accept()
95 struct bt_l2cap_chan *chans[] = {&channel.chan, NULL}; in connect_l2cap_channel()
98 channel.chan.ops = &l2cap_ops; in connect_l2cap_channel()
106 err = bt_l2cap_chan_connect(default_conn, &channel.chan, server.psm); in connect_l2cap_channel()
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.c197 enum sensor_channel chan, in lsm6dso_accel_config() argument
251 enum sensor_channel chan, in lsm6dso_gyro_config() argument
269 enum sensor_channel chan, in lsm6dso_attr_set() argument
277 switch (chan) { in lsm6dso_attr_set()
279 return lsm6dso_accel_config(dev, chan, attr, val); in lsm6dso_attr_set()
281 return lsm6dso_gyro_config(dev, chan, attr, val); in lsm6dso_attr_set()
291 return lsm6dso_shub_config(dev, chan, attr, val); in lsm6dso_attr_set()
358 enum sensor_channel chan) in lsm6dso_sample_fetch() argument
364 switch (chan) { in lsm6dso_sample_fetch()
406 static inline int lsm6dso_accel_get_channel(enum sensor_channel chan, in lsm6dso_accel_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c189 enum sensor_channel chan, in lsm6dso16is_accel_config() argument
260 enum sensor_channel chan, in lsm6dso16is_gyro_config() argument
295 enum sensor_channel chan, in lsm6dso16is_attr_set() argument
303 switch (chan) { in lsm6dso16is_attr_set()
305 return lsm6dso16is_accel_config(dev, chan, attr, val); in lsm6dso16is_attr_set()
307 return lsm6dso16is_gyro_config(dev, chan, attr, val); in lsm6dso16is_attr_set()
317 return lsm6dso16is_shub_config(dev, chan, attr, val); in lsm6dso16is_attr_set()
384 enum sensor_channel chan) in lsm6dso16is_sample_fetch() argument
390 switch (chan) { in lsm6dso16is_sample_fetch()
433 static inline int lsm6dso16is_accel_get_channel(enum sensor_channel chan, in lsm6dso16is_accel_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lis2dux12/
Dlis2dux12.c105 static int lis2dux12_accel_config(const struct device *dev, enum sensor_channel chan, in lis2dux12_accel_config() argument
133 static int lis2dux12_attr_set(const struct device *dev, enum sensor_channel chan, in lis2dux12_attr_set() argument
136 switch (chan) { in lis2dux12_attr_set()
138 return lis2dux12_accel_config(dev, chan, attr, val); in lis2dux12_attr_set()
147 static int lis2dux12_sample_fetch(const struct device *dev, enum sensor_channel chan) in lis2dux12_sample_fetch() argument
153 switch (chan) { in lis2dux12_sample_fetch()
188 static inline int lis2dux12_get_channel(enum sensor_channel chan, struct sensor_value *val, in lis2dux12_get_channel() argument
191 switch (chan) { in lis2dux12_get_channel()
218 static int lis2dux12_channel_get(const struct device *dev, enum sensor_channel chan, in lis2dux12_channel_get() argument
223 return lis2dux12_get_channel(chan, val, data, data->gain); in lis2dux12_channel_get()
/Zephyr-latest/drivers/sensor/st/iis328dq/
Diis328dq.c117 static inline void iis328dq_channel_get_acc(const struct device *dev, enum sensor_channel chan, in iis328dq_channel_get_acc() argument
125 switch (chan) { in iis328dq_channel_get_acc()
146 static int iis328dq_channel_get(const struct device *dev, enum sensor_channel chan, in iis328dq_channel_get() argument
149 switch (chan) { in iis328dq_channel_get()
154 iis328dq_channel_get_acc(dev, chan, val); in iis328dq_channel_get()
227 static int iis328dq_dev_config(const struct device *dev, enum sensor_channel chan, in iis328dq_dev_config() argument
238 if (chan != SENSOR_CHAN_ACCEL_XYZ) { in iis328dq_dev_config()
244 if (chan != SENSOR_CHAN_ACCEL_XYZ) { in iis328dq_dev_config()
258 static int iis328dq_attr_set(const struct device *dev, enum sensor_channel chan, in iis328dq_attr_set() argument
261 switch (chan) { in iis328dq_attr_set()
[all …]
/Zephyr-latest/drivers/sensor/st/stts751/
Dstts751.c33 enum sensor_channel chan) in stts751_sample_fetch() argument
38 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in stts751_sample_fetch()
58 enum sensor_channel chan, in stts751_channel_get() argument
63 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in stts751_channel_get()
114 enum sensor_channel chan, in stts751_attr_set() argument
118 if (chan != SENSOR_CHAN_ALL) { in stts751_attr_set()
/Zephyr-latest/drivers/sensor/st/lps2xdf/
Dlps2xdf.c65 static int lps2xdf_attr_set(const struct device *dev, enum sensor_channel chan, in lps2xdf_attr_set() argument
68 if (chan != SENSOR_CHAN_ALL) { in lps2xdf_attr_set()
118 static int lps2xdf_channel_get(const struct device *dev, enum sensor_channel chan, in lps2xdf_channel_get() argument
123 if (chan == SENSOR_CHAN_PRESS) { in lps2xdf_channel_get()
125 } else if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in lps2xdf_channel_get()
134 static int lps2xdf_sample_fetch(const struct device *dev, enum sensor_channel chan) in lps2xdf_sample_fetch() argument
139 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in lps2xdf_sample_fetch()
141 return chip_api->sample_fetch(dev, chan); in lps2xdf_sample_fetch()
/Zephyr-latest/samples/subsys/zbus/dyn_channel/src/
Dmain.c51 static void filter_cb(const struct zbus_channel *chan) in filter_cb() argument
60 __ASSERT_NO_MSG(chan == &pkt_chan); in filter_cb()
62 chan_message = zbus_chan_const_msg(chan); in filter_cb()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c14 int tcn75a_sample_fetch(const struct device *dev, enum sensor_channel chan) in tcn75a_sample_fetch() argument
23 if ((chan != SENSOR_CHAN_ALL) && (chan != SENSOR_CHAN_AMBIENT_TEMP)) { in tcn75a_sample_fetch()
49 static int tcn75a_channel_get(const struct device *dev, enum sensor_channel chan, in tcn75a_channel_get() argument
55 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tcn75a_channel_get()
/Zephyr-latest/drivers/sensor/nordic/temp/
Dtemp_nrf5.c42 enum sensor_channel chan) in temp_nrf5_sample_fetch() argument
53 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP) { in temp_nrf5_sample_fetch()
78 enum sensor_channel chan, in temp_nrf5_channel_get() argument
85 if (chan != SENSOR_CHAN_DIE_TEMP) { in temp_nrf5_channel_get()
/Zephyr-latest/drivers/sensor/st/lps22hb/
Dlps22hb.c33 enum sensor_channel chan) in lps22hb_sample_fetch() argument
39 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in lps22hb_sample_fetch()
75 enum sensor_channel chan, in lps22hb_channel_get() argument
80 if (chan == SENSOR_CHAN_PRESS) { in lps22hb_channel_get()
82 } else if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in lps22hb_channel_get()
/Zephyr-latest/drivers/sensor/ti/tmp007/
Dtmp007.c59 enum sensor_channel chan) in tmp007_sample_fetch() argument
65 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp007_sample_fetch()
81 enum sensor_channel chan, in tmp007_channel_get() argument
87 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp007_channel_get()
/Zephyr-latest/drivers/sensor/amg88xx/
Damg88xx.c25 enum sensor_channel chan) in amg88xx_sample_fetch() argument
30 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in amg88xx_sample_fetch()
43 enum sensor_channel chan, in amg88xx_channel_get() argument
49 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in amg88xx_channel_get()
/Zephyr-latest/drivers/sensor/ti/tmag5273/
Dtmag5273.c431 static int tmag5273_attr_set(const struct device *dev, enum sensor_channel chan, in tmag5273_attr_set() argument
444 if (chan != SENSOR_CHAN_MAGN_XYZ) { in tmag5273_attr_set()
481 static int tmag5273_attr_get(const struct device *dev, enum sensor_channel chan, in tmag5273_attr_get() argument
494 if (chan != SENSOR_CHAN_MAGN_XYZ) { in tmag5273_attr_get()
531 static int tmag5273_sample_fetch(const struct device *dev, enum sensor_channel chan) in tmag5273_sample_fetch() argument
570 switch ((int)chan) { in tmag5273_sample_fetch()
640 LOG_ERR("unknown sensor channel %d", chan); in tmag5273_sample_fetch()
712 bool all_channels = (chan == SENSOR_CHAN_ALL); in tmag5273_sample_fetch()
713 bool all_xyz = all_channels || (chan == SENSOR_CHAN_MAGN_XYZ); in tmag5273_sample_fetch()
714 bool all_angle_magnitude = all_channels || ((int)chan == TMAG5273_CHAN_ANGLE_MAGNITUDE); in tmag5273_sample_fetch()
[all …]
/Zephyr-latest/soc/mediatek/mt8xxx/
Dsoc.h23 void mtk_adsp_mbox_set_handler(const struct device *mbox, uint32_t chan,
27 void mtk_adsp_mbox_signal(const struct device *mbox, uint32_t chan);
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x.c225 enum sensor_channel chan, in lsm6dsv16x_accel_config() argument
315 enum sensor_channel chan, in lsm6dsv16x_gyro_config() argument
356 enum sensor_channel chan, in lsm6dsv16x_attr_set() argument
364 switch (chan) { in lsm6dsv16x_attr_set()
366 return lsm6dsv16x_accel_config(dev, chan, attr, val); in lsm6dsv16x_attr_set()
368 return lsm6dsv16x_gyro_config(dev, chan, attr, val); in lsm6dsv16x_attr_set()
378 return lsm6dsv16x_shub_config(dev, chan, attr, val); in lsm6dsv16x_attr_set()
389 enum sensor_channel chan, in lsm6dsv16x_accel_get_config() argument
457 enum sensor_channel chan, in lsm6dsv16x_gyro_get_config() argument
516 enum sensor_channel chan, in lsm6dsv16x_attr_get() argument
[all …]

12345678910>>...22