Home
last modified time | relevance | path

Searched full:adc_sequence (Results 1 – 25 of 87) sorted by relevance

1234

/Zephyr-latest/drivers/adc/
Dadc_handlers.c26 static bool copy_sequence(struct adc_sequence *dst, in copy_sequence()
28 struct adc_sequence *src) in copy_sequence()
30 if (k_usermode_from_copy(dst, src, sizeof(struct adc_sequence)) != 0) { in copy_sequence()
31 printk("couldn't copy adc_sequence struct\n"); in copy_sequence()
52 const struct adc_sequence *user_sequence) in z_vrfy_adc_read()
55 struct adc_sequence sequence; in z_vrfy_adc_read()
60 (struct adc_sequence *)user_sequence), in z_vrfy_adc_read()
73 const struct adc_sequence *user_sequence, in z_vrfy_adc_read_async()
76 struct adc_sequence sequence; in z_vrfy_adc_read_async()
81 (struct adc_sequence *)user_sequence), in z_vrfy_adc_read_async()
Dadc_test.c26 const struct adc_sequence *sequence) in vnd_adc_read()
33 const struct adc_sequence *sequence, in vnd_adc_read_async()
Dadc_nrfx_saadc.c108 static uint32_t samples_to_bytes(const struct adc_sequence *sequence, uint16_t number_of_samples) in samples_to_bytes()
347 static int set_resolution(const struct adc_sequence *sequence) in set_resolution()
374 static int set_oversampling(const struct adc_sequence *sequence, in set_oversampling()
423 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size()
443 static bool has_single_ended(const struct adc_sequence *sequence) in has_single_ended()
448 static void correct_single_ended(const struct adc_sequence *sequence) in correct_single_ended()
469 const struct adc_sequence *sequence) in start_read()
588 const struct adc_sequence *sequence) in adc_nrfx_read()
602 const struct adc_sequence *sequence, in adc_nrfx_read_async()
Dadc_nrfx_adc.c133 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size()
153 const struct adc_sequence *sequence) in start_read()
228 const struct adc_sequence *sequence) in adc_nrfx_read()
242 const struct adc_sequence *sequence, in adc_nrfx_read_async()
Dadc_ads1119.c281 static int ads1119_validate_buffer_size(const struct adc_sequence *sequence) in ads1119_validate_buffer_size()
296 static int ads1119_validate_sequence(const struct device *dev, const struct adc_sequence *sequence) in ads1119_validate_sequence()
338 const struct adc_sequence *sequence, in ads1119_adc_start_read()
392 const struct adc_sequence *sequence, in ads1119_adc_read_async()
405 const struct adc_sequence *sequence) in ads1119_read()
418 const struct adc_sequence *sequence) in ads1119_read()
Dadc_max11102_17.c113 static int max11102_17_validate_buffer_size(const struct adc_sequence *sequence) in max11102_17_validate_buffer_size()
129 const struct adc_sequence *sequence) in max11102_17_validate_sequence()
190 static int max11102_17_adc_start_read(const struct device *dev, const struct adc_sequence *sequence, in max11102_17_adc_start_read()
274 static int max11102_17_adc_read_async(const struct device *dev, const struct adc_sequence *sequence, in max11102_17_adc_read_async()
287 static int max11102_17_read(const struct device *dev, const struct adc_sequence *sequence) in max11102_17_read()
300 static int max11102_17_read(const struct device *dev, const struct adc_sequence *sequence) in max11102_17_read()
Dadc_ad559x.c65 const struct adc_sequence *sequence) in adc_ad559x_validate_buffer_size()
80 static int adc_ad559x_start_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ad559x_start_read()
220 static int adc_ad559x_read_async(const struct device *dev, const struct adc_sequence *sequence, in adc_ad559x_read_async()
233 static int adc_ad559x_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ad559x_read()
Dadc_ene_kb1200.c37 static bool adc_kb1200_validate_buffer_size(const struct adc_sequence *sequence) in adc_kb1200_validate_buffer_size()
69 static int adc_kb1200_start_read(const struct device *dev, const struct adc_sequence *sequence) in adc_kb1200_start_read()
169 static int adc_kb1200_read(const struct device *dev, const struct adc_sequence *sequence) in adc_kb1200_read()
182 static int adc_kb1200_read_async(const struct device *dev, const struct adc_sequence *sequence, in adc_kb1200_read_async()
Dadc_ifx_cat1.c156 static int validate_buffer_size(const struct adc_sequence *sequence) in validate_buffer_size()
181 const struct adc_sequence *sequence) in start_read()
217 const struct adc_sequence *sequence) in ifx_cat1_adc_read()
230 const struct adc_sequence *sequence, in ifx_cat1_adc_read_async()
Dadc_b91.c47 static int adc_b91_validate_buffer_size(const struct adc_sequence *sequence) in adc_b91_validate_buffer_size()
63 static int adc_b91_validate_sequence(const struct adc_sequence *sequence) in adc_b91_validate_sequence()
175 static int adc_b91_adc_start_read(const struct device *dev, const struct adc_sequence *sequence) in adc_b91_adc_start_read()
415 const struct adc_sequence *sequence) in adc_b91_read()
430 const struct adc_sequence *sequence, in adc_b91_read_async()
Dadc_xmc4xxx.c87 static int adc_xmc4xxx_validate_buffer_size(const struct adc_sequence *sequence) in adc_xmc4xxx_validate_buffer_size()
112 const struct adc_sequence *sequence) in start_read()
164 const struct adc_sequence *sequence) in adc_xmc4xxx_read()
177 const struct adc_sequence *sequence, in adc_xmc4xxx_read_async()
Dadc_ambiq.c70 static int adc_ambiq_slot_config(const struct device *dev, const struct adc_sequence *sequence, in adc_ambiq_slot_config()
127 static int adc_ambiq_check_buffer_size(const struct adc_sequence *sequence, uint8_t active_channels) in adc_ambiq_check_buffer_size()
146 static int adc_ambiq_start_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ambiq_start_read()
198 static int adc_ambiq_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ambiq_read()
331 static int adc_ambiq_read_async(const struct device *dev, const struct adc_sequence *sequence, in adc_ambiq_read_async()
Diadc_gecko.c75 static int adc_gecko_check_buffer_size(const struct adc_sequence *sequence, in adc_gecko_check_buffer_size()
95 static int adc_gecko_check_resolution(const struct adc_sequence *sequence) in adc_gecko_check_resolution()
107 static int start_read(const struct device *dev, const struct adc_sequence *sequence) in start_read()
252 const struct adc_sequence *sequence) in adc_gecko_read()
266 const struct adc_sequence *sequence, in adc_gecko_read_async()
Dadc_ads7052.c68 const struct adc_sequence *sequence) in ads7052_validate_buffer_size()
110 static int ads7052_start_read(const struct device *dev, const struct adc_sequence *sequence) in ads7052_start_read()
142 static int adc_ads7052_read_async(const struct device *dev, const struct adc_sequence *sequence, in adc_ads7052_read_async()
155 static int adc_ads7052_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ads7052_read()
/Zephyr-latest/tests/drivers/adc/adc_error_cases/src/
Dadc_error_cases.c27 static const struct adc_sequence valid_seq = {
48 struct adc_sequence invalid_seq = valid_seq; in ZTEST()
74 struct adc_sequence invalid_seq = valid_seq; in ZTEST()
100 struct adc_sequence invalid_seq = valid_seq; in ZTEST()
126 struct adc_sequence invalid_seq = valid_seq; in ZTEST()
152 struct adc_sequence invalid_seq = valid_seq; in ZTEST()
/Zephyr-latest/drivers/sensor/st/stm32_vref/
Dstm32_vref.c26 struct adc_sequence adc_seq;
40 struct adc_sequence *sp = &data->adc_seq; in stm32_vref_sample_fetch()
110 * since the adc_sequence.resolution is 12 in stm32_vref_channel_get()
132 struct adc_sequence *asp = &data->adc_seq; in stm32_vref_init()
141 *asp = (struct adc_sequence){ in stm32_vref_init()
/Zephyr-latest/drivers/sensor/st/stm32_vbat/
Dstm32_vbat.c27 struct adc_sequence adc_seq;
40 struct adc_sequence *sp = &data->adc_seq; in stm32_vbat_sample_fetch()
103 struct adc_sequence *asp = &data->adc_seq; in stm32_vbat_init()
117 *asp = (struct adc_sequence){ in stm32_vbat_init()
/Zephyr-latest/tests/drivers/adc/adc_api/src/
Dtest_adc.c125 struct adc_sequence sequence = { in test_task_one_channel()
152 struct adc_sequence sequence = { in test_task_multiple_channels()
198 struct adc_sequence sequence = { in test_task_asynchronous_call()
239 const struct adc_sequence *sequence, in sample_with_interval_callback()
260 struct adc_sequence sequence = { in test_task_with_interval()
295 const struct adc_sequence *sequence, in repeated_samplings_callback()
337 struct adc_sequence sequence = { in test_task_repeated_samplings()
370 struct adc_sequence sequence = { in test_task_invalid_request()
/Zephyr-latest/include/zephyr/drivers/
Dadc.h112 * of the "adc_sequence" structure must be set to include this channel
528 /* Forward declaration of the adc_sequence structure. */
529 struct adc_sequence;
568 const struct adc_sequence *sequence,
608 struct adc_sequence { struct
686 const struct adc_sequence *sequence); argument
694 const struct adc_sequence *sequence,
772 const struct adc_sequence *sequence);
775 const struct adc_sequence *sequence) in z_impl_adc_read()
790 const struct adc_sequence *sequence) in adc_read_dt()
[all …]
/Zephyr-latest/samples/boards/nordic/battery/src/
Dbattery.c71 struct adc_sequence adc_seq;
88 struct adc_sequence *asp = &ddp->adc_seq; in divider_setup()
110 *asp = (struct adc_sequence){ in divider_setup()
178 struct adc_sequence *sp = &ddp->adc_seq; in battery_sample()
/Zephyr-latest/samples/boards/google/twinkie_v2/pda/src/
Dmeas.c28 struct adc_sequence sequence = { in meas_vbus_v()
61 struct adc_sequence sequence = { in meas_vbus_c()
/Zephyr-latest/drivers/usb_c/vbus/
Dusbc_vbus_adc_priv.h29 struct adc_sequence sequence;
/Zephyr-latest/samples/drivers/adc/adc_sequence/
Dsample.yaml4 sample.drivers.adc.adc_sequence:
DREADME.rst1 .. zephyr:code-sample:: adc_sequence
37 :zephyr-app: samples/drivers/adc/adc_sequence
/Zephyr-latest/tests/drivers/adc/adc_rescale/src/
Dmain.c66 struct adc_sequence sequence = { in test_task_voltage_divider()
106 struct adc_sequence sequence = { in test_task_current_sense_shunt()
146 struct adc_sequence sequence = { in test_task_current_sense_amplifier()

1234