Lines Matching +full:spi +full:- +full:addr
4 * SPDX-License-Identifier: Apache-2.0
8 * Bus-specific functionality for BMI270s accessed via SPI.
19 return spi_is_ready_dt(&bus->spi) ? 0 : -ENODEV; in bmi270_bus_check_spi()
26 uint8_t addr; in bmi270_reg_read_spi() local
29 .buf = &addr, in bmi270_reg_read_spi()
48 addr = start | 0x80; in bmi270_reg_read_spi()
50 ret = spi_transceive_dt(&bus->spi, &tx, &rx); in bmi270_reg_read_spi()
64 uint8_t addr; in bmi270_reg_write_spi() local
66 {.buf = &addr, .len = sizeof(addr)}, in bmi270_reg_write_spi()
74 addr = start & BMI270_REG_MASK; in bmi270_reg_write_spi()
76 ret = spi_write_dt(&bus->spi, &tx); in bmi270_reg_write_spi()
90 /* Single read of SPI initializes the chip to SPI mode in bmi270_bus_init_spi()