/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.c | 167 enum sensor_channel chan, in lis2du12_accel_config() argument 185 enum sensor_channel chan, in lis2du12_attr_set() argument 189 switch (chan) { in lis2du12_attr_set() 191 return lis2du12_accel_config(dev, chan, attr, val); in lis2du12_attr_set() 193 LOG_WRN("attribute %d not supported on this channel.", chan); in lis2du12_attr_set() 222 enum sensor_channel chan) in lis2du12_sample_fetch() argument 224 switch (chan) { in lis2du12_sample_fetch() 251 static inline int lis2du12_accel_get_channel(enum sensor_channel chan, in lis2du12_accel_get_channel() argument 258 switch (chan) { in lis2du12_accel_get_channel() 280 static int lis2du12_accel_channel_get(enum sensor_channel chan, in lis2du12_accel_channel_get() argument [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | iso.c | 51 #define iso_chan(_iso) ((_iso)->iso.chan); 100 struct bt_iso_chan *chan = iso->iso.chan; in bt_iso_sent_cb() local 103 __ASSERT(chan != NULL, "NULL chan for iso %p", iso); in bt_iso_sent_cb() 105 ops = chan->ops; in bt_iso_sent_cb() 108 ops->sent(chan); in bt_iso_sent_cb() 242 static void bt_iso_chan_add(struct bt_conn *iso, struct bt_iso_chan *chan) in bt_iso_chan_add() argument 245 chan->iso = iso; in bt_iso_chan_add() 246 iso->iso.chan = chan; in bt_iso_chan_add() 249 LOG_DBG("iso %p chan %p", iso, chan); in bt_iso_chan_add() 252 static int bt_iso_setup_data_path(struct bt_iso_chan *chan) in bt_iso_setup_data_path() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl.c | 221 enum sensor_channel chan, in lsm6dsl_accel_config() argument 284 enum sensor_channel chan, in lsm6dsl_gyro_config() argument 306 enum sensor_channel chan, in lsm6dsl_attr_set() argument 310 switch (chan) { in lsm6dsl_attr_set() 312 return lsm6dsl_accel_config(dev, chan, attr, val); in lsm6dsl_attr_set() 314 return lsm6dsl_gyro_config(dev, chan, attr, val); in lsm6dsl_attr_set() 427 enum sensor_channel chan) in lsm6dsl_sample_fetch() argument 429 switch (chan) { in lsm6dsl_sample_fetch() 483 static inline int lsm6dsl_accel_get_channel(enum sensor_channel chan, in lsm6dsl_accel_get_channel() argument 488 switch (chan) { in lsm6dsl_accel_get_channel() [all …]
|
/Zephyr-latest/drivers/sensor/maxim/max44009/ |
D | max44009.c | 73 enum sensor_channel chan, in max44009_attr_set() argument 80 if (chan != SENSOR_CHAN_LIGHT) { in max44009_attr_set() 115 enum sensor_channel chan) in max44009_sample_fetch() argument 120 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT); in max44009_sample_fetch() 141 enum sensor_channel chan, in max44009_channel_get() argument 147 if (chan != SENSOR_CHAN_LIGHT) { in max44009_channel_get()
|
/Zephyr-latest/drivers/sensor/microchip/tcn75a/ |
D | tcn75a_trigger.c | 23 if ((trig->chan != SENSOR_CHAN_ALL) && (trig->chan != SENSOR_CHAN_AMBIENT_TEMP)) { in tcn75a_trigger_set() 47 int tcn75a_attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr, in tcn75a_attr_set() argument 53 if ((chan != SENSOR_CHAN_AMBIENT_TEMP) && (chan != SENSOR_CHAN_ALL)) { in tcn75a_attr_set() 78 int tcn75a_attr_get(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr, in tcn75a_attr_get() argument 87 if ((chan != SENSOR_CHAN_AMBIENT_TEMP) && (chan != SENSOR_CHAN_ALL)) { in tcn75a_attr_get()
|
/Zephyr-latest/drivers/sensor/nxp/nxp_kinetis_temp/ |
D | temp_kinetis.c | 43 enum sensor_channel chan) in temp_kinetis_sample_fetch() argument 54 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP && in temp_kinetis_sample_fetch() 55 chan != SENSOR_CHAN_VOLTAGE) { in temp_kinetis_sample_fetch() 87 enum sensor_channel chan, in temp_kinetis_channel_get() argument 99 if (chan != SENSOR_CHAN_VOLTAGE && chan != SENSOR_CHAN_DIE_TEMP) { in temp_kinetis_channel_get() 106 if (chan == SENSOR_CHAN_VOLTAGE) { in temp_kinetis_channel_get()
|
/Zephyr-latest/drivers/sensor/sensirion/sht4x/ |
D | sht4x.c | 94 enum sensor_channel chan) in sht4x_sample_fetch() argument 100 if (chan != SENSOR_CHAN_ALL && in sht4x_sample_fetch() 101 chan != SENSOR_CHAN_AMBIENT_TEMP && in sht4x_sample_fetch() 102 chan != SENSOR_CHAN_HUMIDITY) { in sht4x_sample_fetch() 124 enum sensor_channel chan, in sht4x_channel_get() argument 133 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in sht4x_channel_get() 139 } else if (chan == SENSOR_CHAN_HUMIDITY) { in sht4x_channel_get() 153 enum sensor_channel chan, in sht4x_attr_set() argument
|
/Zephyr-latest/drivers/sensor/amd_sb_tsi/ |
D | sb_tsi.c | 29 enum sensor_channel chan) in sb_tsi_sample_fetch() argument 41 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP) { in sb_tsi_sample_fetch() 63 enum sensor_channel chan, in sb_tsi_channel_get() argument 68 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in sb_tsi_channel_get()
|
/Zephyr-latest/tests/subsys/zbus/user_data/src/ |
D | main.c | 52 static void urgent_callback(const struct zbus_channel *chan) in urgent_callback() argument 54 if (chan == &(regular_chan)) { in urgent_callback() 67 struct zbus_channel *chan = NULL; in foo_subscriber_thread() local 70 if (!k_msgq_get(foo_subscriber.queue, &chan, K_FOREVER)) { in foo_subscriber_thread() 71 if (chan == &(regular_chan)) { in foo_subscriber_thread()
|
/Zephyr-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670.c | 585 static int icm42670_channel_get(const struct device *dev, enum sensor_channel chan, in icm42670_channel_get() argument 596 if (chan == SENSOR_CHAN_ACCEL_XYZ) { in icm42670_channel_get() 600 } else if (chan == SENSOR_CHAN_ACCEL_X) { in icm42670_channel_get() 602 } else if (chan == SENSOR_CHAN_ACCEL_Y) { in icm42670_channel_get() 604 } else if (chan == SENSOR_CHAN_ACCEL_Z) { in icm42670_channel_get() 606 } else if (chan == SENSOR_CHAN_GYRO_XYZ) { in icm42670_channel_get() 610 } else if (chan == SENSOR_CHAN_GYRO_X) { in icm42670_channel_get() 612 } else if (chan == SENSOR_CHAN_GYRO_Y) { in icm42670_channel_get() 614 } else if (chan == SENSOR_CHAN_GYRO_Z) { in icm42670_channel_get() 616 } else if (chan == SENSOR_CHAN_DIE_TEMP) { in icm42670_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm9ds1/ |
D | lsm9ds1.c | 318 static int lsm9ds1_accel_config(const struct device *dev, enum sensor_channel chan, in lsm9ds1_accel_config() argument 334 static int lsm9ds1_gyro_config(const struct device *dev, enum sensor_channel chan, in lsm9ds1_gyro_config() argument 350 static int lsm9ds1_attr_set(const struct device *dev, enum sensor_channel chan, in lsm9ds1_attr_set() argument 353 switch (chan) { in lsm9ds1_attr_set() 355 return lsm9ds1_accel_config(dev, chan, attr, val); in lsm9ds1_attr_set() 357 return lsm9ds1_gyro_config(dev, chan, attr, val); in lsm9ds1_attr_set() 414 static int lsm9ds1_sample_fetch(const struct device *dev, enum sensor_channel chan) in lsm9ds1_sample_fetch() argument 416 switch (chan) { in lsm9ds1_sample_fetch() 449 static inline int lsm9ds1_accel_get_channel(enum sensor_channel chan, struct sensor_value *val, in lsm9ds1_accel_get_channel() argument 454 switch (chan) { in lsm9ds1_accel_get_channel() [all …]
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.c | 206 enum sensor_channel chan, in ism330dhcx_accel_config() argument 260 enum sensor_channel chan, in ism330dhcx_gyro_config() argument 278 enum sensor_channel chan, in ism330dhcx_attr_set() argument 282 switch (chan) { in ism330dhcx_attr_set() 284 return ism330dhcx_accel_config(dev, chan, attr, val); in ism330dhcx_attr_set() 286 return ism330dhcx_gyro_config(dev, chan, attr, val); in ism330dhcx_attr_set() 291 return ism330dhcx_shub_config(dev, chan, attr, val); in ism330dhcx_attr_set() 365 enum sensor_channel chan) in ism330dhcx_sample_fetch() argument 367 switch (chan) { in ism330dhcx_sample_fetch() 411 static inline int ism330dhcx_accel_get_channel(const struct device *dev, enum sensor_channel chan, in ism330dhcx_accel_get_channel() argument [all …]
|
/Zephyr-latest/drivers/sensor/nct75/ |
D | nct75.c | 35 static int nct75_sample_fetch(const struct device *dev, enum sensor_channel chan) in nct75_sample_fetch() argument 44 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in nct75_sample_fetch() 68 static int nct75_channel_get(const struct device *dev, enum sensor_channel chan, in nct75_channel_get() argument 73 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in nct75_channel_get() 74 LOG_ERR("%s: requesting unsupported channel %i", dev->name, chan); in nct75_channel_get()
|
/Zephyr-latest/drivers/sensor/nxp/nxp_tempmon/ |
D | nxp_tempmon.c | 34 static int nxp_tempmon_sample_fetch(const struct device *dev, enum sensor_channel chan) in nxp_tempmon_sample_fetch() argument 39 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP) { in nxp_tempmon_sample_fetch() 58 static int nxp_tempmon_channel_get(const struct device *dev, enum sensor_channel chan, in nxp_tempmon_channel_get() argument 64 if (chan != SENSOR_CHAN_DIE_TEMP) { in nxp_tempmon_channel_get()
|
/Zephyr-latest/drivers/sensor/jedec/jc42/ |
D | jc42.c | 64 static int jc42_sample_fetch(const struct device *dev, enum sensor_channel chan) in jc42_sample_fetch() argument 68 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_AMBIENT_TEMP); in jc42_sample_fetch() 73 static int jc42_channel_get(const struct device *dev, enum sensor_channel chan, in jc42_channel_get() argument 79 __ASSERT_NO_MSG(chan == SENSOR_CHAN_AMBIENT_TEMP); in jc42_channel_get() 81 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in jc42_channel_get()
|
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/ |
D | hmc5883l.c | 30 enum sensor_channel chan, in hmc5883l_channel_get() argument 35 if (chan == SENSOR_CHAN_MAGN_X) { in hmc5883l_channel_get() 38 } else if (chan == SENSOR_CHAN_MAGN_Y) { in hmc5883l_channel_get() 41 } else if (chan == SENSOR_CHAN_MAGN_Z) { in hmc5883l_channel_get() 44 } else if (chan == SENSOR_CHAN_MAGN_XYZ) { in hmc5883l_channel_get() 59 enum sensor_channel chan) in hmc5883l_sample_fetch() argument 65 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in hmc5883l_sample_fetch()
|
/Zephyr-latest/drivers/sensor/veaa_x_3/ |
D | veaa_x_3.c | 44 static int veaa_x_3_attr_set(const struct device *dev, enum sensor_channel chan, in veaa_x_3_attr_set() argument 50 if (chan != SENSOR_CHAN_PRESS) { in veaa_x_3_attr_set() 75 static int veaa_x_3_attr_get(const struct device *dev, enum sensor_channel chan, in veaa_x_3_attr_get() argument 80 if (chan != SENSOR_CHAN_PRESS) { in veaa_x_3_attr_get() 94 static int veaa_x_3_sample_fetch(const struct device *dev, enum sensor_channel chan) in veaa_x_3_sample_fetch() argument 104 if (chan != SENSOR_CHAN_PRESS && chan != SENSOR_CHAN_ALL) { in veaa_x_3_sample_fetch() 125 static int veaa_x_3_channel_get(const struct device *dev, enum sensor_channel chan, in veaa_x_3_channel_get() argument 132 if (chan != SENSOR_CHAN_PRESS) { in veaa_x_3_channel_get()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/userdata/src/ |
D | main_l2cap_userdata.c | 42 struct net_buf *alloc_buf_cb(struct bt_l2cap_chan *chan) in alloc_buf_cb() argument 47 static int chan_recv_cb(struct bt_l2cap_chan *chan, struct net_buf *buf) in chan_recv_cb() argument 49 ARG_UNUSED(chan); in chan_recv_cb() 57 void sent_cb(struct bt_l2cap_chan *chan) in sent_cb() argument 75 channel.chan.ops = &l2cap_ops; in accept() 76 *l2cap_chan = &channel.chan; in accept() 90 struct bt_l2cap_chan *chans[] = {&channel.chan, NULL}; in connect_l2cap_channel() 93 channel.chan.ops = &l2cap_ops; in connect_l2cap_channel() 259 err = bt_l2cap_chan_send(&channel.chan, buf); in test_central_main()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | iso.h | 685 void (*connected)(struct bt_iso_chan *chan); 697 void (*disconnected)(struct bt_iso_chan *chan, uint8_t reason); 709 struct net_buf *(*alloc_buf)(struct bt_iso_chan *chan); 721 void (*recv)(struct bt_iso_chan *chan, const struct bt_iso_recv_info *info, 734 void (*sent)(struct bt_iso_chan *chan); 778 int (*accept)(const struct bt_iso_accept_info *info, struct bt_iso_chan **chan); 912 int bt_iso_chan_disconnect(struct bt_iso_chan *chan); 933 int bt_iso_chan_send(struct bt_iso_chan *chan, struct net_buf *buf, uint16_t seq_num); 957 int bt_iso_chan_send_ts(struct bt_iso_chan *chan, struct net_buf *buf, uint16_t seq_num, 1113 int bt_iso_chan_get_info(const struct bt_iso_chan *chan, struct bt_iso_info *info); [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2mdl/ |
D | lis2mdl.c | 67 enum sensor_channel chan, in lis2mdl_set_hard_iron() argument 84 enum sensor_channel chan, in lis2mdl_channel_get_mag() argument 93 switch (chan) { in lis2mdl_channel_get_mag() 128 enum sensor_channel chan, in lis2mdl_channel_get() argument 131 switch (chan) { in lis2mdl_channel_get() 136 lis2mdl_channel_get_mag(dev, chan, val); in lis2mdl_channel_get() 149 static int lis2mdl_config(const struct device *dev, enum sensor_channel chan, in lis2mdl_config() argument 159 return lis2mdl_set_hard_iron(dev, chan, val); in lis2mdl_config() 169 enum sensor_channel chan, in lis2mdl_attr_set() argument 173 switch (chan) { in lis2mdl_attr_set() [all …]
|
/Zephyr-latest/drivers/sensor/ams/tsl2540/ |
D | tsl2540.c | 27 static int tsl2540_sample_fetch(const struct device *dev, enum sensor_channel chan) in tsl2540_sample_fetch() argument 33 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT || in tsl2540_sample_fetch() 34 chan == SENSOR_CHAN_IR); in tsl2540_sample_fetch() 37 if (chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT) { in tsl2540_sample_fetch() 51 if (chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_IR) { in tsl2540_sample_fetch() 70 static int tsl2540_channel_get(const struct device *dev, enum sensor_channel chan, in tsl2540_channel_get() argument 85 switch (chan) { in tsl2540_channel_get() 150 static int tsl2540_attr_set(const struct device *dev, enum sensor_channel chan, in tsl2540_attr_set() argument 159 if ((chan != SENSOR_CHAN_IR) & (chan != SENSOR_CHAN_LIGHT)) { in tsl2540_attr_set() 173 if (chan == SENSOR_CHAN_LIGHT) { in tsl2540_attr_set()
|
/Zephyr-latest/drivers/sensor/nordic/temp/ |
D | temp_nrfs.c | 107 if (trig->chan != SENSOR_CHAN_ALL && in api_sensor_trigger_set() 108 trig->chan != SENSOR_CHAN_DIE_TEMP) { in api_sensor_trigger_set() 147 enum sensor_channel chan, in api_sensor_attr_set() argument 153 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP) { in api_sensor_attr_set() 209 enum sensor_channel chan) in api_sample_fetch() argument 215 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_DIE_TEMP) { in api_sample_fetch() 241 enum sensor_channel chan, in api_channel_get() argument 246 if (chan != SENSOR_CHAN_DIE_TEMP) { in api_channel_get()
|
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/src/ |
D | main.c | 71 struct bt_iso_chan chan; member 194 static void iso_send(struct bt_iso_chan *chan) in iso_send() argument 201 chan_work = CONTAINER_OF(chan, struct iso_chan_work, chan); in iso_send() 220 ret = bt_iso_chan_send(chan, buf, chan_work->seq_num++); in iso_send() 237 struct bt_iso_chan *chan; in iso_timer_timeout() local 242 chan = &chan_work->chan; in iso_timer_timeout() 244 iso_send(chan); in iso_timer_timeout() 247 static void iso_sent(struct bt_iso_chan *chan) in iso_sent() argument 251 chan_work = CONTAINER_OF(chan, struct iso_chan_work, chan); in iso_sent() 256 static void iso_recv(struct bt_iso_chan *chan, in iso_recv() argument [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmg160/ |
D | bmg160.c | 132 static int bmg160_attr_set(const struct device *dev, enum sensor_channel chan, in bmg160_attr_set() argument 143 if (chan != SENSOR_CHAN_GYRO_XYZ) { in bmg160_attr_set() 200 enum sensor_channel chan) in bmg160_sample_fetch() argument 227 enum sensor_channel chan, int16_t raw, in bmg160_to_fixed_point() argument 230 if (chan == SENSOR_CHAN_DIE_TEMP) { in bmg160_to_fixed_point() 242 enum sensor_channel chan, in bmg160_channel_get() argument 249 switch (chan) { in bmg160_channel_get() 253 raw_val = bmg160->raw_gyro_xyz[chan - SENSOR_CHAN_GYRO_X]; in bmg160_channel_get() 254 bmg160_to_fixed_point(bmg160, chan, raw_val, val); in bmg160_channel_get() 261 bmg160_to_fixed_point(bmg160, chan, raw_val, val); in bmg160_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/ltrf216a/ |
D | ltrf216a.c | 78 static int ltrf216a_sample_fetch(const struct device *dev, enum sensor_channel chan) in ltrf216a_sample_fetch() argument 86 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT); in ltrf216a_sample_fetch() 115 static int ltrf216a_channel_get(const struct device *dev, enum sensor_channel chan, in ltrf216a_channel_get() argument 120 if (chan != SENSOR_CHAN_LIGHT) { in ltrf216a_channel_get()
|