Lines Matching +full:rx +full:- +full:mask
1 /* lsm6dsl_spi.c - SPI routines for LSM6DSL driver
7 * SPDX-License-Identifier: Apache-2.0
26 const struct lsm6dsl_config *cfg = dev->config; in lsm6dsl_raw_read()
46 const struct spi_buf_set rx = { in lsm6dsl_raw_read() local
53 return -EIO; in lsm6dsl_raw_read()
56 if (spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx)) { in lsm6dsl_raw_read()
57 return -EIO; in lsm6dsl_raw_read()
66 const struct lsm6dsl_config *cfg = dev->config; in lsm6dsl_raw_write()
85 return -EIO; in lsm6dsl_raw_write()
88 if (spi_write_dt(&cfg->bus_cfg.spi, &tx)) { in lsm6dsl_raw_write()
89 return -EIO; in lsm6dsl_raw_write()
114 uint8_t mask, uint8_t value) in lsm6dsl_spi_update_reg() argument
119 tmp_val = (tmp_val & ~mask) | (value & mask); in lsm6dsl_spi_update_reg()
133 struct lsm6dsl_data *data = dev->data; in lsm6dsl_spi_init()
134 const struct lsm6dsl_config *cfg = dev->config; in lsm6dsl_spi_init()
136 data->hw_tf = &lsm6dsl_spi_transfer_fn; in lsm6dsl_spi_init()
138 if (!spi_is_ready_dt(&cfg->bus_cfg.spi)) { in lsm6dsl_spi_init()
139 return -ENODEV; in lsm6dsl_spi_init()