Lines Matching +full:tx +full:- +full:mask
1 /* adxl372_spi.c - SPI routines for ADXL372 driver
7 * SPDX-License-Identifier: Apache-2.0
24 const struct adxl372_dev_config *config = dev->config; in adxl372_bus_access()
36 struct spi_buf_set tx = { in adxl372_bus_access() local
46 tx.count = 1; in adxl372_bus_access()
48 return spi_transceive_dt(&config->spi, &tx, &rx); in adxl372_bus_access()
51 tx.count = 2; in adxl372_bus_access()
53 return spi_write_dt(&config->spi, &tx); in adxl372_bus_access()
81 uint32_t mask, in adxl372_spi_reg_write_mask() argument
92 tmp &= ~mask; in adxl372_spi_reg_write_mask()
107 struct adxl372_data *data = dev->data; in adxl372_spi_init()
108 const struct adxl372_dev_config *config = dev->config; in adxl372_spi_init()
110 data->hw_tf = &adxl372_spi_transfer_fn; in adxl372_spi_init()
112 if (!spi_is_ready_dt(&config->spi)) { in adxl372_spi_init()
113 return -ENODEV; in adxl372_spi_init()