Lines Matching +full:2 +full:- +full:byte
5 * SPDX-License-Identifier: Apache-2.0
7 * zephyrproject-rtos/modules/hal/st/sensor/stmemsc/
14 /* Enable address auto-increment on some stmemsc sensors */
23 uint8_t buffer_tx[2] = { reg_addr | SPI_READ, 0 }; in stmemsc_spi_read()
25 /* write 1 byte with reg addr (msb at 1) + 1 dummy byte */ in stmemsc_spi_read()
26 const struct spi_buf tx_buf = { .buf = buffer_tx, .len = 2, }; in stmemsc_spi_read()
30 * transaction #1: dummy read to skip first byte in stmemsc_spi_read()
31 * transaction #2: read "len" byte of data in stmemsc_spi_read()
33 const struct spi_buf rx_buf[2] = { in stmemsc_spi_read()
37 const struct spi_buf_set rx = { .buffers = rx_buf, .count = 2 }; in stmemsc_spi_read()
51 * transaction #1: write 1 byte with reg addr (msb at 0) in stmemsc_spi_write()
52 * transaction #2: write "len" byte of data in stmemsc_spi_write()
54 const struct spi_buf tx_buf[2] = { in stmemsc_spi_write()
58 const struct spi_buf_set tx = { .buffers = tx_buf, .count = 2 }; in stmemsc_spi_write()