Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 1163) sorted by relevance

12345678910>>...47

/Zephyr-Core-3.7.0/tests/bsim/bluetooth/audio_samples/
Dcompile.sh18 sample=${ZEPHYR_BASE}/samples/bluetooth/bap_unicast_client \
19 conf_file=${sample}/prj.conf \
20 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \
26 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_initiator \
28 conf_file=${sample}/prj.conf \
29 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \
32 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_initiator \
33 conf_file=${sample}/prj.conf \
34 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \
37 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_acceptor \
[all …]
/Zephyr-Core-3.7.0/samples/subsys/usb/common/
DKconfig.sample_usbd9 menu "USB sample options"
13 string "USB device sample manufacturer string"
16 USB device sample manufacturer string.
19 string "USB device sample product string"
20 default "USBD sample"
22 USB device sample product stringa.
25 hex "USB device sample Product ID"
28 USB device sample Product ID.
31 bool "USB device sample Self-powered attribute"
34 Set the Self-powered attribute in the sample configuration.
[all …]
/Zephyr-Core-3.7.0/subsys/sensing/sensor/hinge_angle/
Dhinge_angle.c27 struct sensing_sensor_value_3d_q31 sample[HINGE_REPORTER_NUM]; member
104 data->sample[0].readings[0].x, in calc_hinge_angle()
105 data->sample[0].readings[0].y, in calc_hinge_angle()
106 data->sample[0].readings[0].z); in calc_hinge_angle()
108 data->sample[1].readings[0].x, in calc_hinge_angle()
109 data->sample[1].readings[0].y, in calc_hinge_angle()
110 data->sample[1].readings[0].z); in calc_hinge_angle()
122 struct sensing_sensor_value_q31 *sample; in hinge_reporter_on_data_event() local
129 memcpy(&data->sample[i], buf, sizeof(data->sample[i])); in hinge_reporter_on_data_event()
139 ret = rtio_sqe_rx_buf(data->sqe, sizeof(*sample), sizeof(*sample), in hinge_reporter_on_data_event()
[all …]
/Zephyr-Core-3.7.0/samples/subsys/ipc/openamp_rsc_table/
DREADME.rst1 .. zephyr:code-sample:: openamp-rsc-table
13 * `Linux rpmsg client sample <https://elixir.bootlin.com/linux/latest/source/samples/rpmsg/rpmsg_cl…
16 This sample implementation is compatible with platforms that embed
30 Running the client sample
52 …[ 44.625407] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: new channel: 0x401 -> 0x40…
53 …[ 44.631401] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: incoming msg 1 (src: 0x400)
54 …[ 44.640614] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: incoming msg 2 (src: 0x400)
56 …[ 45.152269] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: incoming msg 99 (src: 0x40…
57 …[ 45.157678] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: incoming msg 100 (src: 0x4…
58 [ 45.158822] rpmsg_client_sample virtio0.rpmsg-client-sample.-1.1024: goodbye!
[all …]
/Zephyr-Core-3.7.0/samples/net/sockets/http_client/
DKconfig1 # Private config options for http-client sample app
6 mainmenu "Networking http-client sample application"
9 int "Send a sample HTTP query this many times"
12 Send a sample HTTP query this many times before exiting. A value of
13 zero means that the sample application in default way.
/Zephyr-Core-3.7.0/doc/templates/
Dsample.tmpl1 .. zephyr:code-sample:: a_unique_id_for_the_sample
2 :name: A descriptive short name for the sample
3 :relevant-api: space-separated list of Doxygen groups of APIs this sample is a good showcase of
5 Short text description of the sample. It is recommended to word this as if you were completing
6 the sentence "This code sample shows how to ...").
10 [A longer description about the sample and what it does]
25 [ How to build the sample and how to run it. Pointers to where to find the
26 sample in the source tree and how to configure it and run it for a specific
29 [When showing code-blocks with sample build command instructions, use the
/Zephyr-Core-3.7.0/tests/subsys/portability/cmsis_rtos_v2/src/
Dmsgq.c29 struct sample_data sample; in send_msg_thread() local
36 sample.data1 = MESSAGE1; in send_msg_thread()
37 status = osMessageQueuePut(message_id, &sample, 0, osWaitForever); in send_msg_thread()
66 sample.data1 = MESSAGE2; in send_msg_thread()
67 status = osMessageQueuePut(message_id, &sample, 0, 0); in send_msg_thread()
74 sample.data1 = MESSAGE2; in send_msg_thread()
75 status = osMessageQueuePut(message_id, &sample, 0, TIMEOUT_TICKS / 2); in send_msg_thread()
80 sample.data1 = MESSAGE2; in send_msg_thread()
81 status = osMessageQueuePut(message_id, &sample, 0, TIMEOUT_TICKS * 2); in send_msg_thread()
158 struct sample_data sample; in ZTEST() local
[all …]
/Zephyr-Core-3.7.0/samples/net/virtual/
DREADME.rst1 .. zephyr:code-sample:: virtual-network-interface
5 Create a sample virtual network interface.
10 This sample application creates a sample virtual network interface for
21 The sample provides tunnel interface which runs on top of the IPv6 tunnel.
23 The source code for this sample application can be found at:
35 to create a sample tunnels in host side.
41 Note that the sample application expects that the board provides
42 an Ethernet network interface. Build the sample application like this:
/Zephyr-Core-3.7.0/samples/subsys/rtio/sensor_batch_processing/
Dapp.overlay15 sample-period = <100>;
16 sample-size = <16>;
24 sample-period = <120>;
25 sample-size = <16>;
/Zephyr-Core-3.7.0/samples/
Dsample_definition_and_criteria.rst9 A sample is a concise Zephyr application that provides an accessible overview of one or
19 * The primary purpose of a sample is to provide a reference to the user.
25 * If a sample can provide output that can be verified, then output should be evaluated against
26 expected value to have some level of testing for the sample itself.
30 2. Twister should be able to build every sample.
32 * Every sample must have a YAML file. Reference: :ref:`twister_script`.
39 sample.kernel.cond_var:
55 * The sample itself can be evaluated using multiple configurations in the sample's YAML file.
56 For example, the sample is used to run with different logging modes using multiple scenarios
68 * Make the sample as generic as possible. Avoid making a sample platform specific unless it is
[all …]
/Zephyr-Core-3.7.0/samples/sysbuild/hello_world/
DREADME.rst1 .. zephyr:code-sample:: sysbuild_hello_world
4 Run a hello world sample on multiple board targets
9 The sample demonstrates how to build a Hello World application for two board
10 targets with :ref:`sysbuild`. This sample can be useful to test, for example,
22 This sample needs to be built with Sysbuild by using the ``--sysbuild`` option.
28 It is recommended to use sample setups from
29 :zephyr_file:`samples/sysbuild/hello_world/sample.yaml` using the
32 Here's an example to build and flash the sample for the
44 :zephyr_file:`samples/basic/multitarget_hello_world/sample.yaml` setup:
49 :west-args: -T sample.sysbuild.hello_world.nrf54h20dk_cpuapp_cpurad
[all …]
/Zephyr-Core-3.7.0/samples/subsys/usb/audio/headphones_microphone/
DREADME.rst1 .. zephyr:code-sample:: usb-audio-headphones-microphone
10 This sample app demonstrates use of a USB Audio driver by the Zephyr
11 project. This very simple sample that performs loopback over IN/OUT
18 In order to build the sample an overlay file with required options
23 After you have built and flashed the sample app image to your board, plug the
29 Steps to test the sample:
31 - Build and flash the sample as described above.
38 This sample can be found under
/Zephyr-Core-3.7.0/samples/subsys/usb/audio/headset/
DREADME.rst1 .. zephyr:code-sample:: usb-audio-headset
10 This sample app demonstrates use of a USB Audio driver by the Zephyr
11 project. This very simple sample that performs loopback over IN/OUT
17 In order to build the sample an overlay file with required options
22 After you have built and flashed the sample app image to your board, plug the
28 Steps to test the sample:
30 - Build and flash the sample as described above.
37 This sample can be found under
/Zephyr-Core-3.7.0/samples/bluetooth/periodic_adv_rsp/
DREADME.rst1 .. _bluetooth-periodic-advertising-rsp-sample:
12 This sample will scan for the corresponding sync sample and send the required
19 application specific. In this sample it is decided by the PAwR advertiser.
32 This sample can be found under :zephyr_file:`samples/bluetooth/periodic_adv_rsp` in
35 Use the sample found under :zephyr_file:`samples/bluetooth/periodic_sync_rsp` in the
36 Zephyr tree that will synchronize and respond to this sample.
/Zephyr-Core-3.7.0/drivers/input/
Dinput_pinnacle.c209 union pinnacle_sample sample; member
564 union pinnacle_sample *sample) in pinnacle_decode_sample() argument
570 sample->btn_primary = (rx[0] & BIT(0)) == BIT(0); in pinnacle_decode_sample()
572 sample->rel_x = ((rx[0] & BIT(4)) == BIT(4)) ? -(256 - rx[1]) : rx[1]; in pinnacle_decode_sample()
573 sample->rel_y = ((rx[0] & BIT(5)) == BIT(5)) ? -(256 - rx[2]) : rx[2]; in pinnacle_decode_sample()
575 sample->abs_x = ((rx[2] & 0x0F) << 8) | rx[0]; in pinnacle_decode_sample()
576 sample->abs_y = ((rx[2] & 0xF0) << 4) | rx[1]; in pinnacle_decode_sample()
577 sample->abs_z = rx[3] & 0x3F; in pinnacle_decode_sample()
581 static bool pinnacle_is_idle_sample(const union pinnacle_sample *sample) in pinnacle_is_idle_sample() argument
583 return (sample->abs_x == 0 && sample->abs_y == 0 && sample->abs_z == 0); in pinnacle_is_idle_sample()
[all …]
/Zephyr-Core-3.7.0/samples/subsys/fs/format/
DREADME.rst1 .. zephyr:code-sample:: fs-format
10 This sample shows how to format different storage
12 sample:
20 To run this sample, build it for the desired board and scenario and flash it.
24 To build the RAM disk sample, the configuration `prj_ram.conf` needs to be used by setting `CONF_FI…
26 The Flash sample for the nrf 52DK board can be build as follow:
34 The RAM disk sample for the MIMXRT1064-EVK board can be build as follow:
46 When the sample runs successfully you should see following message on the screen:
/Zephyr-Core-3.7.0/samples/drivers/charger/
DREADME.rst1 .. zephyr:code-sample:: charger
10 This sample demonstrates how to use the :ref:`charger_api` API.
12 The sample application performs a simple charging task loop.
15 - If power is provided to the charger, then the sample application will attempt to enable the charge
17 - After the charge cycle is initiated, the sample application will check the status property of the
21 Note that this sample terminates once the charge cycle completes and does not attempt to "top-off"
22 the battery pack. Additionally, the sample intentionally does not respond to the reported charger
/Zephyr-Core-3.7.0/samples/bluetooth/periodic_sync_rsp/
DREADME.rst1 .. _bluetooth-periodic-advertising-sync-rsp-sample:
12 This sample will echo the data received in subevent indications back to the
16 application specific. In this sample it is decided by the PAwR advertiser.
20 Flash this sample to multiple devices and they will be given different
33 This sample can be found under :zephyr_file:`samples/bluetooth/periodic_sync_rsp` in
36 Use the sample found under :zephyr_file:`samples/bluetooth/periodic_adv_rsp` on
38 sample and transfer the synchronization info.
/Zephyr-Core-3.7.0/samples/net/mqtt_publisher/
DKconfig1 # Config options for mqtt_publisher sample application
6 mainmenu "Networking mqtt_publisher sample application"
9 int "Number of times to Publish sample MQTT messages"
12 Send sample MQTT messages this many times in a MQTT connection
21 send NET_SAMPLE_APP_MAX_ITERATIONS amount of MQTT sample messages.
/Zephyr-Core-3.7.0/samples/drivers/i2c/custom_target/
DREADME.rst1 .. zephyr:code-sample:: i2c-custom-target
10 This sample demonstrates how to setup an I2C custom target on the I2C interface
16 This sample requires an I2C peripheral which is capable of acting as a target.
18 This sample has been tested on :ref:`lpcxpresso55s69`.
23 The code for this sample can be found in :zephyr_file:`samples/drivers/i2c_target`.
/Zephyr-Core-3.7.0/samples/drivers/i2c/target_eeprom/
DREADME.rst1 .. zephyr:code-sample:: i2c-eeprom-target
10 This sample demonstrates how to setup and use the :ref:`i2c-target-api` using the
16 This sample requires an I2C peripheral which is capable of acting as a target.
18 This sample has been tested on :ref:`lpcxpresso55s69`.
23 The code for this sample can be found in :zephyr_file:`samples/drivers/i2c_target`.
/Zephyr-Core-3.7.0/samples/drivers/i2s/output/
DREADME.rst1 .. zephyr:code-sample:: i2s-output
10 This sample demonstrates how to use an I2S driver to send an output stream of
11 audio data. Currently, no codec is used with this sample. The I2S output can
14 The sample will send a short burst of audio data, consisting of a sine wave.
20 The I2S device to be used by the sample is specified by defining
23 This sample has been tested on :ref:`mimxrt1060_evk` (mimxrt1060_evkb)
/Zephyr-Core-3.7.0/samples/subsys/usb/uac2_explicit_feedback/
DREADME.rst1 .. zephyr:code-sample:: uac2-explicit-feedback
2 :name: USB Audio asynchronous explicit feedback sample
5 USB Audio 2 explicit feedback sample playing audio on I2S.
10 This sample demonstrates how to implement USB asynchronous audio playback with
14 The device running this sample presents itself to the host as a Full-Speed
21 Asynchronous USB Audio is used when the actual sample clock is not controlled by
22 USB host. Because the sample clock is independent from USB SOF it is inevitable
27 The host achieves the average by sending either nominal or nominal ±1 sample
44 This sample in both modes (direct sample counting and indirect I2S buffer output
47 The sample defaults to indirect feedback calculation because direct sample
[all …]
/Zephyr-Core-3.7.0/samples/bluetooth/central_past/
DREADME.rst1 .. _bluetooth-central-past-sample:
20 This sample can be found under :zephyr_file:`samples/bluetooth/central_past` in
23 Use the sample found under :zephyr_file:`samples/bluetooth/periodic_adv` on
24 another board that will start periodic advertising, to which this sample will
27 Use the sample found under :zephyr_file:`samples/bluetooth/peripheral_past` in
/Zephyr-Core-3.7.0/drivers/sensor/amg88xx/
Damg88xx.c34 (uint8_t *)drv_data->sample, in amg88xx_sample_fetch()
35 sizeof(drv_data->sample))) { in amg88xx_sample_fetch()
47 size_t len = ARRAY_SIZE(drv_data->sample); in amg88xx_channel_get()
55 if (drv_data->sample[idx] & (1 << 11)) { in amg88xx_channel_get()
56 drv_data->sample[idx] |= 0xF000; in amg88xx_channel_get()
58 val[idx].val1 = (((int32_t)drv_data->sample[idx]) * in amg88xx_channel_get()
60 val[idx].val2 = (((int32_t)drv_data->sample[idx]) * in amg88xx_channel_get()

12345678910>>...47