/** ****************************************************************************** * @file camera_app.h * @author MCD Application Team * @brief Camera application header file ****************************************************************************** * @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__CAMERA_APP_H#define__CAMERA_APP_H#ifdef__cplusplusextern"C"{#endif/* Includes ------------------------------------------------------------------*/#include"main.h"Includes/* Exported constants --------------------------------------------------------*/#defineCAMERA_FRAME_BUFFER0xC0010000#defineCAMERA_CVRT_BUFFER0xC0019600//0xC001E100 #defineCAMERA_BUFFER_SIZE(1024*38)#defineRGB_HEADER_SIZE54#defineIMAGE_BUFFER_SIZE(160*120*2)/* Size of RGB16 image */#defineMAX_IMAGE_SIZE(160*120*3)/* Size of RGB24 image */#defineIMAGE_COLUMN_SIZE160#defineIMAGE_LINE_SIZE1208 definesExported constants/* Exported types ------------------------------------------------------------*/typedefunion{uint32_td32;struct{uint32_tbrightness:3;uint32_tcontrast:3;...}b;...}CameraSettingsTypeDef;Exported types/* Exported macros -----------------------------------------------------------*//* Exported functions ------------------------------------------------------- */voidCAMERA_Init(void);voidCAMERA_Suspend(void);voidCAMERA_Resume(void);voidCAMERA_Stop(void);voidCAMERA_Set_ContrastBrightness(uint32_tcontrast_Level,uint32_tbrightness_level);voidCAMERA_SelectEffect(uint32_teffect);uint8_tCAMERA_SaveToFile(uint8_t*path);uint8_tCAMERA_GetState(void);#ifdef__cplusplus}extern "C" { ... }#endif/* ... */#endif/*__CAMERA_APP_H */