Xenomai  3.0.8
spi.h
1 
18 #ifndef _RTDM_UAPI_SPI_H
19 #define _RTDM_UAPI_SPI_H
20 
21 #include <linux/types.h>
22 
24  __u32 speed_hz;
25  __u16 mode;
26  __u8 bits_per_word;
27 };
28 
29 struct rtdm_spi_iobufs {
30  __u32 io_len;
31  __u32 i_offset;
32  __u32 o_offset;
33  __u32 map_len;
34 };
35 
36 #define SPI_RTIOC_SET_CONFIG _IOW(RTDM_CLASS_SPI, 0, struct rtdm_spi_config)
37 #define SPI_RTIOC_GET_CONFIG _IOR(RTDM_CLASS_SPI, 1, struct rtdm_spi_config)
38 #define SPI_RTIOC_SET_IOBUFS _IOR(RTDM_CLASS_SPI, 2, struct rtdm_spi_iobufs)
39 #define SPI_RTIOC_TRANSFER _IO(RTDM_CLASS_SPI, 3)
40 
41 #endif /* !_RTDM_UAPI_SPI_H */
Definition: spi.h:23