| /Zephyr-4.3.0/tests/bsim/bluetooth/audio_samples/cap/ |
| D | compile.sh | 14 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_initiator \ 16 conf_file=${sample}/prj.conf \ 17 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 20 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_acceptor \ 22 conf_file=${sample}/prj.conf \ 23 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 26 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_initiator \ 27 conf_file=${sample}/prj.conf \ 28 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 31 sample=${ZEPHYR_BASE}/samples/bluetooth/cap_acceptor \ [all …]
|
| /Zephyr-4.3.0/drivers/sensor/melexis/mlx90394/ |
| D | mlx90394_async.c | 56 (int16_t)((uint16_t)data->sample.x_l | (uint16_t)(data->sample.x_h << 8)); in mlx90394_async_fetch() 60 (int16_t)((uint16_t)data->sample.y_l | (uint16_t)(data->sample.y_h << 8)); in mlx90394_async_fetch() 64 (int16_t)((uint16_t)data->sample.z_l | (uint16_t)(data->sample.z_h << 8)); in mlx90394_async_fetch() 67 edata->readings[3] = (int16_t)((uint16_t)data->sample.temp_l | in mlx90394_async_fetch() 68 (uint16_t)(data->sample.temp_h << 8)); in mlx90394_async_fetch() 72 (int16_t)((uint16_t)data->sample.x_l | (uint16_t)(data->sample.x_h << 8)); in mlx90394_async_fetch() 74 (int16_t)((uint16_t)data->sample.y_l | (uint16_t)(data->sample.y_h << 8)); in mlx90394_async_fetch() 76 (int16_t)((uint16_t)data->sample.z_l | (uint16_t)(data->sample.z_h << 8)); in mlx90394_async_fetch() 80 (int16_t)((uint16_t)data->sample.x_l | (uint16_t)(data->sample.x_h << 8)); in mlx90394_async_fetch() 82 (int16_t)((uint16_t)data->sample.y_l | (uint16_t)(data->sample.y_h << 8)); in mlx90394_async_fetch() [all …]
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/audio_samples/ccp/ |
| D | compile.sh | 14 sample=${ZEPHYR_BASE}/samples/bluetooth/ccp_call_control_server \ 15 conf_file=${sample}/prj.conf \ 16 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 19 sample=${ZEPHYR_BASE}/samples/bluetooth/ccp_call_control_client \ 20 conf_file=${sample}/prj.conf \ 21 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 25 sample=${ZEPHYR_BASE}/samples/bluetooth/ccp_call_control_server \ 26 conf_file=${sample}/prj.conf \ 27 conf_overlay=${sample}/overlay-bt_ll_sw_split.conf \ 30 sample=${ZEPHYR_BASE}/samples/bluetooth/ccp_call_control_client \ [all …]
|
| /Zephyr-4.3.0/doc/connectivity/usb/device_next/ |
| D | vid_pid.rst | 10 Each USB :zephyr:code-sample-category:`sample<usb>` has its own unique Product ID. 20 | :zephyr:code-sample:`usb-cdc-acm` | 0x0001 | 26 | :zephyr:code-sample:`usb-cdc-acm-console` | 0x0004 | 28 | :zephyr:code-sample:`usb-dfu` (Run-Time) | 0x0005 | 32 | :zephyr:code-sample:`usb-hid-mouse` | 0x0007 | 34 | :zephyr:code-sample:`usb-mass` | 0x0008 | 36 | :zephyr:code-sample:`testusb-app` | 0x0009 | 38 | :zephyr:code-sample:`webusb` | 0x000A | 40 | :zephyr:code-sample:`bluetooth_hci_usb` | 0x000B | 46 | :zephyr:code-sample:`uac2-explicit-feedback` | 0x000E | [all …]
|
| /Zephyr-4.3.0/samples/subsys/usb/common/ |
| D | Kconfig.sample_usbd | 9 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 Vendor ID" 28 USB device sample Vendor ID. The default id (0x2fe3) is associated to 33 hex "USB device sample Product ID" 36 USB device sample Product ID. You must use your own PID for samples [all …]
|
| /Zephyr-4.3.0/samples/ |
| D | sample_definition_and_criteria.rst | 9 A sample is a concise Zephyr application that provides an accessible overview of one or 21 * The primary purpose of a sample is to provide a reference to the user. 27 * If a sample can provide output that can be verified, then output should be evaluated against 28 expected value to have some level of testing for the sample itself. 31 * Although being able to run a sample successfully does verify the 34 :zephyr_file:`tests/` folder. In a sample, the only thing you test is 35 buildability and, in some cases, if a sample is performing as expected, i.e. you 36 are testing the sample, not the subsystem it builds on top. 38 2. Twister should be able to build every sample. 40 * Every sample must have a YAML file. Reference: :ref:`twister_script`. [all …]
|
| /Zephyr-4.3.0/subsys/sensing/sensor/hinge_angle/ |
| D | hinge_angle.c | 27 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-4.3.0/samples/drivers/uart/async_api/ |
| D | README.rst | 1 .. zephyr:code-sample:: uart_async 10 This sample demonstrates how to use the UART serial driver asynchronous 23 Build and flash the sample as follows, changing ``nrf52840dk/nrf52840`` for 40 [00:00:05.001,919] <inf> sample: Loop 0: Sending 3 packets 41 [00:00:05.002,008] <inf> sample: RX is now enabled 43 [00:00:10.002,086] <inf> sample: Loop 1: Sending 1 packets 44 [00:00:10.002,138] <inf> sample: RX is now disabled 47 [00:00:15.002,215] <inf> sample: Loop 2: Sending 2 packets 48 [00:00:15.002,293] <inf> sample: RX is now enabled 49 [00:00:15.009,010] <inf> sample: RX_RDY [all …]
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/audio_samples/bap_unicast_client/ |
| D | compile.sh | 15 sample=${ZEPHYR_BASE}/samples/bluetooth/bap_unicast_client \ 16 conf_file=${sample}/prj.conf \ 17 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 23 sample=${ZEPHYR_BASE}/samples/bluetooth/bap_unicast_client \ 24 conf_file=${sample}/prj.conf \ 25 conf_overlay=${sample}/overlay-bt_ll_sw_split.conf \
|
| /Zephyr-4.3.0/samples/subsys/ipc/openamp_rsc_table/ |
| D | README.rst | 1 .. 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-4.3.0/samples/net/sockets/http_client/ |
| D | Kconfig | 1 # 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-4.3.0/doc/templates/ |
| D | sample.tmpl | 1 .. 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-4.3.0/samples/subsys/rtio/sensor_batch_processing/ |
| D | app.overlay | 15 sample-period = <100>; 16 sample-size = <16>; 24 sample-period = <120>; 25 sample-size = <16>;
|
| /Zephyr-4.3.0/samples/drivers/dac/ |
| D | Kconfig | 1 # Private config options for dac sample 7 mainmenu "DAC sample application" 14 bool "Run DAC sample application" 17 platform supports dac sample 22 If this config is turned on, the sample will run with no output buffer enabled
|
| /Zephyr-4.3.0/samples/posix/philosophers/ |
| D | README.rst | 1 .. zephyr:code-sample:: posix-philosophers 9 This sample implements Zephyr's :zephyr:code-sample:`dining-philosophers` sample using the 10 :ref:`POSIX API <posix_support>`. The source code for this sample can be found under 42 Like the original philosophers sample, the POSIX variant also enables 55 For additional information, please refer to the :zephyr:code-sample:`dining-philosophers` sample.
|
| /Zephyr-4.3.0/samples/net/virtual/ |
| D | README.rst | 1 .. 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-4.3.0/samples/sysbuild/hello_world/ |
| D | README.rst | 1 .. 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/sysbuild/hello_world/sample.yaml` setup: 49 :west-args: -T sample.sysbuild.hello_world.nrf54h20dk_cpuapp_cpurad [all …]
|
| /Zephyr-4.3.0/tests/subsys/portability/cmsis_rtos_v2/src/ |
| D | msgq.c | 30 struct sample_data sample; in send_msg_thread() local 37 sample.data1 = MESSAGE1; in send_msg_thread() 38 status = osMessageQueuePut(message_id, &sample, 0, osWaitForever); in send_msg_thread() 65 sample.data1 = MESSAGE2; in send_msg_thread() 66 status = osMessageQueuePut(message_id, &sample, 0, 0); in send_msg_thread() 72 sample.data1 = MESSAGE2; in send_msg_thread() 73 status = osMessageQueuePut(message_id, &sample, 0, TIMEOUT_TICKS / 2); in send_msg_thread() 77 sample.data1 = MESSAGE2; in send_msg_thread() 78 status = osMessageQueuePut(message_id, &sample, 0, TIMEOUT_TICKS * 2); in send_msg_thread() 147 struct sample_data sample; in ZTEST() local [all …]
|
| /Zephyr-4.3.0/samples/bluetooth/peripheral_hids/ |
| D | README.rst | 1 .. zephyr:code-sample:: ble_peripheral_hids 10 Similar to the :zephyr:code-sample:`ble_peripheral` sample, except that this 14 In the default configuration the sample uses passkey authentication (displays a 18 sample with ``CONFIG_SAMPLE_BT_USE_AUTHENTICATION=n``. 29 See :zephyr:code-sample-category:`bluetooth` samples for details.
|
| /Zephyr-4.3.0/samples/bluetooth/central_otc/ |
| D | README.rst | 1 .. zephyr:code-sample:: ble_central_otc 10 Similar to the :zephyr:code-sample:`ble_central` sample, except that this 12 And this sample is to select object sequentially, to read metadata, to write data, 22 See :zephyr:code-sample-category:`bluetooth` samples for details.
|
| /Zephyr-4.3.0/samples/subsys/fs/ext2_fstab/ |
| D | README.rst | 1 .. zephyr:code-sample:: ext2-fstab 10 This sample shows how to define an ext2 fstab entry in the devicetree. 11 The sample is run on the ``native_sim`` board and RAM disk is used for ext2 storage. 16 To run this sample, build it for the ``native_sim`` board 19 The RAM disk sample for the ``native_sim`` board can be built as follows: 32 When the sample runs successfully you should see following message on the screen:
|
| /Zephyr-4.3.0/samples/subsys/fs/fatfs_fstab/ |
| D | README.rst | 1 .. zephyr:code-sample:: fatfs-fstab 10 This sample shows how to define a fatfs fstab entry in the devicetree. 11 This scenario uses a fatfs on a RAM disk. The sample is run on the 17 To run this sample, build it for the ``native_sim`` board 20 The RAM disk sample for the ``native_sim`` board can be built as follows: 33 When the sample runs successfully you should see following message on the screen:
|
| /Zephyr-4.3.0/drivers/input/ |
| D | input_pinnacle.c | 209 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-4.3.0/samples/bluetooth/iso_central/ |
| D | README.rst | 1 .. zephyr:code-sample:: ble_central_iso 10 This sample demonstrates how to use an isochronous channel as a central. 11 The sample scans for a peripheral, establishes a connection, and sets up a connected isochronous ch… 13 It is recommended to run this sample together with the :zephyr:code-sample:`ble_peripheral_iso` sam… 15 To run the sample with an encrypted isochronous channel, enable :kconfig:option:`CONFIG_BT_SMP`. 44 See :zephyr:code-sample-category:`bluetooth` samples for more details.
|
| /Zephyr-4.3.0/samples/subsys/fs/format/ |
| D | README.rst | 1 .. 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 :file:`prj_ram.conf` needs to be used by setting 27 The Flash sample for the nrf 52DK board can be built as follow: 35 The RAM disk sample for the MIMXRT1064-EVK board can be built as follow: 47 When the sample runs successfully you should see following message on the screen:
|