1 /* 2 * A V4L2 driver for nvp6158c yuv cameras. 3 * 4 * Copyright (c) 2019 by Allwinnertech Co., Ltd. http://www.allwinnertech.com 5 * 6 * Authors: Zheng Zequn<zequnzheng@allwinnertech.com> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License version 2 as 10 * published by the Free Software Foundation. 11 */ 12 #ifndef _MOTION_H_ 13 #define _MOTION_H_ 14 15 #include "common.h" 16 17 #define FUNC_ON 0x01 18 #define FUNC_OFF 0x00 19 20 typedef struct _motion_mode{ 21 unsigned char ch; 22 unsigned char devnum; 23 unsigned char set_val; 24 25 unsigned char fmtdef; 26 } motion_mode; 27 28 void motion_nvp6158_onoff_set(motion_mode *motion_set); 29 void motion_nvp6158_display_onoff_set(motion_mode *motion_set); 30 void motion_nvp6158_pixel_all_onoff_set(motion_mode *motion_set); 31 void motion_nvp6158_pixel_onoff_set(motion_mode *motion_set); 32 void motion_nvp6158_pixel_onoff_get(motion_mode *motion_set); 33 void motion_nvp6158_tsen_set(motion_mode *motion_set); 34 void motion_nvp6158_psen_set(motion_mode *motion_set); 35 void motion_nvp6158_detection_get(motion_mode *motion_set); 36 37 #endif /* _MOTION_H_ */ 38