Home
last modified time | relevance | path

Searched full:setup (Results 1 – 25 of 1236) sorted by relevance

12345678910>>...50

/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c36 static bool reqtype_is_to_host(const struct usb_setup_packet *const setup) in reqtype_is_to_host() argument
38 return setup->wLength && USB_REQTYPE_GET_DIR(setup->bmRequestType); in reqtype_is_to_host()
41 static bool reqtype_is_to_device(const struct usb_setup_packet *const setup) in reqtype_is_to_device() argument
43 return !reqtype_is_to_host(setup); in reqtype_is_to_device()
59 struct usb_setup_packet *setup = usbd_get_setup_pkt(uds_ctx); in post_status_stage() local
62 if (setup->bRequest == USB_SREQ_SET_ADDRESS) { in post_status_stage()
63 ret = udc_set_address(uds_ctx->dev, setup->wValue); in post_status_stage()
65 LOG_ERR("Failed to set device address 0x%x", setup->wValue); in post_status_stage()
69 if (setup->bRequest == USB_SREQ_SET_FEATURE && in post_status_stage()
70 setup->wValue == USB_SFS_TEST_MODE) { in post_status_stage()
[all …]
/Zephyr-latest/subsys/usb/device/
Dusb_device.c105 /** Setup packet */
106 struct usb_setup_packet setup; member
144 /* Setup packet definition used to read raw data from USB line */
156 * @brief print the contents of a setup packet
158 * @param [in] setup The setup packet
161 static void usb_print_setup(struct usb_setup_packet *setup) in usb_print_setup() argument
164 ARG_UNUSED(setup); in usb_print_setup()
166 LOG_DBG("Setup: " in usb_print_setup()
168 setup->bmRequestType, in usb_print_setup()
169 setup->bRequest, in usb_print_setup()
[all …]
Dos_desc.c17 int usb_handle_os_desc(struct usb_setup_packet *setup, in usb_handle_os_desc() argument
24 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_STRING && in usb_handle_os_desc()
25 USB_GET_DESCRIPTOR_INDEX(setup->wValue) == USB_OSDESC_STRING_DESC_INDEX) { in usb_handle_os_desc()
36 int usb_handle_os_desc_feature(struct usb_setup_packet *setup, in usb_handle_os_desc_feature() argument
39 LOG_DBG("bRequest 0x%x", setup->bRequest); in usb_handle_os_desc_feature()
45 if (setup->bRequest == os_desc->vendor_code) { in usb_handle_os_desc_feature()
46 switch (setup->wIndex) { in usb_handle_os_desc_feature()
/Zephyr-latest/samples/net/gptp/
DKconfig9 # how to do this kind of setup. See also VLAN sample application
10 # for vlan-setup-linux.sh script that can be used to setup the
20 The value depends on your network setup.
25 The value depends on your network setup.
39 The value depends on your network setup.
44 The value depends on your network setup.
/Zephyr-latest/samples/net/mdns_responder/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
21 The value depends on your network setup.
35 The value depends on your network setup.
40 The value depends on your network setup.
45 The value depends on your network setup.
/Zephyr-latest/dts/bindings/memory-controllers/
Datmel,sam-smc.yaml27 atmel,smc-setup-timing = <1 1 1 1>;
39 setup, pulse and hold. The setup is used to address the memory. The pulse
41 is66wv51216dbll-55 a minimum setup of 5ns (1 cycle) with at least 45ns
47 cycle-timing (7) = setup (1) + pulse (6) + hold (0)
50 cycle-timing (10) = setup (1) + pulse (6) + hold (3)
101 or NWE setup time.
117 atmel,smc-setup-timing:
121 This value is used to setup memory region (set address). The setup
127 The effective value for each element is: 128 x setup[5] + setup[4:0]
137 cycles. The effective value for each element is: 256 x setup[6] + setup[5:0]
[all …]
/Zephyr-latest/samples/net/vlan/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
21 The value depends on your network setup.
35 The value depends on your network setup.
40 The value depends on your network setup.
45 The value depends on your network setup.
/Zephyr-latest/samples/net/sockets/echo_server/
DKconfig18 The value depends on your network setup.
23 The value depends on your network setup.
28 The value depends on your network setup.
42 The value depends on your network setup.
47 The value depends on your network setup.
52 The value depends on your network setup.
67 Use overlay-tunnel.conf to setup the tunnel support.
73 The value depends on your network setup.
/Zephyr-latest/subsys/usb/device/class/hid/
Dcore.c154 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_idle() argument
158 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_get_idle()
187 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_report() argument
198 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_protocol() argument
204 if (setup->wValue) { in hid_on_get_protocol()
220 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_idle() argument
224 uint8_t rate = (uint8_t)(setup->wValue >> 8); in hid_on_set_idle()
225 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_set_idle()
244 dev_data->idle_on = (bool)setup->wValue; in hid_on_set_idle()
253 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_report() argument
[all …]
/Zephyr-latest/soc/arm/beetle/
Dpower.c62 * @brief Setup various clock on SoC in active state.
99 * @brief Setup initial wakeup sources on SoC.
101 * Setup the SoC wakeup sources.
111 * @brief Setup various clocks and wakeup sources in the SoC.
117 /* Setup active state clocks */ in soc_power_init()
120 /* Setup sleep active clocks */ in soc_power_init()
123 /* Setup deepsleep active clocks */ in soc_power_init()
126 /* Setup initial wakeup sources */ in soc_power_init()
/Zephyr-latest/soc/atmel/sam/sam4e/
Dsoc.c24 * @brief Setup various clock on SoC at boot time.
26 * Setup the SoC clocks according to section 28.12 in datasheet.
28 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
49 * Setup main external crystal oscillator. in clock_init()
52 /* We select maximum setup time. in clock_init()
71 * Setup PLLA in clock_init()
77 * Final setup of the Master Clock in clock_init()
102 /* Setup system clocks. */ in soc_reset_hook()
/Zephyr-latest/soc/nordic/nrf53/
Dsync_rtc.c47 * APP: setup PPI connection from IPC_RECEIVE to RTC CAPTURE, enable interrupt
49 * NET: setup RTC CC for arbitrary offset from now, setup PPI from RTC_COMPARE to IPC_SEND
58 * NET: setup PPI from IPC_RECEIVE to RTC CAPTURE
69 /* Setup or clear connection from IPC_RECEIVE to RTC_CAPTURE
72 * @param setup If true connection is setup, else it is cleared.
74 static void ppi_ipc_to_rtc(union rtc_sync_channels channels, bool setup) in ppi_ipc_to_rtc() argument
79 if (setup) { in ppi_ipc_to_rtc()
88 /* Setup or clear connection from RTC_COMPARE to IPC_SEND
91 * @param setup If true connection is setup, else it is cleared.
93 static void ppi_rtc_to_ipc(union rtc_sync_channels channels, bool setup) in ppi_rtc_to_ipc() argument
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/
Dbluetooth-dev.rst26 .. _bluetooth-hw-setup:
28 Hardware setup
34 one or another setup to match your needs.
38 #. :ref:`Embedded <bluetooth-hw-setup-embedded>`
39 #. :ref:`External controller <bluetooth-hw-setup-external-ll>`
41 - :ref:`QEMU host <bluetooth-hw-setup-qemu-host>`
42 - :ref:`native_sim host <bluetooth-hw-setup-native-sim-host>`
44 #. :ref:`Simulated nRF5x with BabbleSim <bluetooth-hw-setup-bsim>`
46 .. _bluetooth-hw-setup-embedded: argument
51 This setup relies on all software running directly on the embedded platform(s)
[all …]
/Zephyr-latest/samples/net/telnet/
DREADME.rst10 This application will setup IPv4/IPv6 addresses on the default
46 [Setup] [INF] main: Starting Telnet sample
47 [Setup] [INF] setup_ipv4: IPv4 address: 192.0.2.1
48 [Setup] [INF] setup_ipv6: IPv6 address: 2001:db8::1
104 shell> [Setup] [INF] main: Starting Telnet sample
105 [Setup] [INF] setup_dhcpv4: Running dhcpv4 client...
106 [Setup] [INF] setup_ipv6: IPv6 address: 2001:db8::1
112 [Setup] [INF] ipv4_addr_add_handler: IPv4 address: 192.168.0.21
113 [Setup] [INF] ipv4_addr_add_handler: Lease time: 86400 seconds
114 [Setup] [INF] ipv4_addr_add_handler: Subnet: 255.255.255.0
[all …]
/Zephyr-latest/subsys/usb/device/class/
Dloopback.c125 static int loopback_vendor_handler(struct usb_setup_packet *setup, in loopback_vendor_handler() argument
129 setup->bRequest, setup->bmRequestType, *len); in loopback_vendor_handler()
131 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in loopback_vendor_handler()
135 if (usb_reqtype_is_to_device(setup) && in loopback_vendor_handler()
136 setup->bRequest == 0x5b) { in loopback_vendor_handler()
143 MIN(sizeof(loopback_buf), setup->wLength)); in loopback_vendor_handler()
147 if ((usb_reqtype_is_to_host(setup)) && in loopback_vendor_handler()
148 (setup->bRequest == 0x5c)) { in loopback_vendor_handler()
150 setup->wLength, *data); in loopback_vendor_handler()
152 *len = MIN(sizeof(loopback_buf), setup->wLength); in loopback_vendor_handler()
/Zephyr-latest/soc/atmel/sam/sam4s/
Dsoc.c24 * @brief Setup various clock on SoC at boot time.
26 * Setup the SoC clocks according to section 28.12 in datasheet.
28 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
52 * Setup main external crystal oscillator. in clock_init()
55 /* We select maximum setup time. in clock_init()
77 * Setup PLLA in clock_init()
83 * Final setup of the Master Clock in clock_init()
109 /* Setup system clocks. */ in soc_reset_hook()
/Zephyr-latest/samples/net/virtual/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
28 The value depends on your network setup.
33 The value depends on your network setup.
/Zephyr-latest/samples/net/lldp/
DKconfig17 The value depends on your network setup.
22 The value depends on your network setup.
36 The value depends on your network setup.
41 The value depends on your network setup.
/Zephyr-latest/doc/develop/toolchains/
Dzephyr_sdk.rst33 The installation consists of extracting the file and running the included setup
43 by running the setup script. If you decide not to register the Zephyr SDK in the CMake registry,
121 #. Run the Zephyr SDK bundle setup script:
126 ./setup.sh
129 You only need to run the setup script once after extracting the Zephyr SDK bundle.
131 You must rerun the setup script if you relocate the Zephyr SDK bundle directory after
132 the initial setup.
177 #. Run the Zephyr SDK bundle setup script:
182 ./setup.sh
185 You only need to run the setup script once after extracting the Zephyr SDK bundle.
[all …]
/Zephyr-latest/dts/bindings/adc/
Dzephyr,adc-emul.yaml21 channel setup with ADC_REF_INTERNAL will fail.
28 channel setup with ADC_REF_VDD_X will fail.
35 channel setup with ADC_REF_EXTERNAL0 will fail.
42 channel setup with ADC_REF_EXTERNAL1 will fail.
/Zephyr-latest/tests/net/virtual/
DKconfig12 The value depends on your network setup.
18 The value depends on your network setup.
24 The value depends on your network setup.
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dmain.c21 static void *setup(void) in setup() function
77 ZTEST_SUITE(i2s_loopback, NULL, setup, before, NULL, NULL);
78 ZTEST_SUITE(i2s_states, NULL, setup, before, NULL, NULL);
79 ZTEST_SUITE(i2s_dir_both_states, NULL, setup, before_dir_both, NULL, NULL);
80 ZTEST_SUITE(i2s_dir_both_loopback, NULL, setup, before_dir_both, NULL, NULL);
81 ZTEST_SUITE(i2s_errors, NULL, setup, before, NULL, NULL);
/Zephyr-latest/soc/atmel/sam/sam3x/
Dsoc.c23 * @brief Setup various clocks on SoC at boot time.
25 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
47 * Setup main external crystal oscillator. in clock_init()
50 /* We select maximum setup time. in clock_init()
68 * Setup PLLA in clock_init()
85 * Final setup of the Master Clock in clock_init()
110 /* Setup system clocks */ in soc_reset_hook()
/Zephyr-latest/samples/net/sockets/echo_client/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
30 The value depends on your network setup.
35 The value depends on your network setup.
/Zephyr-latest/subsys/usb/device/class/dfu/
Dusb_dfu.c465 static int dfu_class_handle_to_host(struct usb_setup_packet *setup, in dfu_class_handle_to_host() argument
472 switch (setup->bRequest) { in dfu_class_handle_to_host()
507 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host()
526 if (!setup->wLength || in dfu_class_handle_to_host()
527 dfu_data.block_nr != setup->wValue) { in dfu_class_handle_to_host()
529 "len %d", setup->wValue, in dfu_class_handle_to_host()
530 dfu_data.block_nr, setup->wLength); in dfu_class_handle_to_host()
539 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host()
542 len = setup->wLength; in dfu_class_handle_to_host()
579 len < setup->wLength) { in dfu_class_handle_to_host()
[all …]

12345678910>>...50