1 // Copyright (C) 2022 Beken Corporation 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #include <common/bk_err.h> 18 #include <driver/media_types.h> 19 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 typedef enum 26 { 27 DVP_MODE_JPG = 0, 28 DVP_MODE_YUV 29 } dvp_mode_t; 30 31 32 typedef enum 33 { 34 JPEG_96M_MCLK_16M, 35 JPEG_96M_MCLK_24M, 36 JPEG_120M_MCLK_30M, 37 } sensor_clk_t; 38 39 40 typedef enum 41 { 42 ID_UNKNOW = 0, 43 ID_PAS6329, 44 ID_OV7670, 45 ID_PAS6375, 46 ID_GC0328C, 47 ID_BF2013, 48 ID_GC0308C, 49 ID_HM1055, 50 ID_GC2145, 51 ID_OV2640 52 } sensor_id_t; 53 54 55 typedef enum 56 { 57 FPS5 = (1 << 0), /**< 5fps */ 58 FPS10 = (1 << 1), /**< 10fps */ 59 FPS15 = (1 << 2), /**< 15fps */ 60 FPS20 = (1 << 3), /**< 20fps */ 61 FPS25 = (1 << 4), /**< 25fps */ 62 FPS30 = (1 << 5), /**< 30fps */ 63 } sensor_fps_t; 64 65 66 /* 67 * @} 68 */ 69 70 #ifdef __cplusplus 71 } 72 #endif 73