/Zephyr-latest/drivers/sensor/maxim/max31875/ |
D | max31875.c | 121 enum sensor_channel chan, in max31875_attr_set() argument 129 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in max31875_attr_set() 194 enum sensor_channel chan) in max31875_sample_fetch() argument 201 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP) { in max31875_sample_fetch() 223 enum sensor_channel chan, in max31875_channel_get() argument 229 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in max31875_channel_get()
|
/Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/ |
D | phy_3d_sensor.c | 128 enum sensor_channel chan, in phy_3d_sensor_attr_set_hyst() argument 133 if (chan == SENSOR_CHAN_ACCEL_XYZ || chan == SENSOR_CHAN_GYRO_XYZ) { in phy_3d_sensor_attr_set_hyst() 134 return sensor_attr_set(cfg->hw_dev, chan, SENSOR_ATTR_SLOPE_TH, val); in phy_3d_sensor_attr_set_hyst() 136 return sensor_attr_set(cfg->hw_dev, chan, SENSOR_ATTR_HYSTERESIS, val); in phy_3d_sensor_attr_set_hyst() 141 enum sensor_channel chan, in phy_3d_sensor_attr_set() argument 150 ret = phy_3d_sensor_attr_set_hyst(dev, chan, val); in phy_3d_sensor_attr_set() 154 ret = sensor_attr_set(cfg->hw_dev, chan, attr, val); in phy_3d_sensor_attr_set()
|
/Zephyr-latest/drivers/sensor/mhz19b/ |
D | mhz19b.c | 152 static int mhz19b_channel_get(const struct device *dev, enum sensor_channel chan, in mhz19b_channel_get() argument 157 if (chan != SENSOR_CHAN_CO2) { in mhz19b_channel_get() 195 static int mhz19b_attr_set(const struct device *dev, enum sensor_channel chan, in mhz19b_attr_set() argument 198 if (chan != SENSOR_CHAN_CO2) { in mhz19b_attr_set() 214 static int mhz19b_attr_get(const struct device *dev, enum sensor_channel chan, in mhz19b_attr_get() argument 220 if (chan != SENSOR_CHAN_CO2) { in mhz19b_attr_get() 241 static int mhz19b_sample_fetch(const struct device *dev, enum sensor_channel chan) in mhz19b_sample_fetch() argument 243 if (chan == SENSOR_CHAN_CO2 || chan == SENSOR_CHAN_ALL) { in mhz19b_sample_fetch()
|
/Zephyr-latest/drivers/sensor/lm77/ |
D | lm77.c | 127 static int lm77_attr_set(const struct device *dev, enum sensor_channel chan, in lm77_attr_set() argument 136 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in lm77_attr_set() 168 static int lm77_attr_get(const struct device *dev, enum sensor_channel chan, in lm77_attr_get() argument 177 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in lm77_attr_get() 220 if (trig->type != SENSOR_TRIG_THRESHOLD || trig->chan != SENSOR_CHAN_AMBIENT_TEMP || in lm77_trigger_set() 266 static int lm77_sample_fetch(const struct device *dev, enum sensor_channel chan) in lm77_sample_fetch() argument 272 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_AMBIENT_TEMP) { in lm77_sample_fetch() 287 static int lm77_channel_get(const struct device *dev, enum sensor_channel chan, in lm77_channel_get() argument 292 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in lm77_channel_get()
|
/Zephyr-latest/drivers/sensor/st/iis2dlpc/ |
D | iis2dlpc.c | 93 enum sensor_channel chan, in iis2dlpc_channel_get_acc() argument 101 switch (chan) { in iis2dlpc_channel_get_acc() 122 enum sensor_channel chan, in iis2dlpc_channel_get() argument 125 switch (chan) { in iis2dlpc_channel_get() 130 iis2dlpc_channel_get_acc(dev, chan, val); in iis2dlpc_channel_get() 181 enum sensor_channel chan, in iis2dlpc_dev_config() argument 206 enum sensor_channel chan, in iis2dlpc_attr_set() argument 210 switch (chan) { in iis2dlpc_attr_set() 215 return iis2dlpc_dev_config(dev, chan, attr, val); in iis2dlpc_attr_set() 217 LOG_DBG("Attr not supported on %d channel", chan); in iis2dlpc_attr_set() [all …]
|
/Zephyr-latest/drivers/sensor/espressif/pcnt_esp32/ |
D | pcnt_esp32.c | 81 static int pcnt_esp32_sample_fetch(const struct device *dev, enum sensor_channel chan) in pcnt_esp32_sample_fetch() argument 86 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_ROTATION) { in pcnt_esp32_sample_fetch() 103 static int pcnt_esp32_channel_get(const struct device *dev, enum sensor_channel chan, in pcnt_esp32_channel_get() argument 112 if (chan == SENSOR_CHAN_ROTATION) { in pcnt_esp32_channel_get() 230 static int pcnt_esp32_attr_set(const struct device *dev, enum sensor_channel chan, in pcnt_esp32_attr_set() argument 233 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_ROTATION) { in pcnt_esp32_attr_set() 250 static int pcnt_esp32_attr_get(const struct device *dev, enum sensor_channel chan, in pcnt_esp32_attr_get() argument 255 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_ROTATION) { in pcnt_esp32_attr_get() 333 if ((trig->chan != SENSOR_CHAN_ALL) && (trig->chan != SENSOR_CHAN_ROTATION)) { in pcnt_esp32_trigger_set()
|
/Zephyr-latest/tests/bluetooth/audio/ascs/src/ |
D | test_ase_state_transition.c | 326 struct bt_iso_chan *chan; in ZTEST_F() local 330 test_preamble_state_streaming(conn, ase_id, stream, &chan, false); in ZTEST_F() 335 mock_bt_iso_disconnected(chan, BT_HCI_ERR_REMOTE_USER_TERM_CONN); in ZTEST_F() 350 struct bt_iso_chan *chan; in ZTEST_F() local 354 test_preamble_state_streaming(conn, ase_id, stream, &chan, false); in ZTEST_F() 369 struct bt_iso_chan *chan; in ZTEST_F() local 373 test_preamble_state_streaming(conn, ase_id, stream, &chan, false); in ZTEST_F() 554 struct bt_iso_chan *chan; in ZTEST_F() local 561 err = mock_bt_iso_accept(conn, 0x01, 0x01, &chan); in ZTEST_F() 583 struct bt_iso_chan *chan; in ZTEST_F() local [all …]
|
/Zephyr-latest/drivers/sensor/ene_tach_kb1200/ |
D | tach_ene_kb1200.c | 59 int tach_kb1200_sample_fetch(const struct device *dev, enum sensor_channel chan) in tach_kb1200_sample_fetch() argument 61 ARG_UNUSED(chan); in tach_kb1200_sample_fetch() 83 static int tach_kb1200_channel_get(const struct device *dev, enum sensor_channel chan, in tach_kb1200_channel_get() argument 89 if (chan != SENSOR_CHAN_RPM) { in tach_kb1200_channel_get()
|
/Zephyr-latest/drivers/sensor/current_amp/ |
D | current_amp.c | 24 static int fetch(const struct device *dev, enum sensor_channel chan) in fetch() argument 30 if ((chan != SENSOR_CHAN_CURRENT) && (chan != SENSOR_CHAN_ALL)) { in fetch() 42 static int get(const struct device *dev, enum sensor_channel chan, struct sensor_value *val) in get() argument 52 if (chan != SENSOR_CHAN_CURRENT) { in get()
|
/Zephyr-latest/drivers/sensor/st/lps25hb/ |
D | lps25hb.c | 42 enum sensor_channel chan) in lps25hb_sample_fetch() argument 49 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in lps25hb_sample_fetch() 94 enum sensor_channel chan, in lps25hb_channel_get() argument 99 if (chan == SENSOR_CHAN_PRESS) { in lps25hb_channel_get() 101 } else if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in lps25hb_channel_get()
|
/Zephyr-latest/drivers/sensor/st/qdec_stm32/ |
D | qdec_stm32.c | 44 static int qdec_stm32_fetch(const struct device *dev, enum sensor_channel chan) in qdec_stm32_fetch() argument 50 if ((chan != SENSOR_CHAN_ALL) && (chan != SENSOR_CHAN_ROTATION)) { in qdec_stm32_fetch() 64 static int qdec_stm32_get(const struct device *dev, enum sensor_channel chan, in qdec_stm32_get() argument 69 if (chan == SENSOR_CHAN_ROTATION) { in qdec_stm32_get()
|
/Zephyr-latest/drivers/sensor/st/stm32_vbat/ |
D | stm32_vbat.c | 37 static int stm32_vbat_sample_fetch(const struct device *dev, enum sensor_channel chan) in stm32_vbat_sample_fetch() argument 44 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_VOLTAGE) { in stm32_vbat_sample_fetch() 78 static int stm32_vbat_channel_get(const struct device *dev, enum sensor_channel chan, in stm32_vbat_channel_get() argument 85 if (chan != SENSOR_CHAN_VOLTAGE) { in stm32_vbat_channel_get()
|
/Zephyr-latest/drivers/sensor/st/stm32_vref/ |
D | stm32_vref.c | 37 static int stm32_vref_sample_fetch(const struct device *dev, enum sensor_channel chan) in stm32_vref_sample_fetch() argument 44 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_VOLTAGE) { in stm32_vref_sample_fetch() 82 static int stm32_vref_channel_get(const struct device *dev, enum sensor_channel chan, in stm32_vref_channel_get() argument 89 if (chan != SENSOR_CHAN_VOLTAGE) { in stm32_vref_channel_get()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ll_test.h | 7 uint8_t ll_test_tx(uint8_t chan, uint8_t len, uint8_t type, uint8_t phy, 10 uint8_t ll_test_rx(uint8_t chan, uint8_t phy, uint8_t mod_idx, uint8_t expected_cte_len,
|
/Zephyr-latest/tests/drivers/clock_control/nrf_clock_calibration/src/ |
D | mock_temp_nrf5.c | 23 enum sensor_channel chan) in mock_temp_nrf5_sample_fetch() argument 30 enum sensor_channel chan, in mock_temp_nrf5_channel_get() argument
|
/Zephyr-latest/drivers/sensor/explorir_m/ |
D | explorir_m.c | 265 static int explorir_m_attr_get(const struct device *dev, enum sensor_channel chan, in explorir_m_attr_get() argument 268 if (chan != SENSOR_CHAN_CO2) { in explorir_m_attr_get() 281 static int explorir_m_attr_set(const struct device *dev, enum sensor_channel chan, in explorir_m_attr_set() argument 284 if (chan != SENSOR_CHAN_CO2) { in explorir_m_attr_set() 301 static int explorir_m_sample_fetch(const struct device *dev, enum sensor_channel chan) in explorir_m_sample_fetch() argument 303 if (chan != SENSOR_CHAN_CO2 && chan != SENSOR_CHAN_ALL) { in explorir_m_sample_fetch() 311 static int explorir_m_channel_get(const struct device *dev, enum sensor_channel chan, in explorir_m_channel_get() argument 316 if (chan != SENSOR_CHAN_CO2) { in explorir_m_channel_get()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688.c | 42 int icm42688_channel_parse_readings(enum sensor_channel chan, int16_t readings[7], in icm42688_channel_parse_readings() argument 45 switch (chan) { in icm42688_channel_parse_readings() 84 static int icm42688_channel_get(const struct device *dev, enum sensor_channel chan, in icm42688_channel_get() argument 89 return icm42688_channel_parse_readings(chan, data->readings, &data->cfg, val); in icm42688_channel_get() 92 static int icm42688_sample_fetch(const struct device *dev, enum sensor_channel chan) in icm42688_sample_fetch() argument 123 static int icm42688_attr_set(const struct device *dev, enum sensor_channel chan, in icm42688_attr_set() argument 132 switch (chan) { in icm42688_attr_set() 182 static int icm42688_attr_get(const struct device *dev, enum sensor_channel chan, in icm42688_attr_get() argument 191 switch (chan) { in icm42688_attr_get()
|
/Zephyr-latest/drivers/sensor/ti/tmp116/ |
D | tmp116.c | 184 enum sensor_channel chan) in tmp116_sample_fetch() argument 191 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || in tmp116_sample_fetch() 192 chan == SENSOR_CHAN_AMBIENT_TEMP); in tmp116_sample_fetch() 225 enum sensor_channel chan, in tmp116_channel_get() argument 231 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp116_channel_get() 274 enum sensor_channel chan, in tmp116_attr_set() argument 282 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp116_attr_set() 346 static int tmp116_attr_get(const struct device *dev, enum sensor_channel chan, in tmp116_attr_get() argument 352 if (chan != SENSOR_CHAN_AMBIENT_TEMP) { in tmp116_attr_get()
|
/Zephyr-latest/drivers/sensor/tdk/icp10125/ |
D | icp10125.c | 230 static int icp10125_sample_fetch(const struct device *dev, const enum sensor_channel chan) in icp10125_sample_fetch() argument 238 if (!(chan == SENSOR_CHAN_AMBIENT_TEMP || chan == SENSOR_CHAN_PRESS || in icp10125_sample_fetch() 239 chan == SENSOR_CHAN_ALL)) { in icp10125_sample_fetch() 243 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in icp10125_sample_fetch() 279 static int icp10125_channel_get(const struct device *dev, enum sensor_channel chan, in icp10125_channel_get() argument 284 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in icp10125_channel_get() 286 } else if (chan == SENSOR_CHAN_PRESS) { in icp10125_channel_get()
|
/Zephyr-latest/drivers/sensor/apds9960/ |
D | apds9960_trigger.c | 35 enum sensor_channel chan, in apds9960_attr_set() argument 41 if (chan == SENSOR_CHAN_PROX) { in apds9960_attr_set() 76 if (trig->chan == SENSOR_CHAN_PROX) { in apds9960_trigger_set()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_test.c | 160 static uint8_t init(uint8_t chan, uint8_t phy, void (*isr)(void *)) in init() argument 192 radio_freq_chan_set((chan << 1) + 2); in init() 200 uint8_t ll_test_tx(uint8_t chan, uint8_t len, uint8_t type, uint8_t phy, in ll_test_tx() argument 219 err = init(chan, phy, isr_tx); in ll_test_tx() 287 uint8_t ll_test_rx(uint8_t chan, uint8_t phy, uint8_t mod_idx, uint8_t expected_cte_len, in ll_test_rx() argument 303 err = init(chan, phy, isr_rx); in ll_test_rx()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | l2cap_internal.h | 157 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan); 175 void bt_l2cap_chan_add(struct bt_conn *conn, struct bt_l2cap_chan *chan, 179 void bt_l2cap_chan_remove(struct bt_conn *conn, struct bt_l2cap_chan *chan); 182 void bt_l2cap_chan_del(struct bt_l2cap_chan *chan); 187 void bt_l2cap_chan_set_state_debug(struct bt_l2cap_chan *chan, 193 void bt_l2cap_chan_set_state(struct bt_l2cap_chan *chan,
|
/Zephyr-latest/drivers/sensor/ti/ti_hdc/ |
D | ti_hdc.c | 36 enum sensor_channel chan) in ti_hdc_sample_fetch() argument 42 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL); in ti_hdc_sample_fetch() 74 enum sensor_channel chan, in ti_hdc_channel_get() argument 85 if (chan == SENSOR_CHAN_AMBIENT_TEMP) { in ti_hdc_channel_get() 90 } else if (chan == SENSOR_CHAN_HUMIDITY) { in ti_hdc_channel_get()
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh.c | 93 enum sensor_channel chan, in lis2dh_channel_get() argument 101 switch (chan) { in lis2dh_channel_get() 132 enum sensor_channel chan) in lis2dh_fetch_xyz() argument 164 enum sensor_channel chan) in lis2dh_sample_fetch() argument 168 if (chan == SENSOR_CHAN_ALL) { in lis2dh_sample_fetch() 169 status = lis2dh_fetch_xyz(dev, chan); in lis2dh_sample_fetch() 175 } else if (chan == SENSOR_CHAN_ACCEL_XYZ) { in lis2dh_sample_fetch() 176 status = lis2dh_fetch_xyz(dev, chan); in lis2dh_sample_fetch() 177 } else if (chan == SENSOR_CHAN_DIE_TEMP) { in lis2dh_sample_fetch() 275 enum sensor_channel chan, in lis2dh_acc_config() argument [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_nrfx_timer.c | 126 static void set_cc_int_pending(const struct device *dev, uint8_t chan) in set_cc_int_pending() argument 131 atomic_or(&data->cc_int_pending, BIT(chan)); in set_cc_int_pending() 145 uint8_t chan = ID_TO_CC(id); in set_cc() local 146 nrf_timer_event_t evt = nrf_timer_compare_event_get(chan); in set_cc() 155 nrf_timer_compare_int_get(chan)) == 0, in set_cc() 163 prev_val = nrf_timer_cc_get(reg, chan); in set_cc() 165 nrf_timer_cc_set(reg, chan, now); in set_cc() 187 nrf_timer_cc_set(reg, chan, val); in set_cc() 202 set_cc_int_pending(dev, chan); in set_cc() 207 nrf_timer_int_enable(reg, nrf_timer_compare_int_get(chan)); in set_cc() [all …]
|