-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCH56x_dvp.h
63 lines (54 loc) · 1.23 KB
/
CH56x_dvp.h
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
/********************************** (C) COPYRIGHT *******************************
* File Name : CH56x_dvp.c
* Author : WCH, bvernoux
* Version : V1.1
* Date : 2022/08/07
* Description
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Copyright (c) 2022 Benjamin VERNOUX
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#ifndef __CH56x_DVP_H__
#define __CH56x_DVP_H__
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief DVP Data Mode
*/
typedef enum
{
Video_Mode = 0,
JPEG_Mode,
} DVP_Data_ModeTypeDef;
/**
* @brief DVP DMA
*/
typedef enum
{
DVP_DMA_Disable = 0,
DVP_DMA_Enable,
} DVP_DMATypeDef;
/**
* @brief DVP FLAG and FIFO Reset
*/
typedef enum
{
DVP_FLAG_FIFO_RESET_Disable = 0,
DVP_FLAG_FIFO_RESET_Enable,
} DVP_FLAG_FIFO_RESETTypeDef;
/**
* @brief 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 // __CH56x_DVP_H__