mt_irlearning.h 394 B

123456789101112131415
  1. #define DEV_NAME "ir-learning"
  2. #define SPI_BUF_LEN (256*1024)
  3. struct mt_irlearning {
  4. unsigned int spi_clock; /* SPI clock source */
  5. unsigned int spi_hz; /* SPI clock output */
  6. unsigned int spi_data_invert;
  7. unsigned int spi_cs_invert;
  8. void *spi_buffer;
  9. struct spi_device *spi_dev;
  10. };
  11. #define SPI_IOC_READ_WAVE _IOR('k', 1, __u8)
  12. #define SPI_IOC_GET_SAMPLE_RATE _IOR('k', 2, __u8)