Home
last modified time | relevance | path

Searched full:capture (Results 1 – 25 of 243) sorted by relevance

12345678910

/Zephyr-latest/doc/connectivity/networking/api/
Dcapture.rst3 Network Packet Capture
18 Cooked Mode Capture
21 If capturing is enabled and configured, the system will automatically capture
22 network traffic for a given network interface. If you would like to capture
24 the cooked mode capture API.
26 In cooked mode capture, arbitrary network packets can be captured and there
29 using the normal network interface based capture. Also CANBUS or Bluetooth
31 network stack to capture those.
33 The cooked mode capture works like this:
36 mode captured packets are written by the cooked mode capture API.
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_mc_esp32.c83 struct mcpwm_esp32_capture_config capture; member
220 /* Capture prescaler is disabled by default (equals 1) */ in mcpwm_esp32_get_cycles_per_sec()
295 struct mcpwm_esp32_capture_config *capture = &channel->capture; in mcpwm_esp32_configure_capture() local
303 LOG_ERR("PWM capture only supported on channels 6, 7 and 8"); in mcpwm_esp32_configure_capture()
307 if (data->hal.dev->cap_chn_cfg[capture->capture_signal].capn_en) { in mcpwm_esp32_configure_capture()
308 LOG_ERR("PWM Capture already in progress"); in mcpwm_esp32_configure_capture()
313 LOG_ERR("No PWM capture type specified"); in mcpwm_esp32_configure_capture()
318 capture->capture_signal = channel->idx - CAPTURE_CHANNEL_IDX; in mcpwm_esp32_configure_capture()
319 capture->callback = cb; in mcpwm_esp32_configure_capture()
320 capture->user_data = user_data; in mcpwm_esp32_configure_capture()
[all …]
Dpwm_mcux_ftm.c25 /* PWM capture operates on channel pairs */
60 struct mcux_ftm_capture_data capture[MAX_CAPTURE_PAIRS]; member
94 LOG_ERR("Cannot set PWM, capture in progress on pair %d", pair); in mcux_ftm_set_cycles()
113 LOG_ERR("Cannot change period, capture in progress"); in mcux_ftm_set_cycles()
158 LOG_ERR("PWM capture only supported on even channels"); in mcux_ftm_configure_capture()
162 if (pair >= ARRAY_SIZE(data->capture)) { in mcux_ftm_configure_capture()
168 LOG_ERR("Capture already active on channel pair %d", pair); in mcux_ftm_configure_capture()
173 LOG_ERR("No capture type specified"); in mcux_ftm_configure_capture()
178 LOG_ERR("Cannot capture both period and pulse width"); in mcux_ftm_configure_capture()
182 data->capture[pair].callback = cb; in mcux_ftm_configure_capture()
[all …]
Dpwm_numaker.c61 struct pwm_numaker_capture_data capture[NUMAKER_PWM_CHANNEL_COUNT]; member
146 data->capture[pair].callback = cb; in pwm_numaker_configure_capture()
147 data->capture[pair].user_data = user_data; in pwm_numaker_configure_capture()
149 if (data->capture[pair].is_busy) { in pwm_numaker_configure_capture()
150 LOG_ERR("Capture already active on this channel %d", pair); in pwm_numaker_configure_capture()
154 LOG_ERR("Cannot capture both period and pulse width"); in pwm_numaker_configure_capture()
159 data->capture[pair].single_mode = false; in pwm_numaker_configure_capture()
161 data->capture[pair].single_mode = true; in pwm_numaker_configure_capture()
165 data->capture[pair].pulse_capture = false; in pwm_numaker_configure_capture()
168 data->capture[pair].curr_edge_mode = EPWM_CAPTURE_INT_FALLING_LATCH; in pwm_numaker_configure_capture()
[all …]
Dpwm_renesas_ra.c46 struct pwm_renesas_ra_capture_data capture; member
241 LOG_ERR("No PWWM capture type specified"); in pwm_renesas_ra_configure_capture()
245 LOG_ERR("Cannot capture both period and pulse width"); in pwm_renesas_ra_configure_capture()
248 if (data->capture.is_busy) { in pwm_renesas_ra_configure_capture()
249 LOG_ERR("Capture already active on this pin"); in pwm_renesas_ra_configure_capture()
254 data->capture.is_pulse_capture = false; in pwm_renesas_ra_configure_capture()
271 data->capture.is_pulse_capture = true; in pwm_renesas_ra_configure_capture()
296 data->capture.callback = cb; in pwm_renesas_ra_configure_capture()
297 data->capture.user_data = user_data; in pwm_renesas_ra_configure_capture()
298 data->capture.continuous = flags & PWM_CAPTURE_MODE_CONTINUOUS; in pwm_renesas_ra_configure_capture()
[all …]
Dpwm_stm32.c39 * @brief Capture state when in 4-channel support mode
49 * that is used to capture the end of the pulse.
69 /* When PWM capture is done by resetting the counter with UIF then the
70 * first capture is always nonsense, second is nonsense when polarity changed
84 struct pwm_stm32_capture_data capture; member
143 /** Channel to capture get function mapping. */
154 /** Channel to enable capture interrupt mapping. */
160 /** Channel to disable capture interrupt mapping. */
166 /** Channel to is capture active flag mapping. */
176 /** Channel to clearing capture flag mapping. */
[all …]
Dpwm_capture.c44 LOG_ERR("continuous capture mode only supported via callback"); in z_impl_pwm_capture_cycles()
54 LOG_ERR("failed to configure pwm capture"); in z_impl_pwm_capture_cycles()
60 LOG_ERR("failed to enable pwm capture"); in z_impl_pwm_capture_cycles()
68 LOG_WRN("pwm capture timed out"); in z_impl_pwm_capture_cycles()
DKconfig.mcux_pwt7 bool "MCUX PWT PWM capture driver"
13 Enable the MCUX Pulse Width Timer (PWT) PWM capture driver.
DKconfig.mcux_ftm15 int "MCUX FTM PWM capture filter value"
20 PWM capture filter value for channels 0 and 2.
/Zephyr-latest/subsys/net/lib/capture/
DKconfig1 # Capture network packets
7 bool "Network packet capture support"
15 This option allows user to capture network packets.
25 int "How many network packets to allocate for capture"
35 int "How many network buffers to allocate for capture"
42 int "Number of network capture devices"
45 Number of network capture devices. Usually one is enough but
50 bool "Capture non-IP packets a.k.a cooked (SLL) mode [EXPERIMENTAL]"
56 This enables application to capture packets in so called
86 This sets the name of the cooked mode capture network interface.
[all …]
/Zephyr-latest/doc/connectivity/networking/
Dnetwork_monitoring.rst12 Zephyr. This page describes how to set up a way to capture network traffic so
16 See also the :zephyr:code-sample:`net-capture` sample application from the Zephyr
22 The instructions here describe how to setup a Linux host to capture Zephyr
59 ``net-capture.py`` script from ``net-tools`` project to print or save the
60 captured network packets. The ``net-capture.py`` provides an UDP listener,
66 $ ./net-capture.py -i zeth-ip6ip -w capture.pcap
76 The ``net-capture.py`` has following command line options:
81 ./net-capture.py \
85 UDP port (default is 4242) where the capture data is received
93 Instead of the ``net-capture.py`` script, you can for example use ``netcat``
[all …]
Dqemu_802154_setup.rst22 If you want to capture the transferred network data, you must compile the
47 If you want to capture the network traffic between the two QEMUs, type:
54 :gen-args: -G'Unix Makefiles' -DEXTRA_CONF_FILE=overlay-qemu_802154.conf -DPCAP=capture.pcap
58 Note that the ``make`` must be used for ``server`` target if packet capture
59 option is set in command line. The ``build/server/capture.pcap`` file will contain the
/Zephyr-latest/include/zephyr/net/
Dcapture.h2 * @brief Network packet capture definitions
24 * @brief Network packet capture support functions
25 * @defgroup net_capture Network packet capture
71 * @param dev Network capture device. This is returned to the caller.
73 * @return 0 if ok, <0 if network packet capture setup failed
84 * @param dev Network capture device. User must allocate using the
87 * @return 0 if ok, <0 if network packet capture cleanup failed
110 * @param dev Network capture device
111 * @param iface Network interface we are starting to capture packets.
113 * @return 0 if ok, <0 if network packet capture enable failed
[all …]
/Zephyr-latest/samples/net/capture/
Dsample.yaml5 description: Network packet capture
6 name: Network packet capture sample application
8 sample.net.capture:
11 - capture
DREADME.rst1 .. zephyr:code-sample:: net-capture
2 :name: Network packet capture
5 Capture network packets and send them to a remote host via IPIP tunnel.
11 to enable network packet capture.
32 :zephyr-app: samples/net/capture
104 Network Capture Configuration
148 uart:~$ net capture setup 192.0.2.2 2001:db8:200::1 2001:db8:200::2
149 Capture setup done, next enable it by "net capture enable <idx>"
151 The ``net capture`` command will show current configuration. As we have not
156 uart:~$ net capture
[all …]
DKconfig1 # Private config options for capture sample app
6 mainmenu "Networking capture sample application"
/Zephyr-latest/subsys/net/lib/shell/
Dcapture.c15 #include <zephyr/net/capture.h>
83 PR_INFO("Network packet capture %s\n", "not configured"); in cmd_net_capture()
89 PR_INFO("Network packet capture %s\n", in cmd_net_capture()
102 "CONFIG_NET_CAPTURE", "network packet capture"); in cmd_net_capture()
132 PR_INFO("Capture already setup, cleaning up settings.\n"); in cmd_net_capture_setup()
139 PR_WARNING("Capture cannot be setup (%d)\n", ret); in cmd_net_capture_setup()
143 PR_INFO("Capture setup done, next enable it by " in cmd_net_capture_setup()
144 "\"net capture enable <idx>\"\n"); in cmd_net_capture_setup()
150 "CONFIG_NET_CAPTURE", "network packet capture"); in cmd_net_capture_setup()
170 PR_WARNING("Capture %s failed (%d)\n", "cleanup", ret); in cmd_net_capture_cleanup()
[all …]
/Zephyr-latest/tests/drivers/pwm/pwm_loopback/src/
Dtest_pwm_loopback.c31 /* PWM capture device */ in get_test_pwms()
51 TC_PRINT("Testing PWM capture @ %u/%u nsec\n", in test_capture()
58 TC_PRINT("Testing PWM capture @ %u/%u usec\n", in test_capture()
91 TC_PRINT("capture type not supported\n"); in test_capture()
95 zassert_equal(err, 0, "failed to capture pwm (err %d)", err); in test_capture()
99 "period capture off by more than 1%"); in test_capture()
104 "pulse capture off by more than 1%"); in test_capture()
174 TC_PRINT("Pulse capture not supported, " in ZTEST_USER()
175 "trying period capture\n"); in ZTEST_USER()
181 zassert_equal(err, -EAGAIN, "pwm capture did not timeout (err %d)", in ZTEST_USER()
[all …]
/Zephyr-latest/samples/drivers/video/capture/
DREADME.rst1 .. zephyr:code-sample:: video-capture
2 :name: Video capture
5 Use the video API to retrieve video frames from a capture device.
10 This sample application uses the :ref:`video_api` to capture frames from a video capture
16 This sample needs a video capture device (e.g. a camera) but it is not mandatory.
27 Also :ref:`arduino_nicla_vision_board` can be used in this sample as capture device, in that case
49 :zephyr-app: samples/drivers/video/capture
58 :zephyr-app: samples/drivers/video/capture
67 :zephyr-app: samples/drivers/video/capture
72 For testing purpose without the need of any real video capture and/or display hardwares,
[all …]
/Zephyr-latest/samples/net/capture/src/
Dmain.c14 #include <zephyr/net/capture.h>
133 * - Start to capture data from cooked mode capture interface in init_app()
139 * net capture setup 192.0.2.2 2001:db8:200::1 2001:db8:200::2 in init_app()
140 * net capture enable 2 in init_app()
145 * The "net capture setup" creates a tunnel. The tunnel is IPv6 in init_app()
165 * Virtual name : Cooked mode capture in init_app()
181 * Virtual name : Capture tunnel in init_app()
194 * cooked capture packets are written by the capture API to sink interface 1. in init_app()
196 * The "net capture enable 2" command will cause the packets sent to interface 2 in init_app()
197 * to be written to capture interface 4, which in turn capsulates the packets and in init_app()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dpwm.h41 * @name PWM capture configuration flags
54 /** PWM pin capture captures period. */
57 /** PWM pin capture captures pulse width. */
60 /** PWM pin capture captures both period and pulse width. */
64 /** PWM pin capture captures a single period/pulse width. */
67 /** PWM pin capture captures period/pulse width continuously. */
373 * @brief PWM capture callback handler function signature
377 * @note @kconfig{CONFIG_PWM_CAPTURE} must be selected to enable PWM capture
386 * @param status Status for the PWM capture (0 if no error, negative errno
415 * @brief PWM driver API call to configure PWM capture.
[all …]
/Zephyr-latest/dts/bindings/video/
Dst,stm32-dcmi.yaml22 capture-rate = <1>;
100 capture-rate:
108 The DCMI can capture all frames or alternate frames. If it is not specified,
110 1 Capture all frames.
111 2 Capture alternate frames.
112 4 Capture one frame every 4 frames.
/Zephyr-latest/dts/bindings/pwm/
Despressif,esp32-mcpwm.yaml14 and a capture module.
31 Channel 6 -> Capture 0
32 Channel 7 -> Capture 1
33 Channel 8 -> Capture 2
35 Example: Use PWM0A output and capture 0:
40 <&mcpwm0 6 0 PWM_POLARITY_NORMAL>; #Channel 6 -> Capture 0;
/Zephyr-latest/soc/microchip/mec/mec172x/reg/
Dmec172x_p80bd.h21 * b[7:0] = data byte from capture FIFO
77 /* Capture 32-bit (RO). Current 4-byte Port 80 capture value */
80 /** @brief BIOS Debug Port 80h and Alias port capture registers. */
88 volatile uint32_t CAPTURE; member
/Zephyr-latest/samples/drivers/video/capture_to_lvgl/
Dsample.yaml2 name: Video capture to LVGL
18 - "Capture started"

12345678910