Lines Matching refs:rd_data
69 uint8_t rd_data[SBUS_FRAME_LEN]; member
203 uint8_t *rd_data = data->rd_data; in sbus_resync() local
206 data->xfer_bytes += uart_fifo_read(uart_dev, &rd_data[data->xfer_bytes], in sbus_resync()
213 } else if (rd_data[0] == SBUS_HEADER && in sbus_resync()
214 rd_data[SBUS_FRAME_LEN - 1] == SBUS_FOOTER) { in sbus_resync()
218 uart_fifo_read(uart_dev, &rd_data[0], 1); in sbus_resync()
224 if (uart_fifo_read(uart_dev, &rd_data[0], 1) == 1) { in sbus_resync()
225 if (rd_data[0] == SBUS_HEADER) { in sbus_resync()
238 uint8_t *rd_data = data->rd_data; in sbus_uart_isr() local
255 data->xfer_bytes += uart_fifo_read(uart_dev, &rd_data[data->xfer_bytes], in sbus_uart_isr()
271 if (rd_data[0] == SBUS_HEADER && rd_data[SBUS_FRAME_LEN - 1] == SBUS_FOOTER) { in sbus_uart_isr()
272 memcpy(data->sbus_frame, rd_data, SBUS_FRAME_LEN); in sbus_uart_isr()