cpukit/spi: Allow driver specific ioctl

This allows a SPI driver to add a hardware specific ioctl.
This commit is contained in:
Christian Mauderer
2020-12-14 14:10:24 +01:00
parent d9794a1f97
commit b2f265ab9f
2 changed files with 10 additions and 0 deletions

View File

@@ -141,6 +141,13 @@ struct spi_bus {
* devices.
*/
uint16_t delay_usecs;
/**
* @brief Driver specific ioctl.
*
* @param[in] bus The bus control.
*/
int (*ioctl)(spi_bus *bus, ioctl_command_t command, void *arg);
};
/**