Home
last modified time | relevance | path

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

12345678

/Zephyr-Core-3.6.0/drivers/pwm/
Dpwm_mc_esp32.c74 struct mcpwm_esp32_capture_config capture; member
278 struct mcpwm_esp32_capture_config *capture = &channel->capture; in mcpwm_esp32_configure_capture() local
286 LOG_ERR("PWM capture only supported on channels 6, 7 and 8"); in mcpwm_esp32_configure_capture()
290 if (data->hal.dev->cap_chn_cfg[capture->capture_signal].capn_en) { in mcpwm_esp32_configure_capture()
291 LOG_ERR("PWM Capture already in progress"); in mcpwm_esp32_configure_capture()
296 LOG_ERR("No PWM capture type specified"); in mcpwm_esp32_configure_capture()
301 capture->capture_signal = channel->idx - CAPTURE_CHANNEL_IDX; in mcpwm_esp32_configure_capture()
302 capture->callback = cb; in mcpwm_esp32_configure_capture()
303 capture->user_data = user_data; in mcpwm_esp32_configure_capture()
304 capture->capture_period = (flags & PWM_CAPTURE_TYPE_PERIOD); 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_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. */
156 /** Channel to enable capture interrupt mapping. */
162 /** Channel to disable capture interrupt mapping. */
168 /** Channel to is capture active flag mapping. */
180 /** 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.
Dpwm_nxp_s32_emios.c57 struct pwm_nxp_s32_capture_data capture[EMIOS_ICU_IP_NUM_OF_CHANNELS]; member
271 LOG_ERR("Invalid PWM capture flag"); in pwm_nxp_s32_capture_configure()
287 data->capture[channel].continuous = (flags & PWM_CAPTURE_MODE_MASK); in pwm_nxp_s32_capture_configure()
288 data->capture[channel].inverted = (flags & PWM_POLARITY_MASK); in pwm_nxp_s32_capture_configure()
289 data->capture[channel].pulse_capture = (flags & PWM_CAPTURE_TYPE_PULSE); in pwm_nxp_s32_capture_configure()
290 data->capture[channel].period_capture = (flags & PWM_CAPTURE_TYPE_PERIOD); in pwm_nxp_s32_capture_configure()
291 data->capture[channel].callback = cb; in pwm_nxp_s32_capture_configure()
292 data->capture[channel].user_data = user_data; in pwm_nxp_s32_capture_configure()
316 if (!data->capture[channel].callback) { in pwm_nxp_s32_capture_enable()
328 if (data->capture[channel].period_capture && !data->capture[channel].pulse_capture) { in pwm_nxp_s32_capture_enable()
[all …]
/Zephyr-Core-3.6.0/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
51 module-str = Log level for network capture API
52 module-help = Enables network capture API debug messages.
/Zephyr-Core-3.6.0/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
57 ``net-capture.py`` script from ``net-tools`` project to print or save the
58 captured network packets. The ``net-capture.py`` provides an UDP listener,
64 $ ./net-capture.py -i zeth-ip6ip -w capture.pcap
74 The ``net-capture.py`` has following command line options:
79 ./net-capture.py \
83 UDP port (default is 4242) where the capture data is received
91 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-Core-3.6.0/include/zephyr/net/
Dcapture.h2 * @brief Network packet capture definitions
23 * @brief Network packet capture support functions
24 * @defgroup net_capture Network packet capture
68 * @param dev Network capture device. This is returned to the caller.
70 * @return 0 if ok, <0 if network packet capture setup failed
81 * @param dev Network capture device. User must allocate using the
84 * @return 0 if ok, <0 if network packet capture cleanup failed
107 * @param dev Network capture device
108 * @param iface Network interface we are starting to capture packets.
110 * @return 0 if ok, <0 if network packet capture enable failed
[all …]
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Dcapture.c15 #include <zephyr/net/capture.h>
78 PR_INFO("Network packet capture %s\n", "not configured"); in cmd_net_capture()
84 PR_INFO("Network packet capture %s\n", in cmd_net_capture()
97 "CONFIG_NET_CAPTURE", "network packet capture"); in cmd_net_capture()
127 PR_INFO("Capture already setup, cleaning up settings.\n"); in cmd_net_capture_setup()
134 PR_WARNING("Capture cannot be setup (%d)\n", ret); in cmd_net_capture_setup()
138 PR_INFO("Capture setup done, next enable it by " in cmd_net_capture_setup()
139 "\"net capture enable <idx>\"\n"); in cmd_net_capture_setup()
145 "CONFIG_NET_CAPTURE", "network packet capture"); in cmd_net_capture_setup()
165 PR_WARNING("Capture %s failed (%d)\n", "cleanup", ret); in cmd_net_capture_cleanup()
[all …]
/Zephyr-Core-3.6.0/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 …]
/Zephyr-Core-3.6.0/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()
89 TC_PRINT("capture type not supported\n"); in test_capture()
93 zassert_equal(err, 0, "failed to capture pwm (err %d)", err); in test_capture()
97 "period capture off by more than 1%"); in test_capture()
102 "pulse capture off by more than 1%"); in test_capture()
172 TC_PRINT("Pulse capture not supported, " in ZTEST_USER()
173 "trying period capture\n"); in ZTEST_USER()
179 zassert_equal(err, -EAGAIN, "pwm capture did not timeout (err %d)", in ZTEST_USER()
[all …]
/Zephyr-Core-3.6.0/samples/subsys/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.
11 video capture device, writes a frame count message to the console, and then
17 This sample requires a video capture device (e.g. a camera).
36 :zephyr-app: samples/subsys/video/capture
51 Capture started
Dsample.yaml2 name: Video capture
4 sample.video.capture:
/Zephyr-Core-3.6.0/include/zephyr/drivers/
Dpwm.h39 * @name PWM capture configuration flags
52 /** PWM pin capture captures period. */
55 /** PWM pin capture captures pulse width. */
58 /** PWM pin capture captures both period and pulse width. */
62 /** PWM pin capture captures a single period/pulse width. */
65 /** PWM pin capture captures period/pulse width continuously. */
371 * @brief PWM capture callback handler function signature
375 * @note @kconfig{CONFIG_PWM_CAPTURE} must be selected to enable PWM capture
384 * @param status Status for the PWM capture (0 if no error, negative errno
413 * @brief PWM driver API call to configure PWM capture.
[all …]
/Zephyr-Core-3.6.0/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-Core-3.6.0/soc/arm/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-Core-3.6.0/drivers/sensor/nuvoton_tach_npcx/
Dtach_nuvoton_npcx.c14 * two independent timers (counter 1 and 2). They are used to capture a counter
18 * | Capture A
24 * | Capture B
33 * (NPCX Tachometer Mode 5, Dual-Independent Input Capture)
38 * contents to Capture register and reload counter. Based on this value, we can
74 uint32_t capture; member
97 /* Set the default value of counter and capture register of timer 1. */ in tach_npcx_start_port_a()
103 * transition) and enable the functionality to capture TCNT1 into TCRA in tach_npcx_start_port_a()
121 /* Set the default value of counter and capture register of timer 2. */ in tach_npcx_start_port_b()
127 * transition) and enable the functionality to capture TCNT2 into TCRB in tach_npcx_start_port_b()
[all …]
/Zephyr-Core-3.6.0/doc/connectivity/networking/api/
Dcapture.rst3 Network Packet Capture
21 See :zephyr:code-sample:`net-capture` sample application and
/Zephyr-Core-3.6.0/samples/subsys/video/tcpserversink/
DREADME.rst5 Capture video frames and send them over the network to a TCP client.
10 This sample application gets frames from a video capture device and sends
16 This samples requires a video capture device and network support.
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_behavior/pytest/
Dsaleae_logic2.py37 capture_configuration=capture_configuration) as capture:
39 capture.wait()
41 capture.export_raw_data_csv(directory=output_dir,
51 # Last sample is just captured at last moment of capture, not related

12345678