Home
last modified time | relevance | path

Searched refs:tx_bytes (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.4.0/subsys/modbus/
Dmodbus_serial.c188 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.4.0/drivers/w1/
Dw1_ds2485.c33 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.4.0/drivers/adc/
Dadc_mcp320x.c181 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()
Dadc_ads7052.c100 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.4.0/include/zephyr/drivers/
Dspi.h428 STATS_SECT_ENTRY32(tx_bytes)
434 STATS_NAME(spi, tx_bytes)
466 STATS_INCN(Z_SPI_GET_STATS(dev_), tx_bytes, n)
539 uint32_t tx_bytes; in spi_transceive_stats() local
547 tx_bytes = tx_bufs->count ? tx_bufs->buffers->len : 0; in spi_transceive_stats()
548 SPI_STATS_TX_BYTES_INCN(dev, tx_bytes); in spi_transceive_stats()
/Zephyr-Core-3.4.0/drivers/serial/
Duart_npcx.c149 uint8_t tx_bytes = 0U; in uart_npcx_fifo_fill() local
153 while ((size - tx_bytes > 0) && uart_npcx_tx_fifo_ready(dev)) { in uart_npcx_fifo_fill()
155 inst->UTBUF = tx_data[tx_bytes++]; in uart_npcx_fifo_fill()
164 return tx_bytes; in uart_npcx_fifo_fill()