I'm using spidev access to use SPI on an AM3359 running linux. I want to send 16 bits per word so I'm using the following command:
status1 = ioctl(fd1, SPI_IOC_WR_BITS_PER_WORD, &bits);
where bits is 16
When I run the code I get an error: "SPI_IOC_MESSAGE: Input/output error"
When I change the bits value to 8, the code runs without error. Is there another place I need to set the bits per word to 16 to run without error?
Thanks,
Alex