/Zephyr-latest/tests/drivers/spi/spi_loopback/src/ |
D | spi_rtio.c | 46 static __aligned(32) char buffer_tx[BUF_SIZE] __used __attribute__((__section__(".nocache"))); 53 static uint8_t buffer_tx[] = "0123456789abcdef\0"; variable 90 buffer_tx, buffer_rx, BUF_SIZE, NULL); in spi_complete_multiple() 108 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple() 109 to_display_format(buffer_tx, BUF_SIZE, buffer_print_tx); in spi_complete_multiple() 139 buffer_tx, buffer_rx, BUF_SIZE, NULL); in spi_complete_loop() 154 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop() 155 to_display_format(buffer_tx, BUF_SIZE, buffer_print_tx); in spi_complete_loop() 218 buffer_tx, buffer_rx, 8, NULL); in spi_rx_half_start() 222 &buffer_tx[8], BUF_SIZE-8, NULL); in spi_rx_half_start() [all …]
|
D | spi.c | 73 static __aligned(32) char buffer_tx[BUF_SIZE] __used __NOCACHE; 110 tx_bufs[0].buf = buffer_tx; in spi_complete_multiple() 140 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple() 141 to_display_format(buffer_tx, BUF_SIZE, buffer_print_tx); in spi_complete_multiple() 167 .buf = buffer_tx, in spi_complete_loop() 197 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop() 198 to_display_format(buffer_tx, BUF_SIZE, buffer_print_tx); in spi_complete_loop() 270 .buf = buffer_tx, in spi_rx_half_start() 301 if (memcmp(buffer_tx, buffer_rx, 8)) { in spi_rx_half_start() 302 to_display_format(buffer_tx, 8, buffer_print_tx); in spi_rx_half_start() [all …]
|
/Zephyr-latest/drivers/sensor/st/stmemsc/ |
D | stmemsc_spi.c | 23 uint8_t buffer_tx[2] = { reg_addr | SPI_READ, 0 }; in stmemsc_spi_read() local 26 const struct spi_buf tx_buf = { .buf = buffer_tx, .len = 2, }; in stmemsc_spi_read() 48 uint8_t buffer_tx[1] = { reg_addr & ~SPI_READ }; in stmemsc_spi_write() local 55 { .buf = buffer_tx, .len = 1, }, in stmemsc_spi_write()
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh_spi.c | 30 uint8_t buffer_tx[2] = { reg_addr | LIS2DH_SPI_READ_BIT, 0 }; in lis2dh_raw_read() local 32 .buf = buffer_tx, in lis2dh_raw_read() 60 buffer_tx[0] |= LIS2DH_SPI_AUTOINC; in lis2dh_raw_read() 74 uint8_t buffer_tx[1] = { reg_addr & ~LIS2DH_SPI_READ_BIT }; in lis2dh_raw_write() local 77 .buf = buffer_tx, in lis2dh_raw_write() 96 buffer_tx[0] |= LIS2DH_SPI_AUTOINC; in lis2dh_raw_write()
|
/Zephyr-latest/drivers/sensor/st/iis2dh/ |
D | iis2dh_spi.c | 27 uint8_t buffer_tx[2] = { reg | IIS2DH_SPI_READM, 0 }; in iis2dh_spi_read() local 29 .buf = buffer_tx, in iis2dh_spi_read() 61 uint8_t buffer_tx[1] = { reg | IIS2DH_SPI_WRITEM }; in iis2dh_spi_write() local 64 .buf = buffer_tx, in iis2dh_spi_write()
|
/Zephyr-latest/drivers/sensor/st/iis3dhhc/ |
D | iis3dhhc_spi.c | 26 uint8_t buffer_tx[2] = { reg | IIS3DHHC_SPI_READ, 0 }; in iis3dhhc_spi_read() local 28 .buf = buffer_tx, in iis3dhhc_spi_read() 60 uint8_t buffer_tx[1] = { reg & ~IIS3DHHC_SPI_READ }; in iis3dhhc_spi_write() local 63 .buf = buffer_tx, in iis3dhhc_spi_write()
|
/Zephyr-latest/drivers/sensor/st/i3g4250d/ |
D | i3g4250d_spi.c | 24 uint8_t buffer_tx[2] = { reg | I3G4250D_SPI_READM, 0 }; in i3g4250d_spi_read() local 26 .buf = buffer_tx, in i3g4250d_spi_read() 61 uint8_t buffer_tx[2] = { reg | I3G4250D_SPI_WRITEM, 0 }; in i3g4250d_spi_write() local 64 .buf = buffer_tx, in i3g4250d_spi_write()
|
/Zephyr-latest/drivers/sensor/st/iis2mdc/ |
D | iis2mdc_spi.c | 27 uint8_t buffer_tx[2] = { reg | IIS2MDC_SPI_READ, 0 }; in iis2mdc_spi_read() local 29 .buf = buffer_tx, in iis2mdc_spi_read() 66 uint8_t buffer_tx[1] = { reg & ~IIS2MDC_SPI_READ }; in iis2mdc_spi_write() local 69 .buf = buffer_tx, in iis2mdc_spi_write()
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx_spi.c | 27 uint8_t buffer_tx[2] = { reg_addr | ISM330DHCX_SPI_READ, 0 }; in ism330dhcx_spi_read() local 29 .buf = buffer_tx, in ism330dhcx_spi_read() 67 uint8_t buffer_tx[1] = { reg_addr & ~ISM330DHCX_SPI_READ }; in ism330dhcx_spi_write() local 70 .buf = buffer_tx, in ism330dhcx_spi_write()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_bd8lb600fs.c | 102 uint8_t buffer_tx[8]; in bd8lb600fs_transceive_state() local 104 .buf = buffer_tx, in bd8lb600fs_transceive_state() 121 bd8lb600fs_fill_tx_buffer(dev, buffer_tx, ARRAY_SIZE(buffer_tx)); in bd8lb600fs_transceive_state() 139 uint8_t buffer_tx[8]; in bd8lb600fs_write_state() local 141 .buf = buffer_tx, in bd8lb600fs_write_state() 149 bd8lb600fs_fill_tx_buffer(dev, buffer_tx, ARRAY_SIZE(buffer_tx)); in bd8lb600fs_write_state()
|
D | mfd_tle9104.c | 164 uint8_t buffer_tx[2]; in tle9104_transceive_frame() local 165 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in tle9104_transceive_frame() 167 .buf = buffer_tx, in tle9104_transceive_frame() 168 .len = ARRAY_SIZE(buffer_tx), in tle9104_transceive_frame() 187 sys_put_be16(write_frame, buffer_tx); in tle9104_transceive_frame()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl_spi.c | 27 uint8_t buffer_tx[2] = { reg_addr | LSM6DSL_SPI_READ, 0 }; in lsm6dsl_raw_read() local 29 .buf = buffer_tx, in lsm6dsl_raw_read() 67 uint8_t buffer_tx[1] = { reg_addr & ~LSM6DSL_SPI_READ }; in lsm6dsl_raw_write() local 70 .buf = buffer_tx, in lsm6dsl_raw_write()
|
/Zephyr-latest/drivers/sensor/ti/tmag5170/ |
D | tmag5170.c | 140 uint8_t *buffer_tx, in tmag5170_transmit_raw() argument 144 .buf = buffer_tx, in tmag5170_transmit_raw() 168 static int tmag5170_transmit(const struct device *dev, uint8_t *buffer_tx, uint8_t *buffer_rx) in tmag5170_transmit() argument 171 TMAG5170_ZERO_CRC(buffer_tx); in tmag5170_transmit() 172 uint8_t crc = crc4_ti(TMAG5170_CRC_SEED, buffer_tx, TMAG5170_SPI_BUFFER_LEN); in tmag5170_transmit() 174 TMAG5170_SET_CRC(buffer_tx, crc); in tmag5170_transmit() 176 int ret = tmag5170_transmit_raw(dev->config, buffer_tx, buffer_rx); in tmag5170_transmit() 194 uint8_t buffer_tx[4] = { reg, (data >> 8) & 0xFF, data & 0xFF, 0x00U }; in tmag5170_write_register() local 196 return tmag5170_transmit(dev, buffer_tx, NULL); in tmag5170_write_register() 204 uint8_t buffer_tx[4] = { BIT(7) | reg, 0x00U, 0x00U, (cmd & BIT_MASK(4U)) << 4U }; in tmag5170_read_register() local [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_mcp23sxx.c | 36 uint8_t buffer_tx[4] = { addr, reg, 0, 0 }; in mcp23sxx_read_port_regs() local 40 .buf = buffer_tx, in mcp23sxx_read_port_regs() 82 uint8_t buffer_tx[4] = { addr, reg, port_a_data, port_b_data }; in mcp23sxx_write_port_regs() local 86 .buf = buffer_tx, in mcp23sxx_write_port_regs()
|
/Zephyr-latest/drivers/adc/ |
D | adc_ads114s0x.c | 460 uint8_t buffer_tx[3]; in ads114s0x_read_register() local 461 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in ads114s0x_read_register() 463 .buf = buffer_tx, in ads114s0x_read_register() 464 .len = ARRAY_SIZE(buffer_tx), in ads114s0x_read_register() 479 buffer_tx[0] = ((uint8_t)ADS114S0X_COMMAND_RREG) | ((uint8_t)register_address); in ads114s0x_read_register() 481 buffer_tx[1] = 0x00; in ads114s0x_read_register() 500 uint8_t buffer_tx[3]; in ads114s0x_write_register() local 502 .buf = buffer_tx, in ads114s0x_write_register() 503 .len = ARRAY_SIZE(buffer_tx), in ads114s0x_write_register() 510 buffer_tx[0] = ((uint8_t)ADS114S0X_COMMAND_WREG) | ((uint8_t)register_address); in ads114s0x_write_register() [all …]
|
D | adc_max1125x.c | 249 uint8_t buffer_tx[3]; in max1125x_read_reg() local 250 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in max1125x_read_reg() 252 .buf = buffer_tx, in max1125x_read_reg() 253 .len = ARRAY_SIZE(buffer_tx), in max1125x_read_reg() 267 buffer_tx[0] = MAX1125X_CMD_READ | reg_addr; in max1125x_read_reg() 269 buffer_tx[1] = 0x00; in max1125x_read_reg() 365 uint8_t buffer_tx[(config->resolution / 8) + 1]; in max1125x_read_sample() local 366 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in max1125x_read_sample() 371 .buf = buffer_tx, in max1125x_read_sample() 372 .len = ARRAY_SIZE(buffer_tx), in max1125x_read_sample() [all …]
|
/Zephyr-latest/drivers/dac/ |
D | dac_ad56xx.c | 48 uint8_t buffer_tx[3]; in ad56xx_write_command() local 49 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in ad56xx_write_command() 51 .buf = buffer_tx, in ad56xx_write_command() 52 .len = ARRAY_SIZE(buffer_tx), in ad56xx_write_command() 67 buffer_tx[0] = (command << 4) | address; in ad56xx_write_command() 69 sys_put_be16(value, buffer_tx + 1); in ad56xx_write_command()
|
/Zephyr-latest/tests/boards/mec15xxevb_assy6853/qspi/src/ |
D | main.c | 35 uint8_t buffer_tx[] = "0123456789\0"; variable 205 memcpy(&safbuf[4], buffer_tx, BUF_SIZE); in test_spi_single_write() 272 zassert_true(memcmp(buffer_tx, safbuf2, BUF_SIZE) == 0, in ZTEST_USER() 344 zassert_true(memcmp(buffer_tx, safbuf2, BUF_SIZE) == 0, in ZTEST_USER() 650 zassert_true(memcmp(buffer_tx, safbuf2, BUF_SIZE) == 0, in ZTEST_USER()
|
/Zephyr-latest/tests/boards/mec172xevb_assy6906/qspi/src/ |
D | main.c | 38 uint8_t buffer_tx[] = "0123456789\0"; variable 310 memcpy(&safbuf[4], buffer_tx, BUF_SIZE); in test_spi_single_write() 395 zassert_true(memcmp(buffer_tx, safbuf2, BUF_SIZE) == 0, in ZTEST_USER() 461 zassert_true(memcmp(buffer_tx, safbuf2, BUF_SIZE) == 0, in ZTEST_USER()
|