SPI_IOC_MESSAGE(1) SPI_IOC_MESSAGE(N)一次进行双向/多次读写操作。 这个“一次进行双向/多次读写操作”什么意思?5 SPI应用编程中: SPI_IOC_MESSAGE(N) 一次进行双向/多次读写操作。使用的方式如下: struct spi_ioc_transfer xfer[2]; ... status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer); 这个“一次...
a = ioctl(spi_device, SPI_IOC_MESSAGE(1), &k); ioctl 读一个结构体 struct spi_ioc_transfer k; https://blog.csdn.net/liangxiaozhang/article/details/7601880