/Zephyr-Core-3.6.0/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-Core-3.6.0/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 | 33 /* Copy of channel mask from sequence */ 35 /* Number of bits in sequence channels */ 120 /* Extract lower channel from sequence mask */ in adc_context_start_sampling() 123 if (ctx->sequence.calibrate) { in adc_context_start_sampling() 130 val |= (ctx->sequence.oversampling - 7) << SDADC_SDADC_CTRL_REG_SDADC_OSR_Pos; in adc_context_start_sampling() 147 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 153 if (sequence->options) { in check_buffer_size() 154 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 157 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 159 sequence->buffer_size, needed_buffer_size); in check_buffer_size() [all …]
|
D | adc_smartbond_gpadc.c | 31 /* Copy of channel mask from sequence */ 33 /* Number of bits in sequence channels */ 117 /* Extract lower channel from sequence mask */ in adc_context_start_sampling() 120 if (ctx->sequence.calibrate) { in adc_context_start_sampling() 144 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 150 if (sequence->options) { in check_buffer_size() 151 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 154 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 156 sequence->buffer_size, needed_buffer_size); in check_buffer_size() 164 const struct adc_sequence *sequence) in start_read() argument [all …]
|
D | adc_ad5592.c | 57 const struct adc_sequence *sequence) in adc_ad5592_validate_buffer_size() argument 62 channels = POPCOUNT(sequence->channels); in adc_ad5592_validate_buffer_size() 65 if (sequence->buffer_size < needed) { in adc_ad5592_validate_buffer_size() 72 static int adc_ad5592_start_read(const struct device *dev, const struct adc_sequence *sequence) in adc_ad5592_start_read() argument 77 if (sequence->resolution != AD5592_ADC_RESOLUTION) { in adc_ad5592_start_read() 78 LOG_ERR("invalid resolution %d", sequence->resolution); in adc_ad5592_start_read() 82 if (find_msb_set(sequence->channels) > AD5592_PIN_MAX) { in adc_ad5592_start_read() 83 LOG_ERR("invalid channels in mask: 0x%08x", sequence->channels); in adc_ad5592_start_read() 87 ret = adc_ad5592_validate_buffer_size(dev, sequence); in adc_ad5592_start_read() 93 data->buffer = sequence->buffer; in adc_ad5592_start_read() [all …]
|
D | adc_nrfx_saadc.c | 134 * in a sampling sequence. in adc_nrfx_channel_setup() 156 if (ctx->sequence.calibrate) { in adc_context_start_sampling() 178 static int set_resolution(const struct adc_sequence *sequence) in set_resolution() argument 182 switch (sequence->resolution) { in set_resolution() 197 sequence->resolution); in set_resolution() 205 static int set_oversampling(const struct adc_sequence *sequence, in set_oversampling() argument 210 if ((active_channels > 1) && (sequence->oversampling > 0)) { in set_oversampling() 216 switch (sequence->oversampling) { in set_oversampling() 246 sequence->oversampling); in set_oversampling() 254 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument [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_rpi_pico.c | 127 * @brief Check if buffer in @p sequence is big enough to hold all ADC samples 130 * @param sequence ADC sequence description 136 const struct adc_sequence *sequence) in adc_rpi_check_buffer_size() argument 144 if (mask & sequence->channels) { in adc_rpi_check_buffer_size() 150 if (sequence->options) { in adc_rpi_check_buffer_size() 151 needed *= (1 + sequence->options->extra_samplings); in adc_rpi_check_buffer_size() 154 if (sequence->buffer_size < needed) { in adc_rpi_check_buffer_size() 165 * @param sequence ADC sequence description 175 const struct adc_sequence *sequence) in adc_rpi_start_read() argument 181 if (sequence->resolution > ADC_RPI_MAX_RESOLUTION || in adc_rpi_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_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_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_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 …]
|
D | adc_mcp320x.c | 81 const struct adc_sequence *sequence) in mcp320x_validate_buffer_size() argument 89 if (mask & sequence->channels) { in mcp320x_validate_buffer_size() 95 if (sequence->options) { in mcp320x_validate_buffer_size() 96 needed *= (1 + sequence->options->extra_samplings); in mcp320x_validate_buffer_size() 99 if (sequence->buffer_size < needed) { in mcp320x_validate_buffer_size() 107 const struct adc_sequence *sequence) in mcp320x_start_read() argument 113 if (sequence->resolution != MCP320X_RESOLUTION) { in mcp320x_start_read() 114 LOG_ERR("unsupported resolution %d", sequence->resolution); in mcp320x_start_read() 118 if (find_msb_set(sequence->channels) > config->channels) { in mcp320x_start_read() 120 sequence->channels); in mcp320x_start_read() [all …]
|
D | adc_sam.c | 41 /* Pointer to the buffer in the sequence. */ 45 * channels in the sequence: this buffer changes by that amount 159 data->num_active_channels = count_bits(ctx->sequence.channels); in adc_context_start_sampling() 165 adc->ADC_CHER = ctx->sequence.channels; in adc_context_start_sampling() 181 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 186 if (sequence->options) { in check_buffer_size() 187 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size() 190 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 192 sequence->buffer_size, needed_buffer_size); in check_buffer_size() 200 const struct adc_sequence *sequence) in start_read() argument [all …]
|
D | adc_sam0.c | 299 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument 305 if (sequence->options) { in check_buffer_size() 306 needed_buffer_size *= (1U + sequence->options->extra_samplings); in check_buffer_size() 309 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size() 311 sequence->buffer_size, needed_buffer_size); in check_buffer_size() 318 const struct adc_sequence *sequence) in start_read() argument 325 if (sequence->oversampling > 10U) { in start_read() 330 adc->AVGCTRL.reg = ADC_AVGCTRL_SAMPLENUM(sequence->oversampling); in start_read() 338 if (sequence->oversampling > 4U && DSU->DID.bit.REVISION < 3) { in start_read() 339 adc->AVGCTRL.bit.ADJRES = sequence->oversampling - 4U; in start_read() [all …]
|
D | adc_gecko.c | 72 static int adc_gecko_check_buffer_size(const struct adc_sequence *sequence, in adc_gecko_check_buffer_size() argument 79 if (sequence->options) { in adc_gecko_check_buffer_size() 80 needed_buffer_size *= (1 + sequence->options->extra_samplings); in adc_gecko_check_buffer_size() 83 if (sequence->buffer_size < needed_buffer_size) { in adc_gecko_check_buffer_size() 85 sequence->buffer_size, needed_buffer_size); in adc_gecko_check_buffer_size() 92 static int start_read(const struct device *dev, const struct adc_sequence *sequence) in start_read() argument 102 if (sequence->channels == 0) { in start_read() 107 if (sequence->oversampling) { in start_read() 113 channels = sequence->channels; in start_read() 131 res = adc_gecko_check_buffer_size(sequence, channel_count); in start_read() [all …]
|
D | adc_cc32xx.c | 85 data->channels = ctx->sequence.channels; in adc_context_start_sampling() 89 if (ctx->sequence.channels & BIT(i)) { in adc_context_start_sampling() 174 const struct adc_sequence *sequence, in cc32xx_read() argument 182 if (sequence->resolution != 12) { in cc32xx_read() 184 sequence->resolution); in cc32xx_read() 190 if (!(sequence->channels & BIT(i))) { in cc32xx_read() 196 if (sequence->options) { in cc32xx_read() 197 exp_size *= (1 + sequence->options->extra_samplings); in cc32xx_read() 200 if (sequence->buffer_size < exp_size) { in cc32xx_read() 202 exp_size, sequence->buffer_size); in cc32xx_read() [all …]
|
D | adc_max11102_17.c | 113 static int max11102_17_validate_buffer_size(const struct adc_sequence *sequence) in max11102_17_validate_buffer_size() argument 117 if (sequence->options) { in max11102_17_validate_buffer_size() 118 necessary *= (1 + sequence->options->extra_samplings); in max11102_17_validate_buffer_size() 121 if (sequence->buffer_size < necessary) { in max11102_17_validate_buffer_size() 129 const struct adc_sequence *sequence) in max11102_17_validate_sequence() argument 134 const size_t channel_maximum = 8*sizeof(sequence->channels); in max11102_17_validate_sequence() 136 if (sequence->resolution != config->resolution) { in max11102_17_validate_sequence() 142 if ((BIT(i) & sequence->channels) == 0) { in max11102_17_validate_sequence() 165 if (sequence->oversampling) { in max11102_17_validate_sequence() 170 return max11102_17_validate_buffer_size(sequence); in max11102_17_validate_sequence() [all …]
|
D | adc_emul.c | 270 * @brief Check if buffer in @p sequence is big enough to hold all ADC samples 273 * @param sequence ADC sequence description 279 const struct adc_sequence *sequence) in adc_emul_check_buffer_size() argument 287 if (mask & sequence->channels) { in adc_emul_check_buffer_size() 293 if (sequence->options) { in adc_emul_check_buffer_size() 294 needed *= (1 + sequence->options->extra_samplings); in adc_emul_check_buffer_size() 297 if (sequence->buffer_size < needed) { in adc_emul_check_buffer_size() 308 * @param sequence ADC sequence description 318 const struct adc_sequence *sequence) in adc_emul_start_read() argument 324 if (sequence->resolution > ADC_EMUL_MAX_RESOLUTION || in adc_emul_start_read() [all …]
|
/Zephyr-Core-3.6.0/scripts/schemas/twister/ |
D | testsuite-schema.yaml | 26 sequence: 43 sequence: 48 sequence: 53 sequence: 58 sequence: 66 sequence: 74 sequence: 80 sequence: 110 sequence: 115 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-Core-3.6.0/tests/drivers/adc/adc_api/src/ |
D | test_adc.c | 88 struct adc_sequence sequence = { in test_task_one_channel() local 94 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_one_channel() 96 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_one_channel() 115 struct adc_sequence sequence = { in test_task_multiple_channels() local 121 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_multiple_channels() 124 sequence.channels |= BIT(adc_channels[i].channel_id); in test_task_multiple_channels() 127 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_multiple_channels() 161 struct adc_sequence sequence = { in test_task_asynchronous_call() local 172 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_asynchronous_call() 174 ret = adc_read_async(adc_channels[0].dev, &sequence, &async_sig); in test_task_asynchronous_call() [all …]
|
/Zephyr-Core-3.6.0/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()
|