summaryrefslogtreecommitdiff
path: root/bsp/wch/arm/libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/inc/ch32f20x_dvp.h
blob: 2205e49c33afa603622397dc731b426fd906bfb0 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/********************************** (C) COPYRIGHT  *******************************
* File Name          : ch32f20x_dvp.h
* Author             : WCH
* Version            : V1.0.0
* Date               : 2021/08/08
* Description        : This file contains all the functions prototypes for the 
*                      DVP firmware library.
*******************************************************************************/ 
#ifndef __CH32F20x_DVP_H
#define __CH32F20x_DVP_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "ch32f20x.h"

 /* DVP Data Mode */
 typedef enum
 {
     Video_Mode = 0,
     JPEG_Mode,
 }DVP_Data_ModeTypeDef;


 /* DVP DMA */
 typedef enum
 {
     DVP_DMA_Disable = 0,
     DVP_DMA_Enable,
 }DVP_DMATypeDef;

 /* DVP FLAG and FIFO Reset */
 typedef enum
 {
     DVP_FLAG_FIFO_RESET_Disable = 0,
     DVP_FLAG_FIFO_RESET_Enable,
 }DVP_FLAG_FIFO_RESETTypeDef;

 /* DVP RX Reset */
 typedef enum
 {
     DVP_RX_RESET_Disable = 0,
     DVP_RX_RESET_Enable,
 }DVP_RX_RESETTypeDef;



 void DVP_INTCfg( uint8_t s,  uint8_t i );
 void DVP_Mode( uint8_t s,  DVP_Data_ModeTypeDef i);
 void DVP_Cfg( DVP_DMATypeDef s,  DVP_FLAG_FIFO_RESETTypeDef i, DVP_RX_RESETTypeDef j);



#ifdef __cplusplus
}
#endif

#endif