Home
last modified time | relevance | path

Searched refs:sample (Results 51 – 75 of 1701) sorted by relevance

12345678910>>...69

/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345_decoder.c54 static inline void adxl345_accel_convert_q31(q31_t *out, int16_t sample, int32_t range, in adxl345_accel_convert_q31() argument
60 if (sample & BIT(9)) { in adxl345_accel_convert_q31()
61 sample |= ADXL345_COMPLEMENT_MASK(10); in adxl345_accel_convert_q31()
65 if (sample & BIT(10)) { in adxl345_accel_convert_q31()
66 sample |= ADXL345_COMPLEMENT_MASK(11); in adxl345_accel_convert_q31()
70 if (sample & BIT(11)) { in adxl345_accel_convert_q31()
71 sample |= ADXL345_COMPLEMENT_MASK(12); in adxl345_accel_convert_q31()
75 if (sample & BIT(12)) { in adxl345_accel_convert_q31()
76 sample |= ADXL345_COMPLEMENT_MASK(13); in adxl345_accel_convert_q31()
80 *out = sample * qscale_factor_full_res[range]; in adxl345_accel_convert_q31()
[all …]
/Zephyr-latest/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 :zephyr:board:`mimxrt1060_evk` (mimxrt1060_evkb)
/Zephyr-latest/samples/bluetooth/iso_broadcast/
DREADME.rst1 .. zephyr:code-sample:: bluetooth_isochronous_broadcaster
24 This sample can be found under :zephyr_file:`samples/bluetooth/iso_broadcast` in
27 The sample defaults to sequential packing of BIS subevents, add
30 Use the sample found under :zephyr_file:`samples/bluetooth/iso_receive` in the
32 generate BIGInfo reports and synchronize to BIG events from this sample.
34 See :zephyr:code-sample-category:`bluetooth` samples for details.
/Zephyr-latest/samples/subsys/portability/
Dportability.rst1 .. zephyr:code-sample-category:: portability
8 See also :zephyr:code-sample-category:`POSIX sample applications<posix>`.
/Zephyr-latest/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()
/Zephyr-latest/samples/psa/persistent_key/
DREADME.rst1 .. zephyr:code-sample:: persistent_key
9 This sample demonstrates usage of persistent keys in the :ref:`PSA Crypto API <psa_crypto>`.
16 (for storage of the persistent keys) must be present for this sample to work.
25 This sample is located in :zephyr_file:`samples/psa/persistent_key`.
27 Different configurations are defined in the :file:`sample.yaml` file.
28 You can use them to build the sample, depending on the PSA ITS provider, as follows:
41 :west-args: -T sample.psa.persistent_key.tfm
54 :west-args: -T sample.psa.persistent_key.secure_storage.entropy_driver
63 :west-args: -T sample.psa.persistent_key.secure_storage.entropy_not_secure
/Zephyr-latest/samples/sensor/co2_polling/
DREADME.rst1 .. zephyr:code-sample:: co2
2 :name: Generic CO2 polling sample
10 A sensor sample that demonstrates how to poll a CO2 sensor.
15 This sample reads the CO2 sensor and print the values continuously.
/Zephyr-latest/samples/net/syslog_net/
DKconfig1 # Private config options for syslog-net sample app
6 mainmenu "Networking syslog sample application"
9 int "Send sample data this many times"
12 Send sample data this many times before exiting. A value of
20 This server address gets set at rumtime by the sample
/Zephyr-latest/samples/drivers/auxdisplay/
DREADME.rst1 .. zephyr:code-sample:: auxdisplay
10 This sample shows how to use the :ref:`auxiliary display driver <auxdisplay_api>`
11 by outputting a sample "Hello World" text to one.
16 Note that this sample requires a board with an auxiliary display setup. A
17 sample overlay is provided for the ``nucleo_f746zg`` board fly-wired to a Hitachi
/Zephyr-latest/samples/basic/fade_led/
DREADME.rst1 .. zephyr:code-sample:: fade-led
21 This sample has the same requirements and wiring considerations as the
22 :zephyr:code-sample:`pwm-blinky` sample.
27 To build and flash this sample for the :ref:`nrf52840dk_nrf52840`:
37 After flashing, the sample starts fading the LED as described above. It also
/Zephyr-latest/samples/bluetooth/periodic_adv_conn/
DREADME.rst1 .. zephyr:code-sample:: ble_periodic_adv_conn
14 is application specific. This sample will connect to any synced device
27 This sample can be found under :zephyr_file:`samples/bluetooth/periodic_adv_conn` in
30 Use the sample found under :zephyr_file:`samples/bluetooth/periodic_sync_conn` in the
31 Zephyr tree that will synchronize and respond to this sample.
33 See :zephyr:code-sample-category:`bluetooth` samples for details.
/Zephyr-latest/drivers/sensor/f75303/
Df75303.c25 uint8_t off_h, uint8_t off_l, uint16_t *sample) in f75303_fetch() argument
41 *sample = val_h << 3 | val_l >> 5; in f75303_fetch()
120 uint16_t sample; in f75303_channel_get() local
124 sample = data->sample_local; in f75303_channel_get()
127 sample = data->sample_remote1; in f75303_channel_get()
130 sample = data->sample_remote2; in f75303_channel_get()
140 val->val1 = sample >> F75303_SAMPLE_INT_SHIFT; in f75303_channel_get()
141 val->val2 = (sample & F75303_SAMPLE_FRAC_MASK) * F75303_SAMPLE_MICROCELSIUS_PER_BIT; in f75303_channel_get()
/Zephyr-latest/samples/net/zperf/
DREADME.rst1 .. zephyr:code-sample:: zperf
10 The zperf sample demonstrates the :ref:`zperf shell utility <zperf>`, which
29 zperf is board-agnostic. However, to run the zperf sample application,
32 This sample application has been tested on the following platforms:
39 For best performance, the sample configures a lot of network packets and buffers.
40 Because of this, the sample's RAM requirements are quite large. In case the
41 sample does not fit into target platform RAM, reduce the following configs:
68 The IPv4 Wi-Fi support can be enabled in the sample with
/Zephyr-latest/samples/bluetooth/iso_peripheral/
DREADME.rst1 .. zephyr:code-sample:: ble_peripheral_iso
10 This sample demonstrates how to use isochronous channels as a peripheral.
11 The sample starts advertising, waits for a central to connect to it and set up an isochronous chann…
13 It is recommended to run this sample together with the :zephyr:code-sample:`ble_central_iso` sample.
26 This sample can be found under :zephyr_file:`samples/bluetooth/iso_peripheral` in the Zephyr tree.
67 See :zephyr:code-sample-category:`bluetooth` samples for more details.
/Zephyr-latest/samples/subsys/usb/webusb-next/
DREADME.rst1 .. zephyr:code-sample:: webusb-next
10 This sample demonstrates how to use the Binary Device Object Store (BOS),
12 sample application. The sample USB function receives the data and echoes back
14 This sample can be found at :zephyr_file:`samples/subsys/usb/webusb-next` in the
27 Build and flash webusb sample with:
38 The sample includes a simple WebUSB API application and can be found in the
39 sample directory: :zephyr_file:`samples/subsys/usb/webusb-next/index.html`.
41 There are two ways to access this sample page:
45 * Start a web server in the sample directory:
/Zephyr-latest/samples/bluetooth/peripheral_identity/
DREADME.rst1 .. zephyr:code-sample:: ble_peripheral_identity
10 This sample demonstrates use of multiple identity and the ability to be
22 This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_identity`
25 See :zephyr:code-sample-category:`bluetooth` samples for details.
/Zephyr-latest/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
27 Asynchronous USB Audio is used when the actual sample clock is not controlled by
28 USB host. Because the sample clock is independent from USB SOF it is inevitable
33 The host achieves the average by sending either nominal or nominal ±1 sample
50 This sample in both modes (direct sample counting and indirect I2S buffer output
53 The sample defaults to indirect feedback calculation because direct sample
[all …]
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/
DREADME.rst1 .. zephyr:code-sample:: uac2-implicit-feedback
2 :name: USB Audio asynchronous implicit feedback sample
5 USB Audio 2 implicit feedback sample playing stereo and recording mono audio
11 This sample demonstrates how to implement USB asynchronous bidirectional audio
22 Target must be able to measure I2S block start (i.e. first sample from output
24 single sample accuracy.
26 This sample has been tested on :ref:`nrf5340dk_nrf5340`. While for actual audio
/Zephyr-latest/samples/net/sockets/echo_client/
DKconfig1 # Private config options for echo-client sample app
6 mainmenu "Networking echo-client sample application"
24 Set VLAN (virtual LAN) tag (id) that is used in the sample
43 Set VLAN (virtual LAN) tag (id) that is used in the sample
55 int "Send sample data this many times"
58 Send sample data this many times before exiting. A value of
59 zero means that the sample application is run forever.
/Zephyr-latest/samples/bluetooth/hci_ipc/
DREADME.rst1 .. zephyr:code-sample:: bluetooth_hci_ipc
10 This sample exposes :ref:`bluetooth_controller` support
21 This sample can be found under :zephyr_file:`samples/bluetooth/hci_ipc`
30 To test this sample, you need a separate device/CPU that acts as Bluetooth
32 This sample is compatible with the HCI IPC driver provided by
36 You might need to adjust the Kconfig configuration of this sample to make it
40 Refer to :zephyr:code-sample-category:`bluetooth` for general information about Bluetooth samples.
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c199 for (int sample = 0; sample < num_samples; ++sample) { in sensor_submit_fallback_sync() local
210 uint32_t scale = (uint32_t)llabs((int64_t)value[sample].val1) + 1; in sensor_submit_fallback_sync()
236 for (int sample = 0; sample < num_samples; ++sample) { in sensor_submit_fallback_sync() local
239 header, header->channels[sample_idx + sample], sample_idx + sample); in sensor_submit_fallback_sync()
242 prev_computed_value_idx != sample_idx + sample) { in sensor_submit_fallback_sync()
243 LOG_DBG("value[%d] previously computed at q[%d]@%p", sample, in sensor_submit_fallback_sync()
246 q[sample_idx + sample] = q[prev_computed_value_idx]; in sensor_submit_fallback_sync()
251 int64_t value_u = sensor_value_to_micro(&value[sample]); in sensor_submit_fallback_sync()
254 q[sample_idx + sample] = in sensor_submit_fallback_sync()
258 sample, value_u < 0 ? "-" : "", in sensor_submit_fallback_sync()
[all …]
/Zephyr-latest/samples/drivers/lora/send/
DREADME.rst1 .. zephyr:code-sample:: lora-send
10 This sample demonstrates how to use the LoRa radio driver to configure
14 LoRa receive sample :zephyr:code-sample:`lora-receive` on another board within
20 Build and flash the sample as follows, changing ``b_l072z_lrwan1`` for
/Zephyr-latest/samples/bluetooth/peripheral_nus/
DREADME.rst1 .. zephyr:code-sample:: ble_peripheral_nus
10 This sample demonstrates the usage of the NUS service (Nordic UART Service) as a serial
11 endpoint to exchange data. In this case, the sample assumes the data is UTF-8 encoded,
24 This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_nus` in the
27 See :zephyr:code-sample-category:`bluetooth` samples for details.
/Zephyr-latest/samples/boards/nordic/ieee802154/802154_rpmsg/
DREADME.rst1 .. zephyr:code-sample:: nrf_ieee802154_rpmsg
9 This sample exposes IEEE 802.15.4 radio driver support
21 This sample can be found under :zephyr_file:`samples/boards/nordic/ieee802154/802154_rpmsg`
29 To test this sample, you need a separate device/CPU that acts as 802.15.4
31 This sample is compatible with the Nordic 802.15.4 serialization. See the
34 The sample is configured to be energy efficient by disabling:
/Zephyr-latest/samples/subsys/display/cfb/
DREADME.rst1 .. zephyr:code-sample:: character-frame-buffer
10 This sample displays character strings using the Character Frame Buffer
16 This sample requires a supported board and CFB-supporting
22 Build this sample application with the following commands:

12345678910>>...69