Home
last modified time | relevance | path

Searched +full:sample +full:- +full:point +full:- +full:data (Results 1 – 25 of 116) sorted by relevance

12345

/Zephyr-latest/dts/bindings/can/
Dcan-fd-controller.yaml3 include: can-controller.yaml
6 bus-speed-data:
10 Deprecated. This property has been renamed to bitrate-data.
12 Initial data phase bitrate in bit/s. If this is unset, the initial data phase bitrate is set
14 bitrate-data:
17 Initial data phase bitrate in bit/s. If this is unset, the initial data phase bitrate is set
19 sample-point-data:
22 Initial data phase sample point in per mille (e.g. 875 equals 87.5%).
24 If this is unset (or if it is set to 0), the initial sample point will default to 75.0% for
/Zephyr-latest/doc/connectivity/networking/api/
Dppp.rst3 Point-to-Point Protocol (PPP) Support
13 `Point-to-Point Protocol
14 <https://en.wikipedia.org/wiki/Point-to-Point_Protocol>`_ (PPP) is a data link
17 cannot be transmitted over a modem line on their own, without some data link
29 * HDLC (High-level data link control,
36 For using PPP with a cellular modem, see :zephyr:code-sample:`cellular-modem` sample
42 See the `net-tools README`_ file for more details on how to test the Zephyr PPP
45 .. _net-tools README:
46 https://github.com/zephyrproject-rtos/net-tools/blob/master/README.md#ppp-connectivity
Dcapture.rst16 using ``net-shell`` or automatically by using the ``net_capture`` API.
23 network data when there is no network interface involved, then you need to use
28 packets in PPP can be captured, as the HDLC L2 layer data is stripped away when
30 network data could be captured although currently there is no support in the
42 layer 2 protocol type of the captured data. The cooked mode capture API is then
50 For example, in the sample capture application, these network interfaces
53 .. code-block:: c
86 In this example, the ``192.0.2.2`` is the address of the outer end point of the
93 The ``net capture enable 2`` net-shell command will cause the packets sent to
98 sample :zephyr_file:`samples/net/capture/overlay-tunnel.conf` file.
[all …]
/Zephyr-latest/tests/drivers/can/timing/src/
Dmain.c2 * Copyright (c) 2022-2024 Vestas Wind Systems A/S
5 * SPDX-License-Identifier: Apache-2.0
20 * @brief Allowed sample point calculation margin in permille.
30 /** Desired sample point in permille */
52 * @brief List of CAN FD data phase timing values to test.
55 /* CiA 601-2 recommended data phase bitrates */
78 const uint32_t ts = 1 + timing->prop_seg + timing->phase_seg1 + timing->phase_seg2; in assert_bitrate_correct()
83 zassert_not_equal(timing->prescaler, 0, "prescaler is zero"); in assert_bitrate_correct()
88 bitrate_calc = core_clock / timing->prescaler / ts; in assert_bitrate_correct()
105 zassert_true(timing->sjw <= max->sjw, "sjw exceeds max"); in assert_timing_within_bounds()
[all …]
/Zephyr-latest/doc/hardware/peripherals/can/
Dcontroller.rst13 Controller Area Network is a two-wire serial bus specified by the
14 Bosch CAN Specification, Bosch CAN with Flexible Data-Rate specification and the
15 ISO 11898-1:2003 standard.
26 The bit-timing as defined in ISO 11898-1:2003 looks as following:
39 * Phase_Seg1 and Phase_Seg2 :Define the sampling point. The bit is sampled at the end of Phase_Seg1.
41 The bit-rate is calculated from the time of a time quantum and the values
45 The bit-rate is the inverse of the length of a single bit.
47 A bit is sampled at the sampling point.
48 The sample point is between Phase_Seg1 and PhaseSeg2 and therefore is a
50 The CiA recommends setting the sample point to 87.5% of the bit.
[all …]
Dshell.rst31 timing for the CAN FD data phase).
38 For example, building the :zephyr:code-sample:`hello_world` sample for the :zephyr:board:`frdm_k64f…
41 .. zephyr-app-commands::
42 :zephyr-app: samples/hello_world
44 …:gen-args: -DCONFIG_SHELL=y -DCONFIG_CAN=y -DCONFIG_CAN_SHELL=y -DCONFIG_STATS=y -DCONFIG_CAN_STAT…
48 interact with the shell. The CAN shell comes with built-in help (unless
49 :kconfig:option:`CONFIG_SHELL_HELP` is disabled). The built-in help messages can be printed by
50 passing ``-h`` or ``--help`` to the ``can`` command or any of its subcommands. All subcommands also
51 support tab-completion of their arguments.
55 also supports tab-completion. A list of all devices available can be obtained using the ``device
[all …]
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dread_and_decode.rst1 .. _sensor-read-and-decode:
6 The quickly stabilizing experimental APIs for reading sensor data are:
14 Benefits over :ref:`sensor-fetch-and-get`
17 These APIs allow for a wider usage of sensors, sensor types, and data flows with
19 that have been run into with :ref:`sensor-fetch-and-get`.
21 :c:func:`sensor_read` and similar functions acquire sensor encoded data into
23 decodes the sensor specific encoded data into fixed point :c:type:`q31_t` values
24 as vectors per channel. This allows further processing using fixed point DSP
25 functions that work on vectors of data to be done (e.g. low-pass filters, FFT,
34 * Obtaining the raw sensor data, decoding never, later, or on a separate
[all …]
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/
Dmsgq.c4 * SPDX-License-Identifier: Apache-2.0
29 struct sample_data sample; in send_msg_thread() local
30 struct sample_data data[Q_LEN] = { { 0 } }; in send_msg_thread() local
35 /* Prepare and send the 1st message (a simple integer data) */ in send_msg_thread()
36 sample.data1 = MESSAGE1; in send_msg_thread()
37 status = osMessageQueuePut(message_id, &sample, 0, osWaitForever); in send_msg_thread()
40 /* The Queue should be empty at this point */ in send_msg_thread()
48 data[i].data1 = i * 3; in send_msg_thread()
49 data[i].data2 = i * 3 + 1; in send_msg_thread()
50 data[i].data3 = i * 3 + 2; in send_msg_thread()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dcan.h6 * SPDX-License-Identifier: Apache-2.0
45 * @brief Bit mask for a standard (11-bit) CAN identifier.
50 * @brief Bit mask for an extended (29-bit) CAN identifier.
55 * @brief Maximum data length code for CAN 2.0A/2.0B.
60 * @brief Maximum data length code for CAN FD.
66 * Internally calculated maximum data length
103 /** Controller requires manual recovery after entering bus-off state */
122 /** Error-active state (RX/TX error count < 96). */
124 /** Error-warning state (RX/TX error count < 128). */
126 /** Error-passive state (RX/TX error count < 256). */
[all …]
/Zephyr-latest/doc/services/file_system/
Dindex.rst8 mount point data structure contains all the necessary information required
17 :c:enumerator:`FS_TYPE_EXTERNAL_BASE` to avoid clashes with in-tree identifiers.
19 .. code-block:: c
26 the mount point as the disk volume name, which is used by the file system library
31 .. code-block:: c
41 - ``FS_FATFS`` is the file system type like FATFS or LittleFS.
42 - ``FATFS_MNTP`` is the mount point where the file system will be mounted.
43 - ``fat_fs`` is the file system data which will be used by fs_mount() API.
54 - ``samples/subsys/fs/fat_fs`` is an example of FAT file system usage with SDHC media;
55 - ``samples/subsys/shell/fs`` is an example of Shell fs subsystem, using internal flash partition
[all …]
/Zephyr-latest/samples/sensor/qdec/
DREADME.rst1 .. zephyr:code-sample:: qdec
3 :relevant-api: sensor_interface
5 Get rotation data from a quadrature decoder sensor.
10 This sample reads the value of the counter which has been configured in
21 In order to run this sample you need to:
24 * add a new alias property named ``qdec0`` and make it point to the decoder
30 .. code-block:: dts
43 pinctrl-0 = <&tim3_ch1_pa6 &tim3_ch2_pa7>;
44 pinctrl-names = "default";
45 st,input-polarity-inverted;
[all …]
/Zephyr-latest/samples/kernel/bootargs/
DREADME.rst1 .. zephyr:code-sample:: bootargs
9 This sample demonstrates use of bootargs passed to Zephyr by printing each main argument to the con…
26 .. zephyr-app-commands::
27 :zephyr-app: samples/kernel/bootargs
35 .. code-block:: console
37 *** Booting Zephyr OS build v3.7.0-514-gd4490bc739d1 ***
47 .. zephyr-app-commands::
48 :zephyr-app: samples/kernel/bootargs
56 .. code-block:: console
58 *** Booting Zephyr OS build v3.7.0-rc2-421-g3cf718e6dabc ***
[all …]
/Zephyr-latest/drivers/adc/
Dadc_stm32wb0.c4 * SPDX-License-Identifier: Apache-2.0
9 * - sampling: a single analog-to-digital conversion performed by the ADC
10 * - sequence: one or more sampling(s) performed one after the other by the
13 * - round: all ADC operations needed to read all channels in the adc_sequence passed
20 * - idle mode: clock & ADC configuration that minimizes power consumption
21 * - Only the ADC digital domain clock is turned on:
22 * - ADC is powered off (CTRL.ADC_CTRL_ADC_ON_OFF = 0)
23 * - ADC analog domain clock is turned off
24 * - If applicable:
25 * - ADC LDO is disabled
[all …]
/Zephyr-latest/samples/net/capture/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
34 const char *data; member
39 #define DATA(_ctx, _data, _type, _ptype) { \ macro
42 .data = _data, \
85 static const struct data_to_send data[] = { variable
86 DATA(&ctx_can, can_data, NET_CAPTURE_OUTGOING, NET_ETH_PTYPE_CAN),
87 DATA(&ctx_ppp, ppp_send_lcp_conf_req_data, NET_CAPTURE_OUTGOING, NET_ETH_PTYPE_HDLC),
88 DATA(&ctx_ppp, ppp_recv_lcp_conf_req_data, NET_CAPTURE_HOST, NET_ETH_PTYPE_HDLC),
89 DATA(&ctx_ppp, ppp_send_lcp_conf_rej_data, NET_CAPTURE_OUTGOING, NET_ETH_PTYPE_HDLC),
97 "Enable %s to use the sample shell.\n", in cmd_sample_send()
[all …]
/Zephyr-latest/dts/bindings/spi/
Dnxp,dspi.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: ["spi-controller.yaml", "pinctrl-device.yaml"]
20 pcs-sck-delay:
26 sck-pcs-delay:
32 transfer-delay:
38 pinctrl-0:
41 nxp,rx-tx-chn-share:
48 ctar register selection range form 0-1 for master mode, 0 for slave mode
50 sample-point:
56 continuous-sck:
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl372/
DKconfig1 # Micropower, 3-Axis, +/-200g Digital Accelerometer
4 # SPDX-License-Identifier: Apache-2.0
7 bool "ADXL372 Three Axis High-g I2C/SPI accelerometer"
14 Enable driver for ADXL372 Three-Axis Digital Accelerometers.
25 In most high-g applications, a single (3-axis) acceleration sample at
29 Peak Acceleration between two consecutive sample fetches.
34 In this mode, acceleration data is provided continuously at the
35 output data rate (ODR).
47 int "In-activity threshold in mg"
51 Threshold for in-activity detection.
[all …]
/Zephyr-latest/tests/ztest/base/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
23 zassert_not_ok(-EIO); in ZTEST()
71 * Sample fixture tests
93 * Sample rule tests
110 static void rule_before_each(const struct ztest_unit_test *test, void *data) in rule_before_each() argument
112 if (strcmp(test->test_suite_name, "rules_tests") == 0 && in rule_before_each()
113 strcmp(test->name, "test_rules_before_after") == 0) { in rule_before_each()
114 struct rules_tests_fixture *fixture = data; in rule_before_each()
116 zassert_equal_ptr(&rule_tests_fixture, data, in rule_before_each()
117 "Data expected to point to rule_state"); in rule_before_each()
[all …]
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c4 * SPDX-License-Identifier: Apache-2.0
16 const struct tcn75a_config *config = dev->config; in tcn75a_sample_fetch()
17 struct tcn75a_data *data = dev->data; in tcn75a_sample_fetch() local
24 return -ENOTSUP; in tcn75a_sample_fetch()
27 if (config->oneshot_mode) { in tcn75a_sample_fetch()
30 ret = i2c_write_dt(&config->i2c_spec, adc_conf, 2); in tcn75a_sample_fetch()
36 /* Fetch a sample from the 2 byte ambient temperature register */ in tcn75a_sample_fetch()
37 ret = i2c_write_read_dt(&config->i2c_spec, &temp_reg, sizeof(temp_reg), in tcn75a_sample_fetch()
43 data->temp_sample = sys_get_be16(rx_buf); in tcn75a_sample_fetch()
44 LOG_DBG("Raw sample: 0x%04x", data->temp_sample); in tcn75a_sample_fetch()
[all …]
/Zephyr-latest/drivers/can/
Dcan_shell.c5 * SPDX-License-Identifier: Apache-2.0
36 /* zephyr-keep-sorted-start */
38 CAN_SHELL_MODE_MAPPING("listen-only", CAN_MODE_LISTENONLY),
40 CAN_SHELL_MODE_MAPPING("manual-recovery", CAN_MODE_MANUAL_RECOVERY),
42 CAN_SHELL_MODE_MAPPING("one-shot", CAN_MODE_ONE_SHOT),
43 CAN_SHELL_MODE_MAPPING("triple-sampling", CAN_MODE_3_SAMPLES),
44 /* zephyr-keep-sorted-stop */
77 static void can_shell_dummy_bypass_cb(const struct shell *sh, uint8_t *data, size_t len) in can_shell_dummy_bypass_cb() argument
80 ARG_UNUSED(data); in can_shell_dummy_bypass_cb()
88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame()
[all …]
/Zephyr-latest/samples/subsys/shell/fs/
DREADME.rst1 .. zephyr:code-sample:: shell-fs
3 :relevant-api: file_system_api
23 You can build this sample for :ref:`native_sim <native_sim>` with:
25 .. zephyr-app-commands::
26 :zephyr-app: samples/subsys/shell/fs
35 .. code-block:: console
37 zephyr/zephyr.exe -help
43 ---------------------------------------
49 search path and that a 32-bit version of libfuse is installed. For more
53 .. code-block:: console
[all …]
/Zephyr-latest/samples/bluetooth/channel_sounding/
DREADME.rst1 .. zephyr:code-sample:: ble_cs
3 :relevant-api: bt_gap bluetooth
12 The CS Test sample shows how to us the CS test command to override randomization of certain channel
16 The connected CS sample shows how to set up regular channel sounding procedures on a connection
23 as a starting point for these samples.
25 Distance estimation using channel sounding requires data from two devices, and for that reason
26 the channel sounding results in the sample are exchanged in a simple way using a GATT characteristi…
27 This limits the amount of data that can be processed at once to about 512 bytes from each device,
29 about 35-40 channels, assuming a single antenna path.
49 See :zephyr:code-sample-category:`bluetooth` samples for details.
[all …]
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dfeedback_nrf53.c4 * SPDX-License-Identifier: Apache-2.0
41 * this sample uses target-specific code to perform the measurements. Note that
42 * the use of dedicated target-specific peripheral essentially eliminates
46 * Full-Speed isochronous feedback is Q10.10 unsigned integer left-justified in
47 * the 24-bits so it has Q10.14 format. This sample application puts zeroes to
109 LOG_ERR("nrfx timer init error (sample clk feedback) - Return value: %d", err); in feedback_edge_counter_setup()
142 LOG_ERR("nrfx timer init error (relative timer) - Return value: %d", err); in feedback_relative_timer_setup()
212 * USB host SOF clock) to fake sample clock shifted by P values. in update_sof_offset()
224 /* /2 because we treat the middle as a turning point from being in update_sof_offset()
228 sof_offset = framestart_cc - (SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
[all …]
/Zephyr-latest/tests/drivers/sensor/generic/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
22 struct sensor_value data; member
27 struct sensor_value data; member
73 * - get multiple channels values consistently in two operations:
74 * fetch sample and get the values of each channel individually.
75 * - check the results with sensor_value type avoids use of
76 * floating point values
79 * - function and block box testing,Interface testing,
83 * - N/A
86 * - N/A
[all …]
/Zephyr-latest/boards/snps/iotdk/doc/
Dindex.rst10 implementation of the ARC Data Fusion IP Subsystem running at 144 MHz on
11 SMIC's 55-nm ultra-low power process, and a rich set of peripherals commonly
22 <https://embarc.org/project/arc-iot-development-kit/>`__
35 board is to run standalone, the universal switching power adaptor (110-240V
40 * Terminal emulator software for use with the USB-UART. Suggestion:
60 Building Sample Applications
63 You can try many of the sample applications or tests, but let us discuss
64 the one called :zephyr:code-sample:`hello_world`.
68 -----------
70 You may need to write a prj_arc.conf file if the sample doesn't have one.
[all …]
/Zephyr-latest/samples/subsys/sip_svc/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
6 * A sample application using sip_svc subsystem to get query values from secure device.
33 struct private_data *priv = (struct private_data *)response->priv_data; in get_voltage_callback()
35 uint32_t *resp_data = (uint32_t *)response->resp_data_addr; in get_voltage_callback()
36 uint32_t resp_len = response->resp_data_size / 4; in get_voltage_callback()
39 priv->voltage_channel0 = resp_data[1]; in get_voltage_callback()
42 k_sem_give(&(priv->semaphore)); in get_voltage_callback()
84 * header will contain the mailbox command and the size of command data to be sent in main()
87 cmd_addr[0] = ((cmd_size / 4 - 1) << 12) | GET_VOLTAGE_CMD; in main()
104 /* Voltage is retrieved as a fixed point number with 16 bits below binary point */ in main()

12345