/Zephyr-latest/samples/subsys/zbus/msg_subscriber/ |
D | sample.yaml | 7 - CONFIG_ZBUS_LOG_LEVEL_DBG=y 12 - "^.*?I: ----> Publishing to acc_data_chan channel" 13 - "^.*?I: AL Memory allocated \\d{1,3} bytes. Total allocated \\d{1,3} bytes$" 14 - "^.*?I: FR Memory freed \\d{1,3} bytes. Total allocated 0 bytes$" 15 - "^.*?D: 0 -> bar_sub1" 16 - "^.*?D: 1 -> bar_msg_sub1" 17 - "^.*?D: 2 -> bar_msg_sub2" 18 - "^.*?D: 3 -> bar_msg_sub3" 19 - "^.*?D: 4 -> bar_msg_sub4" 20 - "^.*?D: 5 -> bar_msg_sub5" [all …]
|
D | README.rst | 1 .. zephyr:code-sample:: zbus-msg-subscriber 3 :relevant-api: zbus_apis 19 .. zephyr-app-commands:: 20 :zephyr-app: samples/subsys/zbus/msg_subscriber 21 :host-os: unix 28 .. code-block:: console 30 -- west build: running target run 33 I: ----> Publishing to acc_data_chan channel 35 I: From listener foo_lis -> Acc x=1, y=10, z=100 36 I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100 [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | unsigned_suffix.cocci | 5 // SPDX-License-Identifier: Apache-2.0 31 v -= C@p 44 z; 50 coccinelle.z = C + "U" 55 identifier r_rewrite.z; 60 - C 61 + z 64 - C 65 + z 68 - C [all …]
|
/Zephyr-latest/samples/sensor/magn_trig/ |
D | README.rst | 1 .. zephyr:Code-sample:: magn-trig 9 Sample application that reads magnetometer (X, Y, Z) data from 15 .. code-block:: devicetree 25 .. zephyr-app-commands:: 26 :zephyr-app: samples/sensor/magn_trig 34 .. code-block:: console 36 fxos8700@1d (x, y, z): ( -0.107000, 0.118000, -1.026000) 37 fxos8700@1d (x, y, z): ( -0.132000, 0.083000, -0.981000) 38 fxos8700@1d (x, y, z): ( -0.143000, 0.102000, -0.931000) 39 fxos8700@1d (x, y, z): ( -0.153000, 0.126000, -0.843000) [all …]
|
/Zephyr-latest/samples/subsys/zbus/runtime_obs_registration/ |
D | sample.yaml | 7 - qemu_x86 14 - "I: System started" 15 - "I: Activating filter" 16 - "I: Deactivating filter" 17 - "I: Bypass filter" 18 - "I: Disable bypass filter" 19 - "I: >-- Raw data fetched" 20 - "I: -|- Filtering data" 21 - "I: --> Consuming data: Acc x=0, y=0, z=0" 22 - "I: --> Consuming data: Acc x=2, y=2, z=2" [all …]
|
D | README.rst | 1 .. zephyr:code-sample:: zbus-runtime-obs-registration 3 :relevant-api: zbus_apis 19 .. zephyr-app-commands:: 20 :zephyr-app: samples/subsys/zbus/runtime_obs_registration 21 :host-os: unix 28 .. code-block:: console 32 I: >-- Raw data fetched 33 I: -|- Filtering data 34 I: --> Consuming data: Acc x=0, y=0, z=0 35 I: >-- Raw data fetched [all …]
|
/Zephyr-latest/samples/sensor/i3g4250d/ |
D | README.rst | 1 .. zephyr:code-sample:: i3g4250d 2 :name: I3G4250D 3-axis gyroscope sensor 3 :relevant-api: sensor_interface 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/sensor/i3g4250d 36 .. code-block:: console 38 *** Booting Zephyr OS build zephyr-v2.6.0-1897-ga09838064f26 *** 41 12 ms: x 2454.031430 , y 2336.015410 , z -1800.030108 42 22 ms: x -248.003106 , y -268.979704 , z 6.018390 43 32 ms: x -214.989906 , y -237.023468 , z 6.013926 [all …]
|
/Zephyr-latest/lib/libc/common/source/time/ |
D | gmtime_r.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * This converts integral seconds since (before) 1970-01-01T00:00:00 35 static void time_civil_from_days(bigint_type z, in time_civil_from_days() argument 38 tp->tm_wday = (z >= -4) ? ((z + 4) % 7) : ((z + 5) % 7 + 6); in time_civil_from_days() 39 z += 719468; in time_civil_from_days() 41 bigint_type era = ((z >= 0) ? z : (z - 146096)) / 146097; in time_civil_from_days() 42 unsigned int doe = (z - era * (bigint_type)146097); in time_civil_from_days() 43 unsigned int yoe = (doe - doe / 1460U + doe / 36524U - doe / 146096U) in time_civil_from_days() 46 unsigned int doy = doe - (365U * yoe + yoe / 4U - yoe / 100U); in time_civil_from_days() 48 unsigned int d = doy - (153U * mp + 2U) / 5U + 1U; in time_civil_from_days() [all …]
|
/Zephyr-latest/samples/sensor/fxas21002/ |
D | README.rst | 1 .. zephyr:code-sample:: fxas21002 3 :relevant-api: sensor_interface 20 .. zephyr-app-commands:: 21 :zephyr-app: samples/sensor/fxas21002 29 .. code-block:: console 31 X= -2.063 Y= 0.813 Z= 0.188 32 X= -1.750 Y= 1.063 Z= 0.063 33 X= -2.000 Y= 0.625 Z= 0.063 34 X= -2.188 Y= 0.625 Z= 0.188 35 X= -2.125 Y= 1.313 Z= -0.063 [all …]
|
/Zephyr-latest/doc/develop/api/ |
D | overview.rst | 13 * Major version zero (0.y.z) is for initial development. Anything MAY 16 * If minor version is up to one (0.1.z), API is considered 18 * If minor version is larger than one (0.y.z | y > 1), API is considered 25 * APIs with major versions equal or larger than one (x.y.z | x >= 1 ) are 29 * Patch version Z (x.y.Z | x > 0) MUST be incremented if only backwards 33 * Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards 40 * Major version X (x.Y.z | x > 0) MUST be incremented if a compatibility 47 - 0.1.0 denotes an :ref:`experimental <api_lifecycle_experimental>` API 48 - 0.8.0 denote an :ref:`unstable <api_lifecycle_unstable>` API, 49 - and finally 1.0.0 indicates a :ref:`stable <api_lifecycle_stable>` APIs. [all …]
|
/Zephyr-latest/doc/services/zbus/images/ |
D | zbus_overview.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Generator: Gravit.io --> 3 …-path="url(#_clipPath_4s5vgiB38S3pAl7QuuCNwfKUotLNVBNL)"><g><path d="M 28.3 26.02 L 149.17 26.02 C…
|
D | zbus_anatomy.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Generator: Gravit.io --> 3 …-path="url(#_clipPath_RMksZwjYncgyEzjvRuYD2Ss4GUVxFZdP)"><g/><path d="M 2.459 109.6 L 645.841 109.…
|
D | zbus_publishing_process_example.svg | 3 …013 85.7707 284.661 86.144C284.32 86.5067 284.149 86.992 284.149 87.6V92H282.149Z" fill="#747474"/> 4 <path d="M503.697 305.975L460.741 332.387V279.563L503.697 305.975Z" fill="#EBEBEB"/> 5 <path d="M469.333 288.653H10.3773V323.295H469.333V288.653Z" fill="#EBEBEB"/> 6 <path d="M27.6973 74.2293L54.0613 117.108H1.33331L27.6973 74.2293Z" fill="#EBEBEB"/> 7 <path d="M10.3773 104.609V323.295H45.0187V104.609H10.3773Z" fill="#EBEBEB"/> 8 …8.878L32.52 175.956L25.224 172.969V170.281L39.496 176.553V179.305Z" fill="#171717" fill-opacity="0… 9 …6 259.858 305.805C259.446 305.336 258.863 305.101 258.109 305.101Z" fill="#171717" fill-opacity="0… 13 <path d="M302.889 98.3827H295.112V118.695H302.889V98.3827Z" fill="#3900A0"/> 14 <path d="M290.777 98.3827H283V118.695H290.777V98.3827Z" fill="white"/> 15 <path d="M276.777 98.3827H269V118.695H276.777V98.3827Z" fill="#A9CC1E"/> [all …]
|
D | zbus_publishing_process_example_HLP.svg | 2 <path d="M504 0.156006H0V330.543H504V0.156006Z" fill="white"/> 3 <path d="M504 63.156H117.556V88.232H504V63.156Z" fill="url(#paint0_linear_103_113)"/> 4 <path d="M503.697 304.131L460.741 330.543V277.719L503.697 304.131Z" fill="#EBEBEB"/> 5 <path d="M469.333 286.809H10.3773V321.451H469.333V286.809Z" fill="#EBEBEB"/> 6 <path d="M27.6973 72.3853L54.0613 115.264H1.33331L27.6973 72.3853Z" fill="#EBEBEB"/> 7 <path d="M10.3773 102.765V321.451H45.0187V102.765H10.3773Z" fill="#EBEBEB"/> 8 …7.034L32.52 174.112L25.224 171.125V168.437L39.496 174.709V177.461Z" fill="#171717" fill-opacity="0… 9 …6 259.858 303.961C259.446 303.492 258.863 303.257 258.109 303.257Z" fill="#171717" fill-opacity="0… 10 <path d="M504 244.156H117.556V269.232H504V244.156Z" fill="#EEEEEE"/> 13 …4 249.495C104.123 249.296 104.365 249.089 104.55 248.876H106.811V266.156H103.867Z" fill="#F7B859"/> [all …]
|
/Zephyr-latest/samples/subsys/zbus/hello_world/ |
D | sample.yaml | 10 - "I: Sensor sample started raw reading, version 0.1-2!" 11 - "I: Channel list:" 12 - "I: 0 - Channel acc_data_chan:" 13 - "I: Message size: 12" 14 - "I: Observers:" 15 - "I: - foo_lis" 16 - "I: - bar_sub" 17 - "I: 1 - Channel simple_chan:" 18 - "I: 2 - Channel version_chan:" 19 - "I: Message size: 4" [all …]
|
D | README.rst | 1 .. zephyr:code-sample:: zbus-hello-world 3 :relevant-api: zbus_apis 17 .. zephyr-app-commands:: 18 :zephyr-app: samples/subsys/zbus/hello_world 19 :host-os: unix 26 .. code-block:: console 28 D: Sensor sample started raw reading, version 0.1-2! 30 D: 0 - Channel acc_data: 33 D: - my_listener 34 D: - my_subscriber [all …]
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/ |
D | README.rst | 1 .. _x-nucleo-iks4a1-std-sample: 3 X-NUCLEO-IKS4A1 shield Standard (Mode 1) sample 8 This sample is provided as an example to test the X-NUCLEO-IKS4A1 shield 10 Please refer to :ref:`x-nucleo-iks4a1-mode-1` for more info on this configuration. 12 This sample enables the following four sensors of a X-NUCLEO-IKS4A1 shield, and then 15 - LSM6DSV16X 6-Axis acceleration and angular velocity 16 - LSM6DSO16IS 6-Axis acceleration and angular velocity 17 - LPS22DF ambient temperature and atmospheric pressure 18 - LIS2MDL 3-Axis magnetic field intensity 19 - LIS2DUXS12 3-Axis acceleration [all …]
|
/Zephyr-latest/samples/sensor/lsm6dso/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 14 return (val->val1 + (float)val->val2 / 1000000); in out_ev() 19 struct sensor_value x, y, z; in fetch_and_display() local 28 sensor_channel_get(dev, SENSOR_CHAN_ACCEL_Z, &z); in fetch_and_display() 30 printf("accel x:%f ms/2 y:%f ms/2 z:%f ms/2\n", in fetch_and_display() 31 (double)out_ev(&x), (double)out_ev(&y), (double)out_ev(&z)); in fetch_and_display() 37 sensor_channel_get(dev, SENSOR_CHAN_GYRO_Z, &z); in fetch_and_display() 39 printf("gyro x:%f rad/s y:%f rad/s z:%f rad/s\n", in fetch_and_display() 40 (double)out_ev(&x), (double)out_ev(&y), (double)out_ev(&z)); in fetch_and_display() 114 printk("%s: device not ready.\n", dev->name); in main()
|
/Zephyr-latest/samples/sensor/lsm303dlhc/ |
D | README.rst | 1 .. zephyr:code-sample:: lsmd303dlhc 3 :relevant-api: sensor_interface 17 This sample uses the LSM303DLHC, ST MEMS system-in-package featuring a 25 https://www.st.com/en/mems-and-sensors/lsm303dlhc.html 31 system-in-package, which is present on the stm32f3_disco board 33 .. zephyr-app-commands:: 34 :zephyr-app: samples/sensor/lsm303dlhc 42 .. code-block:: console 45 ( x y z ) = ( 0.531818 -0.435454 -0.089090 ) 47 ( x y z ) = ( -0.078127 -0.347666 1.105502 ) [all …]
|
/Zephyr-latest/samples/sensor/thermometer/ |
D | sample.yaml | 6 filter: dt_alias_exists("ambient-temp0") 8 - nrf52840dk/nrf52840 # mcp9700a 9 - frdm_k22f # tcn75a 10 - robokit1 # ntc_thermistor 11 - adi_eval_adin1110ebz # adt7420 12 - frdm_mcxn947/mcxn947/cpu0 # p3t1755 14 - platform:mimxrt1180_evk/mimxrt1189/cm33:SHIELD=p3t1755dp_ard_i2c 15 - platform:mimxrt1180_evk/mimxrt1189/cm7:SHIELD=p3t1755dp_ard_i2c 16 - platform:mimxrt1180_evk/mimxrt1189/cm33:SHIELD=p3t1755dp_ard_i3c 17 - platform:mimxrt1180_evk/mimxrt1189/cm7:SHIELD=p3t1755dp_ard_i3c [all …]
|
/Zephyr-latest/samples/subsys/zbus/msg_subscriber/src/ |
D | main.c | 3 * SPDX-License-Identifier: Apache-2.0 24 total_allocated -= bytes; in on_heap_free() 40 int z; member 51 ZBUS_MSG_INIT(.x = 0, .y = 0, .z = 0) /* Initial value */ 58 LOG_INF("From listener foo_lis -> Acc x=%d, y=%d, z=%d", acc->x, acc->y, acc->z); in listener_callback_example() 97 LOG_INF("From msg subscriber %s -> Acc x=%d, y=%d, z=%d", zbus_obs_name(subscriber), in msg_subscriber_task() 98 acc.x, acc.y, acc.z); in msg_subscriber_task() 151 LOG_INF("From subscriber %s -> Acc x=%d, y=%d, z=%d", zbus_obs_name(subscriber), in subscriber_task() 152 acc.x, acc.y, acc.z); in subscriber_task() 170 static struct acc_msg acc = {.x = 1, .y = 10, .z = 100}; [all …]
|
/Zephyr-latest/doc/_static/images/ |
D | logo-readme-light.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 29 …-1{fill:#7929d2;}.cls-2{fill:#9454db;}.cls-3{fill:#af7fe4;}.cls-4{fill:url(#linear-gradient);}.cls… 31 id="linear-gradient" 39 stop-color="#7929d2" 43 stop-color="#0070c5" 47 id="linear-gradient-2" 49 y1="-1.87884" 55 stop-color="#00aeff" 59 stop-color="#9454db" [all …]
|
D | logo-readme-dark.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 29 …-1{fill:#7929d2;}.cls-2{fill:#9454db;}.cls-3{fill:#af7fe4;}.cls-4{fill:url(#linear-gradient);}.cls… 31 id="linear-gradient" 39 stop-color="#7929d2" 43 stop-color="#0070c5" 47 id="linear-gradient-2" 49 y1="-1.87884" 55 stop-color="#00aeff" 59 stop-color="#9454db" [all …]
|
/Zephyr-latest/samples/sensor/lsm6dso/ |
D | README.rst | 1 .. zephyr:code-sample:: lsmd6dso 3 :relevant-api: sensor_interface 23 - LSM6DSO https://www.st.com/en/mems-and-sensors/lsm6dso.html 34 .. zephyr-app-commands:: 35 :zephyr-app: samples/sensor/lsm6dso 36 :host-os: unix 44 .. code-block:: console 48 accel x:-0.650847 ms/2 y:-5.300102 ms/2 z:-8.163114 ms/2 49 gyro x:-0.167835 dps y:-0.063377 dps z:0.002367 dps 52 accel x:0.341575 ms/2 y:5.209773 ms/2 z:-7.938787 ms/2 [all …]
|
/Zephyr-latest/samples/subsys/zbus/runtime_obs_registration/src/ |
D | main.c | 3 * SPDX-License-Identifier: Apache-2.0 16 ZBUS_MSG_INIT(.x = 0, .y = 0, .z = 0)); 25 if (0 == (msg->x % 2)) { in filter_callback() 26 proc_msg.x = msg->x; in filter_callback() 28 if (0 == (msg->y % 2)) { in filter_callback() 29 proc_msg.y = msg->y; in filter_callback() 31 if (0 == (msg->z % 2)) { in filter_callback() 32 proc_msg.z = msg->z; in filter_callback() 34 LOG_INF(" -|- Filtering data"); in filter_callback()
|