Lines Matching refs:bus
11 static inline int spi_write_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t data) in spi_write_register() argument
29 return spi_write_dt(bus, &tx); in spi_write_register()
32 static inline int spi_read_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data, in spi_read_register() argument
63 return spi_transceive_dt(bus, &tx, &rx); in spi_read_register()
66 int icm42688_spi_read(const struct spi_dt_spec *bus, uint16_t reg, uint8_t *data, size_t len) in icm42688_spi_read() argument
71 res = spi_read_register(bus, address, data, len); in icm42688_spi_read()
76 int icm42688_spi_update_register(const struct spi_dt_spec *bus, uint16_t reg, uint8_t mask, in icm42688_spi_update_register() argument
80 int res = icm42688_spi_read(bus, reg, &temp, 1); in icm42688_spi_update_register()
89 return icm42688_spi_single_write(bus, reg, temp); in icm42688_spi_update_register()
92 int icm42688_spi_single_write(const struct spi_dt_spec *bus, uint16_t reg, uint8_t data) in icm42688_spi_single_write() argument
97 res = spi_write_register(bus, address, data); in icm42688_spi_single_write()