Lines Matching refs:rx_size
104 uint16_t rx_size; in modbus_ascii_rx_adu() local
108 rx_size = cfg->uart_buf_ctr; in modbus_ascii_rx_adu()
111 if (!(rx_size & 0x01)) { in modbus_ascii_rx_adu()
116 if (rx_size < MODBUS_ASCII_MIN_MSG_SIZE) { 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()
129 rx_size -= 3; in modbus_ascii_rx_adu()
135 rx_size -= 2; in modbus_ascii_rx_adu()
138 rx_size -= 2; in modbus_ascii_rx_adu()
142 while (rx_size > 2) { in modbus_ascii_rx_adu()
146 rx_size -= 2; in modbus_ascii_rx_adu()