Select one of the symbols to view example projects that use it.
 
Outline
#define __STM32469I_EVAL_CAMERA_H
#include "../Components/s5k5cag/s5k5cag.h"
#include "../Components/ov5640/ov5640.h"
#include "stm32469i_eval_io.h"
Camera_StatusTypeDef
Camera_RotationTypeDef
#define RESOLUTION_R160x120
#define RESOLUTION_R320x240
#define RESOLUTION_R480x272
#define RESOLUTION_R640x480
#define CAMERA_VGA_RES_X
#define CAMERA_VGA_RES_Y
#define CAMERA_480x272_RES_X
#define CAMERA_480x272_RES_Y
#define CAMERA_QVGA_RES_X
#define CAMERA_QVGA_RES_Y
#define CAMERA_QQVGA_RES_X
#define CAMERA_QQVGA_RES_Y
BSP_CAMERA_SetRotation(uint32_t);
BSP_CAMERA_GetRotation();
BSP_CAMERA_Init(uint32_t);
BSP_CAMERA_DeInit();
BSP_CAMERA_ContinuousStart(uint8_t *);
BSP_CAMERA_SnapshotStart(uint8_t *);
BSP_CAMERA_Suspend();
BSP_CAMERA_Resume();
BSP_CAMERA_Stop();
BSP_CAMERA_HwReset();
BSP_CAMERA_PwrDown();
BSP_CAMERA_LineEventCallback();
BSP_CAMERA_VsyncEventCallback();
BSP_CAMERA_FrameEventCallback();
BSP_CAMERA_ErrorCallback();
BSP_CAMERA_ContrastBrightnessConfig(uint32_t, uint32_t);
BSP_CAMERA_BlackWhiteConfig(uint32_t);
BSP_CAMERA_ColorEffectConfig(uint32_t);
BSP_CAMERA_IRQHandler();
BSP_CAMERA_DMA_IRQHandler();
BSP_CAMERA_MspInit(DCMI_HandleTypeDef *, void *);
BSP_CAMERA_MspDeInit(DCMI_HandleTypeDef *, void *);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTM32469I_EVALstm32469i_eval_camera.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file stm32469i_eval_camera.h * @author MCD Application Team * @brief This file contains the common defines and functions prototypes for * the stm32469i_eval_camera.c driver. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32469I_EVAL_CAMERA_H #define __STM32469I_EVAL_CAMERA_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ /* Include Camera component Driver */ #include "../Components/s5k5cag/s5k5cag.h" #include "../Components/ov5640/ov5640.h" /* Include IO Driver */ #include "stm32469i_eval_io.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup STM32469I_EVAL * @{ *//* ... */ /** @addtogroup STM32469I-EVAL_CAMERA * @{ *//* ... */ /** @defgroup STM32469I-EVAL_CAMERA_Exported_Types STM32469I EVAL CAMERA Exported Types * @{ *//* ... */ /** * @brief Camera State structures definition *//* ... */ typedef enum { CAMERA_OK = 0x00, CAMERA_ERROR = 0x01, CAMERA_TIMEOUT = 0x02, CAMERA_NOT_DETECTED = 0x03, CAMERA_NOT_SUPPORTED = 0x04 ...} Camera_StatusTypeDef; /** * @brief Camera Image rotation definition * in frame buffer for LCD Display. *//* ... */ typedef enum { CAMERA_NO_ROTATION = 0x00, CAMERA_ROTATION_90 = 0x01, CAMERA_ROTATION_INVALID = 0x02 ...} Camera_RotationTypeDef; #define RESOLUTION_R160x120 CAMERA_R160x120 /* QQVGA Resolution */ #define RESOLUTION_R320x240 CAMERA_R320x240 /* QVGA Resolution */ #define RESOLUTION_R480x272 CAMERA_R480x272 /* 480x272 Resolution */ #define RESOLUTION_R640x480 CAMERA_R640x480 /* VGA Resolution */ #define CAMERA_VGA_RES_X 640 #define CAMERA_VGA_RES_Y 480 #define CAMERA_480x272_RES_X 480 #define CAMERA_480x272_RES_Y 272 #define CAMERA_QVGA_RES_X 320 #define CAMERA_QVGA_RES_Y 240 #define CAMERA_QQVGA_RES_X 160 #define CAMERA_QQVGA_RES_Y 120 12 defines /** * @} *//* ... */ /** @defgroup STM32469I-EVAL_CAMERA_Exported_Constants STM32469I EVAL CAMERA Exported Constants * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup STM32469I-EVAL_CAMERA_Exported_Functions STM32469I EVAL CAMERA Exported Functions * @{ *//* ... */ uint8_t BSP_CAMERA_SetRotation(uint32_t rotation); uint32_t BSP_CAMERA_GetRotation(void); uint8_t BSP_CAMERA_Init(uint32_t Resolution); uint8_t BSP_CAMERA_DeInit(void); void BSP_CAMERA_ContinuousStart(uint8_t *buff); void BSP_CAMERA_SnapshotStart(uint8_t *buff); void BSP_CAMERA_Suspend(void); void BSP_CAMERA_Resume(void); uint8_t BSP_CAMERA_Stop(void); void BSP_CAMERA_HwReset(void); void BSP_CAMERA_PwrDown(void); void BSP_CAMERA_LineEventCallback(void); void BSP_CAMERA_VsyncEventCallback(void); void BSP_CAMERA_FrameEventCallback(void); void BSP_CAMERA_ErrorCallback(void); /* Camera features functions prototype */ void BSP_CAMERA_ContrastBrightnessConfig(uint32_t contrast_level, uint32_t brightness_level); void BSP_CAMERA_BlackWhiteConfig(uint32_t Mode); void BSP_CAMERA_ColorEffectConfig(uint32_t Effect); /* To be called in DCMI_IRQHandler function */ void BSP_CAMERA_IRQHandler(void); /* To be called in DMA2_Stream1_IRQHandler function */ void BSP_CAMERA_DMA_IRQHandler(void); /* These functions can be modified in case the current settings (e.g. DMA stream) need to be changed for specific application needs *//* ... */ void BSP_CAMERA_MspInit(DCMI_HandleTypeDef *hdcmi, void *Params); void BSP_CAMERA_MspDeInit(DCMI_HandleTypeDef *hdcmi, void *Params); /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __STM32469I_EVAL_CAMERA_H */