Searched refs:tx_bytes (Results 1 – 9 of 9) sorted by relevance
/Zephyr-Core-3.7.0/subsys/modbus/ |
D | modbus_serial.c | 188 uint16_t tx_bytes = 0; in modbus_ascii_tx_adu() local 194 tx_bytes = 1; in modbus_ascii_tx_adu() 198 tx_bytes += 2; in modbus_ascii_tx_adu() 200 tx_bytes += 2; in modbus_ascii_tx_adu() 204 tx_bytes += 2; in modbus_ascii_tx_adu() 215 lrc = modbus_ascii_get_lrc(&cfg->uart_buf[1], (tx_bytes - 1) / 2); in modbus_ascii_tx_adu() 217 tx_bytes += 2; in modbus_ascii_tx_adu() 221 tx_bytes += 2; in modbus_ascii_tx_adu() 224 cfg->uart_buf_ctr = tx_bytes; in modbus_ascii_tx_adu() 283 uint16_t tx_bytes = 0; in rtu_tx_adu() local [all …]
|
/Zephyr-Core-3.7.0/drivers/w1/ |
D | w1_ds2485.c | 33 uint8_t tx_bytes[3 + SCRIPT_WR_LEN] = { in ds2485_w1_script_cmd() local 52 memcpy(&tx_bytes[3], tx_buf, tx_len); in ds2485_w1_script_cmd() 53 ret = i2c_write_dt(&cfg->i2c_spec, tx_bytes, i2c_len); in ds2485_w1_script_cmd()
|
/Zephyr-Core-3.7.0/drivers/i2c/ |
D | i2c_bcm_iproc.c | 164 uint32_t tx_bytes; member 665 uint32_t val, addr, tx_bytes, val_intr_en; in iproc_i2c_transfer_one() local 682 tx_bytes = MIN(msg->len, (TX_RX_FIFO_SIZE - 1)); in iproc_i2c_transfer_one() 685 for (uint32_t i = 0; i < tx_bytes; i++) { in iproc_i2c_transfer_one() 694 dd->tx_bytes = tx_bytes; in iproc_i2c_transfer_one() 704 if (!(msg->flags & I2C_MSG_READ) && (msg->len > dd->tx_bytes)) { in iproc_i2c_transfer_one() 805 uint32_t tx_bytes = msg->len - dd->tx_bytes; in iproc_i2c_send_data() local 808 tx_bytes = MIN(tx_bytes, TX_RX_FIFO_SIZE); in iproc_i2c_send_data() 809 for (uint32_t i = 0; i < tx_bytes; i++) { in iproc_i2c_send_data() 811 uint32_t idx = dd->tx_bytes + i; in iproc_i2c_send_data() [all …]
|
/Zephyr-Core-3.7.0/drivers/adc/ |
D | adc_mcp320x.c | 181 uint8_t tx_bytes[2]; in mcp320x_read_channel() local 186 .buf = tx_bytes, in mcp320x_read_channel() 187 .len = sizeof(tx_bytes) in mcp320x_read_channel() 217 tx_bytes[0] = BIT(2) | channel >> 2; in mcp320x_read_channel() 218 tx_bytes[1] = channel << 6; in mcp320x_read_channel() 221 tx_bytes[0] |= BIT(1); in mcp320x_read_channel()
|
D | adc_ads7052.c | 100 uint8_t tx_bytes[8] = {0}; in ads7052_send_calibration() local 102 const struct spi_buf tx_buf = {.buf = tx_bytes, .len = num_bytes}; in ads7052_send_calibration()
|
/Zephyr-Core-3.7.0/drivers/serial/ |
D | uart_ene_kb1200.c | 127 uint16_t tx_bytes = 0U; in kb1200_uart_fifo_fill() local 129 while ((size - tx_bytes) > 0) { in kb1200_uart_fifo_fill() 134 config->ser->SERTBUF = tx_data[tx_bytes]; in kb1200_uart_fifo_fill() 135 tx_bytes++; in kb1200_uart_fifo_fill() 137 return tx_bytes; in kb1200_uart_fifo_fill()
|
D | uart_numaker.c | 248 int tx_bytes = 0; in uart_numaker_fifo_fill() local 251 while (((size - tx_bytes) > 0) && (!(uart->FIFOSTS & UART_FIFOSTS_TXFULL_Msk))) { in uart_numaker_fifo_fill() 253 uart->DAT = tx_data[tx_bytes++]; in uart_numaker_fifo_fill() 256 return tx_bytes; in uart_numaker_fifo_fill()
|
D | uart_npcx.c | 212 uint8_t tx_bytes = 0U; in uart_npcx_fifo_fill() local 216 while ((size - tx_bytes > 0) && uart_npcx_tx_fifo_ready(dev)) { in uart_npcx_fifo_fill() 218 inst->UTBUF = tx_data[tx_bytes++]; in uart_npcx_fifo_fill() 227 return tx_bytes; in uart_npcx_fifo_fill()
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | spi.h | 447 STATS_SECT_ENTRY32(tx_bytes) 453 STATS_NAME(spi, tx_bytes) 485 STATS_INCN(Z_SPI_GET_STATS(dev_), tx_bytes, n) 558 uint32_t tx_bytes; in spi_transceive_stats() local 566 tx_bytes = tx_bufs->count ? tx_bufs->buffers->len : 0; in spi_transceive_stats() 567 SPI_STATS_TX_BYTES_INCN(dev, tx_bytes); in spi_transceive_stats()
|