Lines Matching refs:reg_addr
23 static int lsm6dsl_raw_read(const struct device *dev, uint8_t reg_addr, in lsm6dsl_raw_read() argument
27 uint8_t buffer_tx[2] = { reg_addr | LSM6DSL_SPI_READ, 0 }; in lsm6dsl_raw_read()
63 static int lsm6dsl_raw_write(const struct device *dev, uint8_t reg_addr, in lsm6dsl_raw_write() argument
67 uint8_t buffer_tx[1] = { reg_addr & ~LSM6DSL_SPI_READ }; in lsm6dsl_raw_write()
95 static int lsm6dsl_spi_read_data(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_read_data() argument
98 return lsm6dsl_raw_read(dev, reg_addr, value, len); in lsm6dsl_spi_read_data()
101 static int lsm6dsl_spi_write_data(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_write_data() argument
104 return lsm6dsl_raw_write(dev, reg_addr, value, len); in lsm6dsl_spi_write_data()
107 static int lsm6dsl_spi_read_reg(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_read_reg() argument
110 return lsm6dsl_raw_read(dev, reg_addr, value, 1); in lsm6dsl_spi_read_reg()
113 static int lsm6dsl_spi_update_reg(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_update_reg() argument
118 lsm6dsl_raw_read(dev, reg_addr, &tmp_val, 1); in lsm6dsl_spi_update_reg()
121 return lsm6dsl_raw_write(dev, reg_addr, &tmp_val, 1); in lsm6dsl_spi_update_reg()