-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcef168.h
More file actions
32 lines (26 loc) · 714 Bytes
/
Copy pathcef168.h
File metadata and controls
32 lines (26 loc) · 714 Bytes
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
26
27
28
29
30
31
32
#ifndef CEF168_CEF168_H
#define CEF168_CEF168_H
#define CEF168_V4L2_CID_CUSTOM(ctrl) \
((V4L2_CID_USER_BASE | 168) + custom_##ctrl)
enum { custom_lens_id, custom_data, custom_calibrate };
struct cef168_data {
__u8 lens_id;
__u8 moving : 1;
__u8 calibrating : 2;
__u16 moving_time;
__u16 focus_position_min;
__u16 focus_position_max;
__u16 focus_position_cur;
__u16 focus_distance_min;
__u16 focus_distance_max;
__u8 crc8;
} __packed;
#define INP_CALIBRATE 0x22
#define INP_SET_FOCUS 0x80
#define INP_SET_FOCUS_P 0x81
#define INP_SET_FOCUS_N 0x82
#define INP_SET_APERTURE 0x7A
#define INP_SET_APERTURE_P 0x7B
#define INP_SET_APERTURE_N 0x7C
#define CEF_CRC8_POLYNOMIAL 168
#endif //CEF168_CEF168_H