I am looking at the example code in Freescale MQX 3.8\mqx\examples\spi\spi.c . I can see how the various SPI control parameters are changed except for the chip select. We have a custom design with SPI devices connected to each of the four chip selects on SPI1 (SPI1_PCS0, SPI1_PCS1, SPI1_PCS2, SPI1_PCS3). It looks like I use ioctl(spifd, IO_IOCTL_SPI_SET_CS, ¶m) to change the current chip select. Is this correct? If so, what does 'param' get set to for each of the chip selects? If not, how do I change the active chip select?