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