1 /********************************** (C) COPYRIGHT ******************************* 2 * File Name : ch32f20x_dvp.h 3 * Author : WCH 4 * Version : V1.0.0 5 * Date : 2021/08/08 6 * Description : This file contains all the functions prototypes for the 7 * DVP firmware library. 8 *******************************************************************************/ 9 #ifndef __CH32F20x_DVP_H 10 #define __CH32F20x_DVP_H 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #include "ch32f20x.h" 17 18 /* DVP Data Mode */ 19 typedef enum 20 { 21 Video_Mode = 0, 22 JPEG_Mode, 23 }DVP_Data_ModeTypeDef; 24 25 26 /* DVP DMA */ 27 typedef enum 28 { 29 DVP_DMA_Disable = 0, 30 DVP_DMA_Enable, 31 }DVP_DMATypeDef; 32 33 /* DVP FLAG and FIFO Reset */ 34 typedef enum 35 { 36 DVP_FLAG_FIFO_RESET_Disable = 0, 37 DVP_FLAG_FIFO_RESET_Enable, 38 }DVP_FLAG_FIFO_RESETTypeDef; 39 40 /* DVP RX Reset */ 41 typedef enum 42 { 43 DVP_RX_RESET_Disable = 0, 44 DVP_RX_RESET_Enable, 45 }DVP_RX_RESETTypeDef; 46 47 48 49 void DVP_INTCfg( uint8_t s, uint8_t i ); 50 void DVP_Mode( uint8_t s, DVP_Data_ModeTypeDef i); 51 void DVP_Cfg( DVP_DMATypeDef s, DVP_FLAG_FIFO_RESETTypeDef i, DVP_RX_RESETTypeDef j); 52 53 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif 60 61 62 63 64 65 66