Home
last modified time | relevance | path

Searched +full:valid +full:- +full:channels (Results 1 – 25 of 164) sorted by relevance

1234567

/Zephyr-latest/include/zephyr/net/
Dwifi_utils.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Utility functions to be used by the Wi-Fi subsystem.
25 * @name Wi-Fi utility functions.
27 * Utility functions for the Wi-Fi subsystem.
40 * @details The function will parse a string which specifies Wi-Fi frequency band
44 * - 2: 2.4 GHz
45 * - 5: 5 GHz
46 * - 6: 6 GHz
57 * @retval -errno value in case of failure.
70 * @retval -errno value in case of failure.
[all …]
/Zephyr-latest/dts/bindings/dma/
Dnxp,edma.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [dma-controller.yaml, base.yaml]
13 valid-channels:
17 to be considered valid. The difference between this
18 property and "dma-channels" is the fact that this
21 not going to be using all of the possible channels, thus
23 and "dma-channels" are mutually exclusive, meaning you
26 "#dma-cells":
29 # IMPORTANT: if your EDMA version doesn't support channel MUX-ing please
33 dma-cells:
[all …]
/Zephyr-latest/tests/subsys/lorawan/channels_mask/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
14 * @brief Test channels mask with size 1
16 * This test will request the channels mask changes, passing valid
32 /* Configure channels mask with expected parameters */ in ZTEST()
34 zassert_equal(err, 0, "Denied right channels mask configuration"); in ZTEST()
36 /* Configure channels mask with unexpected channels mask size */ in ZTEST()
38 zassert_equal(err, -EINVAL, "Accepted an unexpected mask size for the selected region"); in ZTEST()
40 /* Configure channels mask with pointer to NULL */ in ZTEST()
42 zassert_equal(err, -EINVAL, "Accepted a pointer to NULL"); in ZTEST()
46 * @brief Test channels mask with size 6
[all …]
/Zephyr-latest/drivers/adc/
Dadc_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
30 /* ADC channels disabled */
36 /* ADC channels offset */
38 #define ADC_CHANNEL_OFFSET(ch) ((ch)-CHIP_ADC_CH13-ADC_CHANNEL_SHIFT)
52 /* List of ADC channels. */
98 uint8_t channel_id = channel_cfg->channel_id; in adc_it8xxx2_channel_setup()
100 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_it8xxx2_channel_setup()
101 LOG_ERR("Selected ADC acquisition time is not valid"); in adc_it8xxx2_channel_setup()
102 return -EINVAL; in adc_it8xxx2_channel_setup()
105 /* Support channels 0~7 and 13~16 */ in adc_it8xxx2_channel_setup()
[all …]
Dadc_sam_afec.c6 * SPDX-License-Identifier: Apache-2.0
15 * Front-End Controller (AFEC) peripheral.
37 #define CONF_ADC_PRESCALER ((SOC_ATMEL_SAM_MCK_FREQ_HZ / 15000000) - 1)
52 * channels in the sequence: this buffer changes by that amount
53 * so all the channels would get repeated.
57 /* Bit mask of the channels to be sampled. */
58 uint32_t channels; member
74 const struct adc_sam_cfg * const cfg = dev->config; in adc_sam_channel_setup()
75 Afec *const afec = cfg->regs; in adc_sam_channel_setup()
77 uint8_t channel_id = channel_cfg->channel_id; in adc_sam_channel_setup()
[all …]
Dadc_ifx_cat1.c5 * SPDX-License-Identifier: Apache-2.0
43 uint32_t channels; member
54 struct ifx_cat1_adc_data *data = dev->data; in _cyhal_adc_event_callback()
55 uint32_t channels = data->channels; in _cyhal_adc_event_callback() local
59 while (channels != 0) { in _cyhal_adc_event_callback()
60 channel_id = find_lsb_set(channels) - 1; in _cyhal_adc_event_callback()
61 channels &= ~BIT(channel_id); in _cyhal_adc_event_callback()
63 result = Cy_SAR_GetResult32(data->adc_chan_obj[channel_id].adc->base, in _cyhal_adc_event_callback()
64 data->adc_chan_obj[channel_id].channel_idx); in _cyhal_adc_event_callback()
66 * convert the lowest signed 12-bit number to 0x0. in _cyhal_adc_event_callback()
[all …]
Dadc_nrfx_adc.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/dt-bindings/adc/nrf-adc.h>
19 /* Ensure that definitions in nrf-adc.h match MDK. */
28 "Definitions from nrf-adc.h do not match those from nrf_adc.h");
50 uint8_t channel_id = channel_cfg->channel_id; in adc_nrfx_channel_setup()
54 return -EINVAL; in adc_nrfx_channel_setup()
57 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_nrfx_channel_setup()
58 LOG_ERR("Selected ADC acquisition time is not valid"); in adc_nrfx_channel_setup()
59 return -EINVAL; in adc_nrfx_channel_setup()
62 if (channel_cfg->differential) { in adc_nrfx_channel_setup()
[all …]
Dadc_cc32xx.c4 * SPDX-License-Identifier: Apache-2.0
43 uint32_t channels; member
83 const struct adc_cc32xx_cfg *config = data->dev->config; in adc_context_start_sampling()
85 data->channels = ctx->sequence.channels; in adc_context_start_sampling()
86 data->repeat_buffer = data->buffer; in adc_context_start_sampling()
89 if (ctx->sequence.channels & BIT(i)) { in adc_context_start_sampling()
90 start_sampling(config->base, s_channel[i]); in adc_context_start_sampling()
102 data->buffer = data->repeat_buffer; in adc_context_update_buffer_pointer()
104 data->buffer += data->active_channels; in adc_context_update_buffer_pointer()
110 struct adc_cc32xx_data *data = dev->data; in adc_cc32xx_init()
[all …]
Dadc_smartbond_gpadc.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/adc/smartbond-adc.h>
40 /* Number of bits in sequence channels */
49 * Channels are handled by software this array holds individual
61 uint8_t channel_id = channel_cfg->channel_id; in adc_smartbond_channel_setup()
65 return -EINVAL; in adc_smartbond_channel_setup()
68 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_smartbond_channel_setup()
69 LOG_ERR("Selected ADC acquisition time is not valid"); in adc_smartbond_channel_setup()
70 return -EINVAL; in adc_smartbond_channel_setup()
73 if (channel_cfg->differential) { in adc_smartbond_channel_setup()
[all …]
Dadc_ene_kb1200.c4 * SPDX-License-Identifier: Apache-2.0
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()
62 * 1. Start ADC sampling (set up flag ctx->sync)
63 * adc_context_start_read() -> adc_context_start_sampling()
64 * 2. Wait ADC sample finish (by monitor flag ctx->sync)
66 * 3. Finish ADC sample (isr clear flag ctx->sync)
67 * adc_context_on_sampling_done -> adc_context_complete
[all …]
Dadc_rpi_pico.c5 * SPDX-License-Identifier: Apache-2.0
26 /** Bits numbers of rrobin register mean an available number of channels. */
27 #define ADC_RPI_CHANNEL_NUM (ADC_CS_RROBIN_MSB - ADC_CS_RROBIN_LSB + 1)
35 /** Number of supported channels */
63 /** Mask with channels that will be sampled */
64 uint32_t channels; member
69 hw_set_bits(&adc_hw->cs, ADC_CS_START_ONCE_BITS); in adc_start_once()
74 return (uint16_t)adc_hw->result; in adc_get_result()
79 return (adc_hw->cs & ADC_CS_ERR_BITS) ? true : false; in adc_get_err()
85 hw_set_bits(&adc_hw->fcs, ADC_FCS_OVER_BITS); in adc_clear_errors()
[all …]
Dadc_smartbond_sdadc.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/adc/smartbond-adc.h>
39 /* Number of bits in sequence channels */
57 uint8_t channel_id = channel_cfg->channel_id; in sdadc_smartbond_channel_setup()
61 return -EINVAL; in sdadc_smartbond_channel_setup()
64 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in sdadc_smartbond_channel_setup()
65 LOG_ERR("Selected ADC acquisition time is not valid"); in sdadc_smartbond_channel_setup()
66 return -EINVAL; in sdadc_smartbond_channel_setup()
69 if (channel_cfg->input_positive > SMARTBOND_SDADC_VBAT) { in sdadc_smartbond_channel_setup()
70 LOG_ERR("Channels out of range"); in sdadc_smartbond_channel_setup()
[all …]
Dadc_renesas_ra.c4 * SPDX-License-Identifier: Apache-2.0
39 /** Number of supported channels */
41 /** Mask for channels existed in each board */
67 /** Mask with channels that will be sampled */
68 uint32_t channels; member
74 * @brief Setup channels before starting to scan ADC
80 * @return -ENOTSUP if channel id or differential is wrong value
81 * @return -EINVAL if channel configuration is invalid
86 struct adc_ra_data *data = dev->data; in adc_ra_channel_setup()
87 const struct adc_ra_config *config = dev->config; in adc_ra_channel_setup()
[all …]
/Zephyr-latest/subsys/net/l2/wifi/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
35 This option enables check for valid IP address before TWT setup.
37 enter deep sleep without having a valid IP, this can result in device
39 even when it is awake intervals. Rejecting TWT setup till Wi-Fi
40 interface has a valid IP address might be desirable in most scenarios.
43 bool "Force passive Wi-Fi scanning"
60 int "Maximum number of channels that can be manually specified"
64 There are approximately 100 channels allocated across the three supported bands.
65 The default of 3 allows the 3 most common channels (2.4GHz: 1, 6, 11) to be specified.
68 int "Maximum number of APs and STAs that can be managed in Wi-Fi shell"
[all …]
/Zephyr-latest/dts/bindings/tcpc/
Dnuvoton,numaker-tcpc.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Nuvoton NuMaker USB Type-C port controller
6 compatible: "nuvoton,numaker-tcpc"
8 include: [base.yaml, reset-device.yaml, pinctrl-device.yaml]
23 vconn-overcurrent-event-polarity:
28 - "low-active"
29 - "high-active"
31 vconn-discharge-polarity:
36 - "low-active"
37 - "high-active"
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Datt.h8 * SPDX-License-Identifier: Apache-2.0
33 /** The attribute handle given was not valid on the server */
99 /* 0xffff is defined as the maximum, and thus last, valid attribute handle */
134 /* Reconfigure all EATT channels on connection */
139 /** @brief Connect Enhanced ATT channels
142 * Enhanced ATT channels. The peer may have limited resources and fewer channels
147 * Must be in the range 1 - @kconfig{CONFIG_BT_EATT_MAX}, inclusive.
150 * @retval -EINVAL if @p num_channels is not in the allowed range or @p conn is NULL.
151 * @retval -ENOMEM if less than @p num_channels are allocated.
156 /** @brief Get number of EATT channels connected.
[all …]
/Zephyr-latest/drivers/dma/
Ddma_nxp_edma.h4 * SPDX-License-Identifier: Apache-2.0
37 /* used to generate an array of indexes for the channels */
41 /* used to generate an array of indexes for the channels - this is different
42 * from _EDMA_CHANNEL_INDEX_ARRAY because the number of channels is passed
43 * explicitly through dma-channels so no need to deduce it from the length
44 * of the valid-channels property.
64 /* used to declare a struct edma_channel by the non-explicit macro suite */
82 /* used to create an array of channel IDs via the valid-channels property */
87 /* used to create an array of channel IDs via the dma-channels property */
93 * dma-channels or valid-channels.
[all …]
Ddma_nxp_edma.c4 * SPDX-License-Identifier: Apache-2.0
16 * 5) Ideally, HALFMAJOR should be set on a per-channel basis not through a
30 cfg = chan->dev->config; in edma_isr()
31 data = chan->dev->data; in edma_isr()
33 if (chan->state == CHAN_STATE_RELEASING || chan->state == CHAN_STATE_INIT) { in edma_isr()
38 if (!EDMA_ChannelRegRead(data->hal_cfg, chan->id, EDMA_TCD_CH_INT)) { in edma_isr()
44 EDMA_ChannelRegUpdate(data->hal_cfg, chan->id, in edma_isr()
47 if (chan->cyclic_buffer) { in edma_isr()
48 update_size = chan->bsize; in edma_isr()
51 update_size = chan->bsize / 2; in edma_isr()
[all …]
Ddma_nxp_sof_host_dma.c4 * SPDX-License-Identifier: Apache-2.0
29 * a generic software-based DMA engine implementation.
53 struct sof_host_dma_channel *channels; member
59 enum channel_state prev = chan->state; in channel_change_state()
66 return -EPERM; in channel_change_state()
71 return -EINVAL; in channel_change_state()
74 chan->state = next; in channel_change_state()
90 data = dev->data; in sof_host_dma_reload()
92 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_reload()
93 LOG_ERR("channel %d is not a valid channel ID", chan_id); in sof_host_dma_reload()
[all …]
/Zephyr-latest/dts/bindings/adc/
Dgd,gd32-adc.yaml2 # SPDX-License-Identifier: Apache-2.0
11 # To cover this cases, adc_gd32 driver use node-label 'adc0', 'adc1' and
14 # Sorry for the restriction, But new added gd32 adc node-label must be 'adc0',
17 compatible: "gd,gd32-adc"
19 include: [adc-controller.yaml, reset-device.yaml, pinctrl-device.yaml]
31 rcu-clock-source:
35 This property used to select the clock and related prescaler, valid
36 values defined at 'dts-bindings/adc/gd32xxx.h' headers.
38 channels:
40 description: Number of external channels
[all …]
/Zephyr-latest/drivers/sensor/sx9500/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
12 Enable driver for SX9500 I2C-based SAR proximity sensor.
20 The SX9500 offers 4 separate proximity channels. Choose which one
21 you are using. Valid numbers are 0 to 3.
32 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios)
38 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios)
/Zephyr-latest/include/zephyr/drivers/
Dled_strip.h5 * SPDX-License-Identifier: Apache-2.0
37 * Individual strip drivers may ignore lower-order bits if their
68 * @brief Callback API for updating channels without an RGB interpretation.
73 uint8_t *channels,
103 * @retval -errno negative errno code on failure.
112 (const struct led_strip_driver_api *)dev->api; in led_strip_update_rgb()
114 /* Allow for out-of-tree drivers that do not have this function for 2 Zephyr releases in led_strip_update_rgb()
117 if (api->length != NULL) { in led_strip_update_rgb()
118 /* Ensure supplied pixel size is valid for this device */ in led_strip_update_rgb()
119 if (api->length(dev) < num_pixels) { in led_strip_update_rgb()
[all …]
Dadc.h10 * SPDX-License-Identifier: Apache-2.0
17 #include <zephyr/dt-bindings/adc/adc.h>
71 * @retval -EINVAL if the gain could not be interpreted
104 * Value range is 0-16383 for a given unit.
110 * This value primarily identifies the channel within the ADC API - when
111 * a read request is done, the corresponding bit in the "channels" field
115 * channels, but rather have dedicated ones, this value also selects the
125 * While this API allows identifiers from range 0-31, particular drivers
132 /** Channel type: single-ended or differential. */
144 * Negative ADC input (used only for differential channels).
[all …]
/Zephyr-latest/samples/sensor/sensor_shell/
DREADME.rst1 .. zephyr:code-sample:: sensor_shell
3 :relevant-api: sensor_interface
17 .. zephyr-app-commands::
18 :zephyr-app: samples/sensor/sensor_shell
24 .. zephyr-app-commands::
25 :zephyr-app: samples/sensor/sensor_shell
28 :gen-args: -DCONFIG_SAMPLES_SENSOR_SHELL_FAKE_SENSOR=y
33 .. code-block:: console
35 sensor - Sensor commands
37 get :Get sensor data. Channel names are optional. All channels are read when
[all …]
/Zephyr-latest/drivers/dai/intel/alh/
Dalh.h4 * SPDX-License-Identifier: Apache-2.0
26 (((x) & 0xF) - IPC4_ALH_DAI_INDEX_OFFSET))
31 (((x) & ((1ULL << ((b_hi) - (b_lo) + 1ULL)) - 1ULL)) << (b_lo))
34 #define dai_get_drvdata(dai) &dai->priv_data
35 #define dai_base(dai) dai->plat_data.base
69 /* ALH Configuration Request - SOF_IPC_DAI_ALH_CONFIG */
74 uint32_t channels; member
81 /* Number of single channels (valid items in mapping array). */

1234567