Lines Matching refs:rx_buffer
29 static void print_tx_rx_buffer(const uint8_t *const tx_buffer, const uint8_t *const rx_buffer) in print_tx_rx_buffer() argument
32 LOG_HEXDUMP_DBG(rx_buffer, BUFFER_SIZE, "RX: "); in print_tx_rx_buffer()
39 uint8_t rx_buffer[BUFFER_SIZE]; in tmc_spi_read_register() local
52 .buf = &rx_buffer, in tmc_spi_read_register()
53 .len = sizeof(rx_buffer), in tmc_spi_read_register()
66 print_tx_rx_buffer(tx_buffer, rx_buffer); in tmc_spi_read_register()
67 parse_tmc_spi_status(rx_buffer[0]); in tmc_spi_read_register()
75 *data = ((uint32_t)rx_buffer[1] << 24) + ((uint32_t)rx_buffer[2] << 16) + in tmc_spi_read_register()
76 ((uint32_t)rx_buffer[3] << 8) + (uint32_t)rx_buffer[4]; in tmc_spi_read_register()
78 print_tx_rx_buffer(tx_buffer, rx_buffer); in tmc_spi_read_register()
79 parse_tmc_spi_status(rx_buffer[0]); in tmc_spi_read_register()
88 uint8_t rx_buffer[BUFFER_SIZE]; in tmc_spi_write_register() local
101 .buf = &rx_buffer, in tmc_spi_write_register()
102 .len = sizeof(rx_buffer), in tmc_spi_write_register()
114 print_tx_rx_buffer(tx_buffer, rx_buffer); in tmc_spi_write_register()
115 parse_tmc_spi_status(rx_buffer[0]); in tmc_spi_write_register()