Go to the documentation of this file. 23 #ifndef _RTDM_UAPI_PWM_H 24 #define _RTDM_UAPI_PWM_H 26 #include <linux/types.h> 28 #define RTPWM_PROFILE_VER 1 31 unsigned int duty_cycle;
32 unsigned int range_min;
33 unsigned int range_max;
38 #define RTIOC_TYPE_PWM RTDM_CLASS_PWM 40 #define GPIOPWM_RTIOC_SET_CONFIG \ 41 _IOW(RTIOC_TYPE_PWM, 0x00, struct gpiopwm) 43 #define GPIOPWM_RTIOC_GET_CONFIG \ 44 _IOR(RTIOC_TYPE_PWM, 0x10, struct gpiopwm) 46 #define GPIOPWM_RTIOC_START \ 47 _IO(RTIOC_TYPE_PWM, 0x20) 49 #define GPIOPWM_RTIOC_STOP \ 50 _IO(RTIOC_TYPE_PWM, 0x30) 52 #define GPIOPWM_RTIOC_CHANGE_DUTY_CYCLE \ 53 _IOW(RTIOC_TYPE_PWM, 0x40, unsigned int)