Home
last modified time | relevance | path

Searched refs:chan (Results 176 – 200 of 530) sorted by relevance

12345678910>>...22

/Zephyr-latest/drivers/sensor/vishay/veml7700/
Dveml7700.c355 static int veml7700_attr_set(const struct device *dev, enum sensor_channel chan, in veml7700_attr_set() argument
358 if (chan != SENSOR_CHAN_LIGHT) { in veml7700_attr_set()
403 static int veml7700_attr_get(const struct device *dev, enum sensor_channel chan, in veml7700_attr_get() argument
406 if (chan != SENSOR_CHAN_LIGHT) { in veml7700_attr_get()
451 static int veml7700_sample_fetch(const struct device *dev, enum sensor_channel chan) in veml7700_sample_fetch() argument
458 if ((chan == SENSOR_CHAN_LIGHT || chan == SENSOR_CHAN_ALL) && in veml7700_sample_fetch()
466 if (chan == SENSOR_CHAN_LIGHT) { in veml7700_sample_fetch()
468 } else if ((enum sensor_channel_veml7700)chan == SENSOR_CHAN_VEML7700_INTERRUPT) { in veml7700_sample_fetch()
475 } else if ((enum sensor_channel_veml7700)chan == SENSOR_CHAN_VEML7700_WHITE_RAW_COUNTS) { in veml7700_sample_fetch()
477 } else if (chan == SENSOR_CHAN_ALL) { in veml7700_sample_fetch()
[all …]
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.c147 enum sensor_channel chan, in iis2iclx_accel_config() argument
165 enum sensor_channel chan, in iis2iclx_attr_set() argument
173 switch (chan) { in iis2iclx_attr_set()
175 return iis2iclx_accel_config(dev, chan, attr, val); in iis2iclx_attr_set()
185 return iis2iclx_shub_config(dev, chan, attr, val); in iis2iclx_attr_set()
243 enum sensor_channel chan) in iis2iclx_sample_fetch() argument
249 switch (chan) { in iis2iclx_sample_fetch()
287 static inline int iis2iclx_accel_get_channel(enum sensor_channel chan, in iis2iclx_accel_get_channel() argument
294 switch (chan) { in iis2iclx_accel_get_channel()
313 static int iis2iclx_accel_channel_get(enum sensor_channel chan, in iis2iclx_accel_channel_get() argument
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dl2cap_br_internal.h188 #define BR_CHAN(_ch) CONTAINER_OF(_ch, struct bt_l2cap_br_chan, chan)
191 void bt_l2cap_chan_add(struct bt_conn *conn, struct bt_l2cap_chan *chan,
195 void bt_l2cap_chan_remove(struct bt_conn *conn, struct bt_l2cap_chan *chan);
198 void bt_l2cap_br_chan_del(struct bt_l2cap_chan *chan);
203 void bt_l2cap_br_chan_set_state_debug(struct bt_l2cap_chan *chan,
209 void bt_l2cap_br_chan_set_state(struct bt_l2cap_chan *chan,
/Zephyr-latest/drivers/sensor/ite/ite_tach_it8xxx2/
Dtach_ite_it8xxx2.c114 enum sensor_channel chan) in tach_it8xxx2_sample_fetch() argument
123 if ((chan != SENSOR_CHAN_RPM) && (chan != SENSOR_CHAN_ALL)) { in tach_it8xxx2_sample_fetch()
141 enum sensor_channel chan, in tach_it8xxx2_channel_get() argument
149 if (chan != SENSOR_CHAN_RPM) { in tach_it8xxx2_channel_get()
150 LOG_ERR("Sensor chan %d, only support SENSOR_CHAN_RPM", chan); in tach_it8xxx2_channel_get()
/Zephyr-latest/tests/subsys/zbus/hlp_priority_boost/src/
Dmain.c45 const struct zbus_channel *chan; in consumer_sub_thread() local
49 if (zbus_sub_wait(sub, &chan, K_FOREVER) != 0) { in consumer_sub_thread()
52 zbus_chan_read(chan, &msg, K_FOREVER); in consumer_sub_thread()
72 const struct zbus_channel *chan; in consumer_msg_sub_thread() local
76 if (zbus_sub_wait_msg(msub, &chan, &msg, K_FOREVER) != 0) { in consumer_msg_sub_thread()
118 static void listener_callback(const struct zbus_channel *chan) in listener_callback() argument
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108.c100 enum sensor_channel chan) in tmp108_sample_fetch() argument
105 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp108_sample_fetch()
145 enum sensor_channel chan, in tmp108_channel_get() argument
151 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp108_channel_get()
163 enum sensor_channel chan, in tmp108_attr_get() argument
170 if (chan != SENSOR_CHAN_AMBIENT_TEMP && chan != SENSOR_CHAN_ALL) { in tmp108_attr_get()
190 enum sensor_channel chan, in tmp108_attr_set() argument
200 if (chan != SENSOR_CHAN_AMBIENT_TEMP && chan != SENSOR_CHAN_ALL) { in tmp108_attr_set()
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c485 static int bmi270_sample_fetch(const struct device *dev, enum sensor_channel chan) in bmi270_sample_fetch() argument
491 if (chan != SENSOR_CHAN_ALL) { in bmi270_sample_fetch()
515 static int bmi270_channel_get(const struct device *dev, enum sensor_channel chan, in bmi270_channel_get() argument
520 if (chan == SENSOR_CHAN_ACCEL_X) { in bmi270_channel_get()
522 } else if (chan == SENSOR_CHAN_ACCEL_Y) { in bmi270_channel_get()
524 } else if (chan == SENSOR_CHAN_ACCEL_Z) { in bmi270_channel_get()
526 } else if (chan == SENSOR_CHAN_ACCEL_XYZ) { in bmi270_channel_get()
533 } else if (chan == SENSOR_CHAN_GYRO_X) { in bmi270_channel_get()
535 } else if (chan == SENSOR_CHAN_GYRO_Y) { in bmi270_channel_get()
537 } else if (chan == SENSOR_CHAN_GYRO_Z) { in bmi270_channel_get()
[all …]
/Zephyr-latest/drivers/sensor/microchip/mcp970x/
Dmcp970x.c39 static int fetch(const struct device *dev, enum sensor_channel chan) in fetch() argument
45 if ((chan != SENSOR_CHAN_AMBIENT_TEMP) && (chan != SENSOR_CHAN_ALL)) { in fetch()
57 static int get(const struct device *dev, enum sensor_channel chan, struct sensor_value *val) in get() argument
67 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in get()
/Zephyr-latest/drivers/sensor/pms7003/
Dpms7003.c111 enum sensor_channel chan) in pms7003_sample_fetch() argument
150 enum sensor_channel chan, in pms7003_channel_get() argument
155 if (chan == SENSOR_CHAN_PM_1_0) { in pms7003_channel_get()
158 } else if (chan == SENSOR_CHAN_PM_2_5) { in pms7003_channel_get()
161 } else if (chan == SENSOR_CHAN_PM_10) { in pms7003_channel_get()
/Zephyr-latest/drivers/sensor/rpi_pico_temp/
Drpi_pico_temp.c31 static int rpi_pico_temp_sample_fetch(const struct device *dev, enum sensor_channel chan) in rpi_pico_temp_sample_fetch() argument
37 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP) { in rpi_pico_temp_sample_fetch()
52 static int rpi_pico_temp_channel_get(const struct device *dev, enum sensor_channel chan, in rpi_pico_temp_channel_get() argument
61 if (chan != SENSOR_CHAN_DIE_TEMP) { in rpi_pico_temp_channel_get()
/Zephyr-latest/drivers/sensor/sensirion/sts4x/
Dsts4x.c88 static int sts4x_sample_fetch(const struct device *dev, enum sensor_channel chan) in sts4x_sample_fetch() argument
94 if (chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP) { in sts4x_sample_fetch()
115 static int sts4x_channel_get(const struct device *dev, enum sensor_channel chan, in sts4x_channel_get() argument
120 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in sts4x_channel_get()
/Zephyr-latest/tests/bluetooth/audio/mocks/include/
Diso.h23 struct bt_iso_chan **chan);
24 int mock_bt_iso_disconnected(struct bt_iso_chan *chan, uint8_t err);
/Zephyr-latest/subsys/bluetooth/host/classic/shell/
Dbredr.c219 static int l2cap_recv(struct bt_l2cap_chan *chan, struct net_buf *buf) in l2cap_recv() argument
221 shell_print(ctx_shell, "Incoming data channel %p len %u", chan, in l2cap_recv()
227 static void l2cap_connected(struct bt_l2cap_chan *chan) in l2cap_connected() argument
229 shell_print(ctx_shell, "Channel %p connected", chan); in l2cap_connected()
232 static void l2cap_disconnected(struct bt_l2cap_chan *chan) in l2cap_disconnected() argument
234 shell_print(ctx_shell, "Channel %p disconnected", chan); in l2cap_disconnected()
237 static struct net_buf *l2cap_alloc_buf(struct bt_l2cap_chan *chan) in l2cap_alloc_buf() argument
239 shell_print(ctx_shell, "Channel %p requires buffer", chan); in l2cap_alloc_buf()
252 .chan.ops = &l2cap_ops,
258 struct bt_l2cap_chan **chan) in l2cap_accept() argument
[all …]
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.h73 int tcn75a_attr_get(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr,
76 int tcn75a_attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr,
81 int tcn75a_sample_fetch(const struct device *dev, enum sensor_channel chan);
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_gyro.c185 static int bmi08x_gyr_config(const struct device *dev, enum sensor_channel chan, in bmi08x_gyr_config() argument
199 static int bmi08x_attr_set(const struct device *dev, enum sensor_channel chan, in bmi08x_attr_set() argument
211 switch (chan) { in bmi08x_attr_set()
216 return bmi08x_gyr_config(dev, chan, attr, val); in bmi08x_attr_set()
223 static int bmi08x_sample_fetch(const struct device *dev, enum sensor_channel chan) in bmi08x_sample_fetch() argument
229 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_GYRO_XYZ) { in bmi08x_sample_fetch()
263 static void bmi08x_channel_convert(enum sensor_channel chan, uint16_t scale, uint16_t *raw_xyz, in bmi08x_channel_convert() argument
269 switch (chan) { in bmi08x_channel_convert()
290 static inline void bmi08x_gyr_channel_get(const struct device *dev, enum sensor_channel chan, in bmi08x_gyr_channel_get() argument
295 bmi08x_channel_convert(chan, bmi08x->scale, bmi08x->gyr_sample, val); in bmi08x_gyr_channel_get()
[all …]
/Zephyr-latest/drivers/sensor/a01nyub/
Da01nyub.c90 static int a01nyub_channel_get(const struct device *dev, enum sensor_channel chan, in a01nyub_channel_get() argument
95 if (chan != SENSOR_CHAN_DISTANCE) { in a01nyub_channel_get()
106 static int a01nyub_sample_fetch(const struct device *dev, enum sensor_channel chan) in a01nyub_sample_fetch() argument
108 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in a01nyub_sample_fetch()
110 if (chan == SENSOR_CHAN_DISTANCE || chan == SENSOR_CHAN_ALL) { in a01nyub_sample_fetch()
/Zephyr-latest/drivers/sensor/st/lis2ds12/
Dlis2ds12.c130 enum sensor_channel chan, in lis2ds12_accel_config() argument
149 enum sensor_channel chan, in lis2ds12_attr_set() argument
153 switch (chan) { in lis2ds12_attr_set()
155 return lis2ds12_accel_config(dev, chan, attr, val); in lis2ds12_attr_set()
185 enum sensor_channel chan) in lis2ds12_sample_fetch() argument
187 switch (chan) { in lis2ds12_sample_fetch()
225 static inline int lis2ds12_get_channel(enum sensor_channel chan, in lis2ds12_get_channel() argument
230 switch (chan) { in lis2ds12_get_channel()
253 enum sensor_channel chan, in lis2ds12_channel_get() argument
258 return lis2ds12_get_channel(chan, val, data, data->gain); in lis2ds12_channel_get()
/Zephyr-latest/drivers/gpio/
Dgpio_max14906.c136 data->chan.ovr_ld.reg_raw = max149x6_reg_transceive( in gpio_max14906_diag_chan_get()
141 data->chan.opn_wir.reg_raw = max149x6_reg_transceive( in gpio_max14906_diag_chan_get()
145 data->chan.sht_vdd.reg_raw = max149x6_reg_transceive( in gpio_max14906_diag_chan_get()
149 data->chan.doi_level.reg_raw = max149x6_reg_transceive( in gpio_max14906_diag_chan_get()
151 if (data->chan.doi_level.reg_raw) { in gpio_max14906_diag_chan_get()
152 PRINT_ERR(data->chan.doi_level.reg_bits.VDDOK_FAULT1); in gpio_max14906_diag_chan_get()
153 PRINT_ERR(data->chan.doi_level.reg_bits.VDDOK_FAULT2); in gpio_max14906_diag_chan_get()
154 PRINT_ERR(data->chan.doi_level.reg_bits.VDDOK_FAULT3); in gpio_max14906_diag_chan_get()
155 PRINT_ERR(data->chan.doi_level.reg_bits.VDDOK_FAULT4); in gpio_max14906_diag_chan_get()
156 PRINT_ERR(data->chan.doi_level.reg_bits.SAFE_DAMAGE_F1); in gpio_max14906_diag_chan_get()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max31855/
Dmax31855.c36 static int max31855_sample_fetch(const struct device *dev, enum sensor_channel chan) in max31855_sample_fetch() argument
42 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in max31855_sample_fetch()
59 static int max31855_channel_get(const struct device *dev, enum sensor_channel chan, in max31855_channel_get() argument
69 switch (chan) { in max31855_channel_get()
/Zephyr-latest/drivers/sensor/ams/ams_iAQcore/
DiAQcore.c23 enum sensor_channel chan) in iaqcore_sample_fetch() argument
31 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in iaqcore_sample_fetch()
71 enum sensor_channel chan, in iaqcore_channel_get() argument
76 switch (chan) { in iaqcore_channel_get()
/Zephyr-latest/drivers/sensor/sensirion/scd4x/
Dscd4x.c571 static int scd4x_sample_fetch(const struct device *dev, enum sensor_channel chan) in scd4x_sample_fetch() argument
577 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP && in scd4x_sample_fetch()
578 chan != SENSOR_CHAN_HUMIDITY && chan != SENSOR_CHAN_CO2) { in scd4x_sample_fetch()
589 if (chan == SENSOR_CHAN_HUMIDITY || chan == SENSOR_CHAN_AMBIENT_TEMP) { in scd4x_sample_fetch()
629 static int scd4x_channel_get(const struct device *dev, enum sensor_channel chan, in scd4x_channel_get() argument
635 switch ((enum sensor_channel)chan) { in scd4x_channel_get()
658 int scd4x_attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr, in scd4x_attr_set() argument
664 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP && in scd4x_attr_set()
665 chan != SENSOR_CHAN_HUMIDITY && chan != SENSOR_CHAN_CO2) { in scd4x_attr_set()
764 static int scd4x_attr_get(const struct device *dev, enum sensor_channel chan, in scd4x_attr_get() argument
[all …]
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c65 enum sensor_channel chan) in opt3001_sample_fetch() argument
70 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT); in opt3001_sample_fetch()
84 enum sensor_channel chan, in opt3001_channel_get() argument
90 if (chan != SENSOR_CHAN_LIGHT) { in opt3001_channel_get()
/Zephyr-latest/samples/subsys/zbus/remote_mock/src/
Dperipheral.c25 const struct zbus_channel *chan; in peripheral_thread() local
28 while (!zbus_sub_wait(&peripheral_sub, &chan, K_FOREVER)) { in peripheral_thread()
/Zephyr-latest/drivers/sensor/rohm/bh1750/
Dbh1750.c122 enum sensor_channel chan) in bh1750_sample_fetch() argument
131 if (chan != SENSOR_CHAN_ALL && in bh1750_sample_fetch()
132 chan != SENSOR_CHAN_LIGHT) { in bh1750_sample_fetch()
162 enum sensor_channel chan, in bh1750_channel_get() argument
169 if (chan != SENSOR_CHAN_ALL && in bh1750_channel_get()
170 chan != SENSOR_CHAN_LIGHT) { in bh1750_channel_get()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/frag/src/
Dbroadcaster.c27 static int send_data(struct bt_iso_chan *chan, bool ts) in send_data() argument
59 static void iso_connected_cb(struct bt_iso_chan *chan) in iso_connected_cb() argument
61 LOG_INF("ISO Channel %p connected", chan); in iso_connected_cb()
66 static void iso_disconnected_cb(struct bt_iso_chan *chan, uint8_t reason) in iso_disconnected_cb() argument
68 LOG_INF("ISO Channel %p disconnected (reason 0x%02x)", chan, reason); in iso_disconnected_cb()
73 static void sdu_sent_cb(struct bt_iso_chan *chan) in sdu_sent_cb() argument

12345678910>>...22