zephyr/subsys
Yuval Peress beaf0230ba drivers: sensors: bmi160: Fix issue with sample read
When testing the bmi160 I've come across an issue where the readings
didn't make sense to me. The issue comes from reading the
BMI160_SAMPLE_BURST_READ_ADDR which is 0x0C assuming both accelerometer
and gyroscope. At this point we would normally read 12 bytes
(2 bytes per sample * 3 axes * 2 sensors). This reading takes place in
bmi160_sample_fetch and begins writing to data->sample.raw

Without this change, the first byte written is actually to the dummy
byte which effectively gets tossed. The issue is that this is the
GYR_X<7:0>(LSB) according to the BMI160 data sheet. When we later call
either bmi160_gyr_channel_get or bmi160_acc_channel_get we're looking
at sample.gyr and sample.acc (which is effectively shiften by 1 byte).

This change gets rid of the dummy byte which re-alignes gyr with the
start of the raw buffer.

Signed-off-by: Yuval Peress <peress@chromium.org>
2020-12-01 17:58:06 -05:00
..
bluetooth Bluetooth: controller: Create HCI stubs for CIG/CIS and ISO 2020-11-30 15:49:30 +01:00
canbus subsys: canopen: Add a wrapper to avoid passing device to CO_init 2020-09-02 13:48:13 +02:00
console device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
cpp cpp: Fixed compile warning with extern array declaration 2020-06-09 14:42:16 +02:00
debug debug: openocd: Support for building on SPARC 2020-11-13 14:53:55 -08:00
dfu dfu/boot/mcuboot: made able to compile within MCUBoot 2020-11-13 13:37:18 +01:00
disk subsystem: disk: stm32_sdmmc: use generic LL headers 2020-11-30 15:50:03 +01:00
emul drivers: sensors: bmi160: Fix issue with sample read 2020-12-01 17:58:06 -05:00
fb device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fs fs/fcb: Enable FCB to work with non-0xff erase value flash 2020-11-16 13:39:04 +01:00
jwt Kconfig: cleanup subsystems 2020-08-24 10:24:30 +02:00
logging net: openthread: OpenThread RCP mode integration into Zephyr 2020-11-19 12:34:14 +01:00
lorawan lorawan: Cleanup error handling code 2020-10-08 12:15:38 +02:00
mgmt mgmt: mcumgr: add configuration option to enable shell management 2020-11-11 13:17:02 +01:00
net net: lwm2m: Verify if block transfer is used before skipping TLV parsing 2020-12-01 11:26:55 -05:00
power device: treat a NULL device_pm_control as device_pm_control_nop 2020-11-10 08:38:09 -06:00
random random: ctr_drbg: Fix the error path in sys_csrand_get 2020-12-01 10:20:06 -06:00
settings settings_fcb: initialize rc variable 2020-10-02 12:07:06 -04:00
shell shell: use public API to check device readiness 2020-12-01 15:19:22 -05:00
stats misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
storage storage/stream: elimination of usage of the flash API internals 2020-11-17 11:34:35 +01:00
testsuite tests: coverage: GCOV counter value changed in GCC10. 2020-11-18 22:17:58 -05:00
timing timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
tracing systemview: Use common function to get sysview thread name 2020-11-21 08:29:26 -05:00
usb usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
CMakeLists.txt timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
Kconfig lorawan: Add initial support for LoRaWAN 2020-10-08 12:15:38 +02:00