xref: /OK3568_Linux_fs/kernel/drivers/media/i2c/nvp6158_drv/nvp6158_motion.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 // SPDX-License-Identifier: GPL-2.0
2 /********************************************************************************
3 *
4 *  Copyright (C) 2017 	NEXTCHIP Inc. All rights reserved.
5 *  Module		: motion.h
6 *  Description	:
7 *  Author		:
8 *  Date         :
9 *  Version		: Version 1.0
10 *
11 ********************************************************************************
12 *  History      :
13 *
14 *
15 ********************************************************************************/
16 #ifndef _MOTION_H_
17 #define _MOTION_H_
18 
19 #include "nvp6158_common.h"
20 
21 #define FUNC_ON		0x01
22 #define FUNC_OFF		0x00
23 
24 typedef struct _motion_mode{
25 	unsigned char ch;
26 	unsigned char devnum;
27 	unsigned char set_val;
28 
29 	unsigned char fmtdef;
30 }motion_mode;
31 
32 void nvp6158_motion_onoff_set(motion_mode *motion_set);
33 void nvp6158_motion_display_onoff_set(motion_mode *motion_set);
34 void nvp6158_motion_pixel_all_onoff_set(motion_mode *motion_set);
35 void nvp6158_motion_pixel_onoff_set(motion_mode *motion_set);
36 void nvp6158_motion_pixel_onoff_get(motion_mode *motion_set);
37 void nvp6158_motion_tsen_set(motion_mode *motion_set);
38 void nvp6158_motion_psen_set(motion_mode *motion_set);
39 void nvp6158_motion_detection_get(motion_mode *motion_set);
40 
41 #endif /* _MOTION_H_ */
42