That is part of my confusion - ioctl is "native kernel module" , driver is something external , build specifically as hardware interface, usually.
I am using ioctl(*spi_cs_fd, SPI_IOC_MESSAGE(length), &spi); to transfer data to a device which requires selection of command or data "mode".
BTW ioctl works fine interfacing with I2C protocol.
The ioctl SPI function I am using does not provide for switching of C/D signal.
I have choices - the crude one - switch the C/D to proper mode BEFORE using the ioctl, or hard one - analyse the SPI_IOC_MESSAGE macro together with the transfer struct it uses to add switching C/D.
And yes, the ioctl(*spi_cs_fd, SPI_IOC_MESSAGE(length), &spi); "talks" standard SPI , the ILI9341 does not.
|