Lines Matching refs:reg_addr
26 static int lis2dh_raw_read(const struct device *dev, uint8_t reg_addr, in lis2dh_raw_read() argument
30 uint8_t buffer_tx[2] = { reg_addr | LIS2DH_SPI_READ_BIT, 0 }; in lis2dh_raw_read()
70 static int lis2dh_raw_write(const struct device *dev, uint8_t reg_addr, in lis2dh_raw_write() argument
74 uint8_t buffer_tx[1] = { reg_addr & ~LIS2DH_SPI_READ_BIT }; in lis2dh_raw_write()
106 static int lis2dh_spi_read_data(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_read_data() argument
109 return lis2dh_raw_read(dev, reg_addr, value, len); in lis2dh_spi_read_data()
112 static int lis2dh_spi_write_data(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_write_data() argument
115 return lis2dh_raw_write(dev, reg_addr, value, len); in lis2dh_spi_write_data()
118 static int lis2dh_spi_read_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_read_reg() argument
121 return lis2dh_raw_read(dev, reg_addr, value, 1); in lis2dh_spi_read_reg()
124 static int lis2dh_spi_write_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_write_reg() argument
129 return lis2dh_raw_write(dev, reg_addr, &tmp_val, 1); in lis2dh_spi_write_reg()
132 static int lis2dh_spi_update_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_update_reg() argument
137 lis2dh_raw_read(dev, reg_addr, &tmp_val, 1); in lis2dh_spi_update_reg()
140 return lis2dh_raw_write(dev, reg_addr, &tmp_val, 1); in lis2dh_spi_update_reg()