Home
last modified time | relevance | path

Searched refs:uart_buf (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.6.0/subsys/modbus/
Dmodbus_serial.c121 if ((cfg->uart_buf[0] != MODBUS_ASCII_START_FRAME_CHAR) || in modbus_ascii_rx_adu()
122 (cfg->uart_buf[rx_size - 2] != MODBUS_ASCII_END_FRAME_CHAR1) || in modbus_ascii_rx_adu()
123 (cfg->uart_buf[rx_size - 1] != MODBUS_ASCII_END_FRAME_CHAR2)) { in modbus_ascii_rx_adu()
131 pmsg = &cfg->uart_buf[1]; in modbus_ascii_rx_adu()
161 calc_lrc = modbus_ascii_get_lrc(&cfg->uart_buf[1], in modbus_ascii_rx_adu()
193 cfg->uart_buf[0] = MODBUS_ASCII_START_FRAME_CHAR; in modbus_ascii_tx_adu()
196 pbuf = &cfg->uart_buf[1]; in modbus_ascii_tx_adu()
215 lrc = modbus_ascii_get_lrc(&cfg->uart_buf[1], (tx_bytes - 1) / 2); in modbus_ascii_tx_adu()
225 cfg->uart_buf_ptr = &cfg->uart_buf[0]; in modbus_ascii_tx_adu()
257 ctx->rx_adu.unit_id = cfg->uart_buf[0]; in modbus_rtu_rx_adu()
[all …]
Dmodbus_internal.h87 uint8_t uart_buf[CONFIG_MODBUS_BUFFER_SIZE]; member