forked from cck56/mijia-720p-ctrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathioctl_motor.h
25 lines (20 loc) · 1014 Bytes
/
ioctl_motor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _IOCTL_MOTOR_H_
#define _IOCTL_MOTOR_H_
#include <linux/ioctl.h>
//============================================================================
// data struct
//============================================================================
//============================================================================
// I/O control ID
//============================================================================
/* Use 'M' as magic number */
#define MOTOR_IOC_MAGIC 'M'
#define MOTOR_IOCTL_H_SET_DIR _IOW(MOTOR_IOC_MAGIC, 3, int)
#define MOTOR_IOCTL_H_MOVE_REL _IOW(MOTOR_IOC_MAGIC, 4, int)
#define MOTOR_IOCTL_H_GET_POS _IOW(MOTOR_IOC_MAGIC, 5, int)
#define MOTOR_IOCTL_H_SET_POS _IOW(MOTOR_IOC_MAGIC, 6, int)
#define MOTOR_IOCTL_V_SET_DIR _IOW(MOTOR_IOC_MAGIC, 23, int)
#define MOTOR_IOCTL_V_MOVE_REL _IOW(MOTOR_IOC_MAGIC, 24, int)
#define MOTOR_IOCTL_V_GET_POS _IOW(MOTOR_IOC_MAGIC, 25, int)
#define MOTOR_IOCTL_V_SET_POS _IOW(MOTOR_IOC_MAGIC, 26, int)
#endif /*_IOCTL_MOTOR_H_*/