/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/op_agg/ |
D | model_coex.sh | 8 # In this test scenario, the DUT has a sequence in progress on the Opcode 9 # Aggregator client model that is interrupted by an incoming sequence to the Opcode 11 # sequence on the DUT completes successfully. 15 # Both devices starts an Opcode aggregator sequence and populates the buffer. 16 # 2. The Tester device immediately starts sending the sequence. 17 # 3. The DUT device waits, and verifies that the sequence is correctly received. 18 # Then it starts sending its own aggregated sequence. 20 # own aggregated sequence from the DUT device, then it verifies that the 21 # aggregated sequence from the DUT device is correctly received. 23 # related to its own aggregated sequence from the cli device.
|
/Zephyr-latest/scripts/schemas/twister/ |
D | testsuite-schema.yaml | 26 sequence: 31 sequence: 36 sequence: 53 sequence: 58 sequence: 63 sequence: 68 sequence: 76 sequence: 84 sequence: 90 sequence: [all …]
|
D | quarantine-schema.yaml | 12 sequence: 20 sequence: 26 sequence: 32 sequence: 38 sequence:
|
D | test-config-schema.yaml | 20 sequence: 25 sequence: 38 sequence: 43 sequence:
|
/Zephyr-latest/drivers/adc/ |
D | adc_handlers.c | 55 struct adc_sequence sequence; in z_vrfy_adc_read() local 59 K_OOPS(K_SYSCALL_VERIFY_MSG(copy_sequence(&sequence, &options, in z_vrfy_adc_read() 61 "invalid ADC sequence")); in z_vrfy_adc_read() 62 if (sequence.options != NULL) { in z_vrfy_adc_read() 63 K_OOPS(K_SYSCALL_VERIFY_MSG(sequence.options->callback == NULL, in z_vrfy_adc_read() 64 "ADC sequence callbacks forbidden from user mode")); in z_vrfy_adc_read() 67 return z_impl_adc_read((const struct device *)dev, &sequence); in z_vrfy_adc_read() 76 struct adc_sequence sequence; in z_vrfy_adc_read_async() local 80 K_OOPS(K_SYSCALL_VERIFY_MSG(copy_sequence(&sequence, &options, in z_vrfy_adc_read_async() 82 "invalid ADC sequence")); in z_vrfy_adc_read_async() [all …]
|
D | adc_smartbond_sdadc.c | 37 /* Copy of channel mask from sequence */ 39 /* Number of bits in sequence channels */ 149 /* Extract lower channel from sequence mask */ in adc_context_start_sampling() 157 if (ctx->sequence.calibrate) { in adc_context_start_sampling() 164 val |= (ctx->sequence.oversampling - 7) << SDADC_SDADC_CTRL_REG_SDADC_OSR_Pos; in adc_context_start_sampling() 181 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 187 if (sequence->options) { in check_buffer_size() 188 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 191 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 193 sequence->buffer_size, needed_buffer_size); in check_buffer_size() [all …]
|
D | adc_nrfx_saadc.c | 108 static uint32_t samples_to_bytes(const struct adc_sequence *sequence, uint16_t number_of_samples) in samples_to_bytes() argument 110 if (NRF_SAADC_8BIT_SAMPLE_WIDTH == 8 && sequence->resolution == 8) { in samples_to_bytes() 270 * after ADC sequence ends. in adc_nrfx_channel_setup() 306 * in a sampling sequence. in adc_nrfx_channel_setup() 320 if (ctx->sequence.calibrate) { in adc_context_start_sampling() 337 samples_to_bytes(&ctx->sequence, nrfy_saadc_amount_get(NRF_SAADC)); in adc_context_update_buffer_pointer() 341 samples_to_bytes(&ctx->sequence, nrfy_saadc_amount_get(NRF_SAADC)); in adc_context_update_buffer_pointer() 347 static int set_resolution(const struct adc_sequence *sequence) in set_resolution() argument 351 switch (sequence->resolution) { in set_resolution() 366 sequence->resolution); in set_resolution() [all …]
|
D | adc_mcux_gau_adc.c | 190 const struct adc_sequence *sequence) in mcux_gau_adc_do_read() argument 198 if (sequence->channels & (0xFFFF << NUM_ADC_CHANNELS)) { in mcux_gau_adc_do_read() 199 LOG_ERR("Invalid channels selected for sequence"); in mcux_gau_adc_do_read() 205 num_channels += ((sequence->channels & (0x1 << i)) ? 1 : 0); in mcux_gau_adc_do_read() 209 if ((sequence->options != NULL && sequence->buffer_size < in mcux_gau_adc_do_read() 210 ((1 + sequence->options->extra_samplings) * num_channels)) || in mcux_gau_adc_do_read() 211 (sequence->options == NULL && sequence->buffer_size < num_channels)) { in mcux_gau_adc_do_read() 224 if (sequence->channels & (0x1 << channel)) { in mcux_gau_adc_do_read() 234 if (sequence->resolution == 12 || sequence->resolution == 11) { in mcux_gau_adc_do_read() 236 } else if (sequence->resolution == 14 || sequence->resolution == 13) { in mcux_gau_adc_do_read() [all …]
|
D | adc_smartbond_gpadc.c | 38 /* Copy of channel mask from sequence */ 40 /* Number of bits in sequence channels */ 148 /* Extract lower channel from sequence mask */ in adc_context_start_sampling() 151 if (ctx->sequence.calibrate) { in adc_context_start_sampling() 175 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 181 if (sequence->options) { in check_buffer_size() 182 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 185 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 187 sequence->buffer_size, needed_buffer_size); in check_buffer_size() 195 const struct adc_sequence *sequence) in start_read() argument [all …]
|
D | adc_renesas_ra.c | 148 * @brief Check if buffer in @p sequence is big enough to hold all ADC samples 151 * @param sequence ADC sequence description 156 static int adc_ra_check_buffer_size(const struct device *dev, const struct adc_sequence *sequence) in adc_ra_check_buffer_size() argument 164 if (mask & sequence->channels) { in adc_ra_check_buffer_size() 170 if (sequence->options) { in adc_ra_check_buffer_size() 171 needed *= (1 + sequence->options->extra_samplings); in adc_ra_check_buffer_size() 174 if (sequence->buffer_size < needed) { in adc_ra_check_buffer_size() 185 * @param sequence ADC sequence description 194 static int adc_ra_start_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ra_start_read() argument 200 if (sequence->resolution > ADC_RA_MAX_RESOLUTION || sequence->resolution == 0) { in adc_ra_start_read() [all …]
|
D | adc_nrfx_adc.c | 133 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 139 if (sequence->options) { in check_buffer_size() 140 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 143 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 145 sequence->buffer_size, needed_buffer_size); in check_buffer_size() 153 const struct adc_sequence *sequence) in start_read() argument 156 uint32_t selected_channels = sequence->channels; in start_read() 171 if (sequence->oversampling != 0U) { in start_read() 176 switch (sequence->resolution) { in start_read() 188 sequence->resolution); in start_read() [all …]
|
D | adc_ene_kb1200.c | 37 static bool adc_kb1200_validate_buffer_size(const struct adc_sequence *sequence) in adc_kb1200_validate_buffer_size() argument 44 if (chan_mask & sequence->channels) { in adc_kb1200_validate_buffer_size() 51 if (sequence->options) { in adc_kb1200_validate_buffer_size() 52 buff_need *= 1 + sequence->options->extra_samplings; in adc_kb1200_validate_buffer_size() 55 if (buff_need > sequence->buffer_size) { 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() argument 75 if (!sequence->channels || (sequence->channels & ~BIT_MASK(ADC_MAX_CHAN))) { in adc_kb1200_start_read() 80 if (sequence->resolution != ADC_RESOLUTION) { in adc_kb1200_start_read() 84 /* Check sequence->buffer_size is enough */ in adc_kb1200_start_read() 85 if (!adc_kb1200_validate_buffer_size(sequence)) { in adc_kb1200_start_read() [all …]
|
D | adc_rpi_pico.c | 128 * @brief Check if buffer in @p sequence is big enough to hold all ADC samples 131 * @param sequence ADC sequence description 137 const struct adc_sequence *sequence) in adc_rpi_check_buffer_size() argument 145 if (mask & sequence->channels) { in adc_rpi_check_buffer_size() 151 if (sequence->options) { in adc_rpi_check_buffer_size() 152 needed *= (1 + sequence->options->extra_samplings); in adc_rpi_check_buffer_size() 155 if (sequence->buffer_size < needed) { in adc_rpi_check_buffer_size() 166 * @param sequence ADC sequence description 176 const struct adc_sequence *sequence) in adc_rpi_start_read() argument 182 if (sequence->resolution > ADC_RPI_MAX_RESOLUTION || in adc_rpi_start_read() [all …]
|
D | adc_ifx_cat1.c | 156 static int validate_buffer_size(const struct adc_sequence *sequence) in validate_buffer_size() argument 162 if (sequence->channels & BIT(i)) { in validate_buffer_size() 169 if (sequence->options) { in validate_buffer_size() 170 total_buffer_size *= (1 + sequence->options->extra_samplings); in validate_buffer_size() 173 if (sequence->buffer_size < total_buffer_size) { in validate_buffer_size() 181 const struct adc_sequence *sequence) in start_read() argument 184 uint32_t channels = sequence->channels; in start_read() 187 if (sequence->resolution != ADC_CAT1_RESOLUTION) { in start_read() 188 LOG_ERR("Invalid ADC resolution (%d)", sequence->resolution); in start_read() 197 if (sequence->oversampling) { in start_read() [all …]
|
D | adc_ads7052.c | 68 const struct adc_sequence *sequence) in ads7052_validate_buffer_size() argument 73 channels = POPCOUNT(sequence->channels); in ads7052_validate_buffer_size() 76 if (sequence->options) { in ads7052_validate_buffer_size() 77 needed *= (1 + sequence->options->extra_samplings); in ads7052_validate_buffer_size() 80 if (sequence->buffer_size < needed) { in ads7052_validate_buffer_size() 110 static int ads7052_start_read(const struct device *dev, const struct adc_sequence *sequence) in ads7052_start_read() argument 116 if (sequence->resolution != ADS7052_RESOLUTION) { in ads7052_start_read() 117 LOG_ERR("unsupported resolution %d", sequence->resolution); in ads7052_start_read() 121 if (find_msb_set(sequence->channels) > config->channels) { in ads7052_start_read() 122 LOG_ERR("unsupported channels in mask: 0x%08x", sequence->channels); in ads7052_start_read() [all …]
|
D | adc_ad559x.c | 65 const struct adc_sequence *sequence) in adc_ad559x_validate_buffer_size() argument 70 channels = POPCOUNT(sequence->channels); in adc_ad559x_validate_buffer_size() 73 if (sequence->buffer_size < needed) { 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() argument 85 if (sequence->resolution != AD559X_ADC_RESOLUTION) { in adc_ad559x_start_read() 86 LOG_ERR("invalid resolution %d", sequence->resolution); in adc_ad559x_start_read() 90 if (find_msb_set(sequence->channels) > AD559X_PIN_MAX) { in adc_ad559x_start_read() 91 LOG_ERR("invalid channels in mask: 0x%08x", sequence->channels); in adc_ad559x_start_read() 95 ret = adc_ad559x_validate_buffer_size(dev, sequence); in adc_ad559x_start_read() 101 data->buffer = sequence->buffer; in adc_ad559x_start_read() [all …]
|
D | adc_sam_afec.c | 48 /* Pointer to the buffer in the sequence. */ 52 * channels in the sequence: this buffer changes by that amount 157 data->channels = ctx->sequence.channels; in adc_context_start_sampling() 172 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 177 if (sequence->options) { in check_buffer_size() 178 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 180 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 182 sequence->buffer_size, needed_buffer_size); in check_buffer_size() 189 const struct adc_sequence *sequence) in start_read() argument 193 uint32_t channels = sequence->channels; in start_read() [all …]
|
D | adc_nxp_s32_adc_sar.c | 121 const struct adc_sequence *sequence) in adc_nxp_s32_validate_buffer_size() argument 126 active_channels = POPCOUNT(sequence->channels); in adc_nxp_s32_validate_buffer_size() 129 if (sequence->options) { in adc_nxp_s32_validate_buffer_size() 130 needed_size *= (1 + sequence->options->extra_samplings); in adc_nxp_s32_validate_buffer_size() 133 if (sequence->buffer_size < needed_size) { in adc_nxp_s32_validate_buffer_size() 203 const struct adc_sequence *sequence) in adc_nxp_s32_start_read_async() argument 211 if (find_msb_set(sequence->channels) > data->num_channels) { in adc_nxp_s32_start_read_async() 216 error = adc_nxp_s32_validate_buffer_size(dev, sequence); in adc_nxp_s32_start_read_async() 223 error = adc_nxp_s32_set_averaging(dev, sequence->oversampling); in adc_nxp_s32_start_read_async() 228 if (sequence->oversampling) { in adc_nxp_s32_start_read_async() [all …]
|
D | adc_xmc4xxx.c | 87 static int adc_xmc4xxx_validate_buffer_size(const struct adc_sequence *sequence) in adc_xmc4xxx_validate_buffer_size() argument 93 if (sequence->channels & BIT(i)) { in adc_xmc4xxx_validate_buffer_size() 100 if (sequence->options) { in adc_xmc4xxx_validate_buffer_size() 101 total_buffer_size *= (1 + sequence->options->extra_samplings); in adc_xmc4xxx_validate_buffer_size() 104 if (sequence->buffer_size < total_buffer_size) { in adc_xmc4xxx_validate_buffer_size() 112 const struct adc_sequence *sequence) in start_read() argument 118 uint32_t requested_channels = sequence->channels; in start_read() 119 uint8_t resolution = sequence->resolution; in start_read() 133 if (sequence->oversampling) { in start_read() 138 ret = adc_xmc4xxx_validate_buffer_size(sequence); in start_read() [all …]
|
/Zephyr-latest/scripts/schemas/ |
D | build-schema.yml | 34 sequence: 41 sequence: 45 sequence: 49 sequence: 53 sequence: 57 sequence: 64 sequence: 68 sequence: 72 sequence:
|
D | soc-schema.yml | 13 sequence: 23 sequence: 35 sequence: 50 sequence: 65 sequence: 108 sequence: 121 sequence: 129 sequence: 138 sequence:
|
D | board-schema.yml | 13 sequence: 29 sequence: 75 sequence: 84 sequence: 101 sequence: 123 sequence: 136 sequence: 144 sequence: 153 sequence:
|
/Zephyr-latest/tests/drivers/adc/adc_api/src/ |
D | test_adc.c | 125 struct adc_sequence sequence = { in test_task_one_channel() local 131 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_one_channel() 133 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_one_channel() 152 struct adc_sequence sequence = { in test_task_multiple_channels() local 158 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_multiple_channels() 161 sequence.channels |= BIT(adc_channels[i].channel_id); in test_task_multiple_channels() 164 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_multiple_channels() 198 struct adc_sequence sequence = { in test_task_asynchronous_call() local 209 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_asynchronous_call() 211 ret = adc_read_async(adc_channels[0].dev, &sequence, &async_sig); in test_task_asynchronous_call() [all …]
|
/Zephyr-latest/samples/boards/google/twinkie_v2/pda/src/ |
D | meas.c | 27 /* Structure defining an ADC sampling sequence */ in meas_vbus_v() 28 struct adc_sequence sequence = { in meas_vbus_v() local 34 adc_sequence_init_dt(&adc_vbus_v.port, &sequence); in meas_vbus_v() 36 ret = adc_read_dt(&adc_vbus_v.port, &sequence); in meas_vbus_v() 60 /* Structure defining an ADC sampling sequence */ in meas_vbus_c() 61 struct adc_sequence sequence = { in meas_vbus_c() local 67 adc_sequence_init_dt(&adc_vbus_c.port, &sequence); in meas_vbus_c() 69 ret = adc_read(adc_vbus_c.port.dev, &sequence); in meas_vbus_c()
|
/Zephyr-latest/samples/drivers/adc/adc_sequence/ |
D | README.rst | 2 :name: Analog-to-Digital Converter (ADC) sequence sample 5 Read analog inputs from ADC channels, using a sequence. 13 and prints the readings on the console, based on the sequence specifications. 14 Notice how for the whole sequence reading, only one call to the :c:func:`adc_read` API is made. 52 ADC sequence reading [1]: 53 - ADC_0, channel 0, 5 sequence samples: 59 - ADC_0, channel 1, 5 sequence samples:
|