问tx_buf期望在spi_transfer中作为输入的内容ENSPI是英语Serial Peripheral interface的缩写,顾名思义就...
{intspi_fd;intstatus;uint8_ttx_buf[LEN];uint8_trx_buf[LEN];structspi_ioc_transferxfer;if((spi_fd=open("/dev/spidev0.1",O_RDWR))<0) {return-1;}memset(&xfer,0,sizeof(xfer));xfer.tx_buf=(unsigned long)tx_buf;xfer.rx_buf=(unsigned long)rx_buf;xfer.len=LEN;xfer.delay_usecs=...
We use the spi0 with DMA transfer pathway on raspberrypi pi 4b, the peripheral device is FTF LCD st7789v. 1,it occurs transfer TIMOUT error when display RGB565 data to the LCD divice which log messages ars at follow. 2,when this error happens, it can not restore by reboot the system....