Home
last modified time | relevance | path

Searched full:bmg160 (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bmg160/
Dbmg160_trigger.c1 /* Bosch BMG160 gyro driver, trigger implementation
8 * http://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMG160-DS000-09.pdf
14 #include "bmg160.h"
19 LOG_MODULE_DECLARE(BMG160, CONFIG_SENSOR_LOG_LEVEL);
34 struct bmg160_device_data *bmg160 = in bmg160_gpio_callback() local
41 k_sem_give(&bmg160->trig_sem); in bmg160_gpio_callback()
43 k_work_submit(&bmg160->work); in bmg160_gpio_callback()
51 struct bmg160_device_data *bmg160 = dev->data; in bmg160_anymotion_set() local
65 bmg160->anymotion_handler = handler; in bmg160_anymotion_set()
66 bmg160->anymotion_trig = trig; in bmg160_anymotion_set()
[all …]
Dbmg160.c1 /* Bosch BMG160 gyro driver
8 …181111220522/https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMG160-DS000-09.pdf
19 #include "bmg160.h"
21 LOG_MODULE_REGISTER(BMG160, CONFIG_SENSOR_LOG_LEVEL);
37 struct bmg160_device_data *bmg160 = dev->data; in bmg160_read() local
42 k_sem_take(&bmg160->sem, K_FOREVER); in bmg160_read()
49 k_sem_give(&bmg160->sem); in bmg160_read()
65 struct bmg160_device_data *bmg160 = dev->data; in bmg160_write() local
70 k_sem_take(&bmg160->sem, K_FOREVER); in bmg160_write()
77 k_sem_give(&bmg160->sem); in bmg160_write()
[all …]
DKconfig1 # Bosch BMG160 gyroscope configuration options
6 menuconfig BMG160 config
7 bool "Bosch BMG160 gyroscope support"
12 Enable Bosch BMG160 gyroscope support.
14 if BMG160
17 prompt "BMG160 I2C bus speed"
116 endif # BMG160
DCMakeLists.txt5 zephyr_library_sources(bmg160.c)
Dbmg160.h1 /* Bosch BMG160 gyro driver */
/Zephyr-latest/samples/sensor/bmg160/src/
Dmain.c21 #error "No bosch,bmg160 compatible node found in the device tree"
24 static void print_gyro_data(const struct device *bmg160) in print_gyro_data() argument
28 if (sensor_channel_get(bmg160, SENSOR_CHAN_GYRO_XYZ, val) < 0) { in print_gyro_data()
29 printf("Cannot read bmg160 gyro channels.\n"); in print_gyro_data()
39 static void print_temp_data(const struct device *bmg160) in print_temp_data() argument
43 if (sensor_channel_get(bmg160, SENSOR_CHAN_DIE_TEMP, &val) < 0) { in print_temp_data()
52 static void test_polling_mode(const struct device *bmg160) in test_polling_mode() argument
57 if (sensor_sample_fetch(bmg160) < 0) { in test_polling_mode()
61 print_gyro_data(bmg160); in test_polling_mode()
63 print_temp_data(bmg160); in test_polling_mode()
[all …]
/Zephyr-latest/samples/sensor/bmg160/
DREADME.rst1 .. zephyr:code-sample:: bmg160
2 :name: BMG160 3-axis gyroscope
5 Get temperature, and angular velocity data from a BMG160 sensor.
11 `Bosch BMG160`_ environmental sensor.
13 .. _Bosch BMG160:
14 …181111220522/https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMG160-DS000-09.pdf
16 …ds, then in trigger mode, display the temperature and angular velocity data from the BMG160 sensor.
21 The sample can be configured to support BMG160 sensors connected via I2C. Configuration is done via…
22 must have an enabled node with ``compatible = "bosch,bmg160";``. See
23 :dtcompatible:`bosch,bmg160` for the devicetree binding and see below for
[all …]
Dsample.yaml2 name: BMG160 Sensor Sample
4 sample.sensor.bmg160:
10 filter: dt_compat_enabled("bosch,bmg160")
DCMakeLists.txt5 project(bmg160) project
/Zephyr-latest/dts/bindings/sensor/
Dbosch,bmg160.yaml5 Bosch BMG160 gyroscope. See more info at:
6 https://www.bosch-sensortec.com/bst/products/all_products/bmg160
8 compatible: "bosch,bmg160"
/Zephyr-latest/samples/sensor/bmg160/boards/
Dfrdm_k64f.overlay8 bmg160@68 {
9 compatible = "bosch,bmg160";
/Zephyr-latest/drivers/sensor/bosch/
DCMakeLists.txt10 add_subdirectory_ifdef(CONFIG_BMG160 bmg160)
DKconfig10 source "drivers/sensor/bosch/bmg160/Kconfig"
/Zephyr-latest/tests/drivers/build_all/sensor/
Di2c.dtsi102 test_i2c_bmg160: bmg160@c {
103 compatible = "bosch,bmg160";
/Zephyr-latest/doc/releases/
Drelease-notes-2.7.rst1282 * :github:`38009` - [Coverity CID: 236651] Unchecked return value in drivers/sensor/bmg160/bmg160_t…
Drelease-notes-2.6.rst1245 * :github:`35118` - [Coverity CID: 235919] Logically dead code in samples/sensor/bmg160/src/main.c
Drelease-notes-1.14.rst1313 * :github:`14476` - quark_d2000_crb: samples/sensor/bmg160 runs out of ROM (CI failure)