/**************************************************************************//** * @file cap.h * @version V0.10 * $Revision: 17 $ * $Date: 15/10/22 10:00a $ * @brief NUC470 series Image Capture Driver Header File * * @note * Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved. * ******************************************************************************/ #ifndef __CAP_H__ #define __CAP_H__ #ifdef __cplusplus extern "C" { #endif /** @addtogroup NUC472_442_Device_Driver NUC472/NUC442 Device Driver @{ */ /** @addtogroup NUC472_442_CAP_Driver CAP Driver @{ */ /** @addtogroup NUC472_442_CAP_EXPORTED_CONSTANTS CAP Exported Constants @{ */ /*---------------------------------------------------------------------------------------------------------*/ /* VINCTRL constant definitions */ /*---------------------------------------------------------------------------------------------------------*/ #define CAP_CTL_CAPEN (1ul<CTL & CAP_CTL_CAPEN_Msk)?0:1) /** * @brief Clear CAP flag * * @param[in] u32IntMask interrupt flags settings. It could be * - \ref CAP_INT_VINTF_Msk * - \ref CAP_INT_MEINTF_Msk * - \ref CAP_INT_ADDRMINTF_Msk * - \ref CAP_INT_MDINTF_Msk * * @return TRUE(Enable) or FALSE(Disable) * * @details Clear Image Capture Interface interrupt flag * \hideinitializer */ #define CAP_CLR_INT_FLAG(u32IntMask) (ICAP->INT |=u32IntMask) /** * @brief Get CAP Interrupt status * * @return TRUE(Enable) or FALSE(Disable) * * @details Get Image Capture Interface interrupt status. * \hideinitializer */ #define CAP_GET_INT_STS() (ICAP->INT) void CAP_Open(uint32_t u32InFormat, uint32_t u32OutFormet); void CAP_SetCroppingWindow(uint32_t u32VStart,uint32_t u32HStart, uint32_t u32Height, uint32_t u32Width); void CAP_SetPacketBuf(uint32_t u32Address ); void CAP_SetPlanarBuf(uint32_t u32YAddr, uint32_t u32UAddr, uint32_t u32VAddr); void CAP_Close(void); void CAP_EnableInt(uint32_t u32IntMask); void CAP_DisableInt(uint32_t u32IntMask); void CAP_Start(void); void CAP_Stop(uint32_t u32FrameComplete); void CAP_SetPacketScaling(uint32_t u32VNumerator, uint32_t u32VDenominator, uint32_t u32HNumerator, uint32_t u32HDenominator); void CAP_SetPlanarScaling(uint32_t u32VNumerator, uint32_t u32VDenominator, uint32_t u32HNumerator, uint32_t u32HDenominator); void CAP_SetPacketStride(uint32_t u32Stride ); void CAP_SetPlanarStride(uint32_t u32Stride ); void CAP_EnableMotionDet(uint32_t u32Freq, uint32_t u32BlockSize, uint32_t u32Format, uint32_t u32Threshold, uint32_t u32YDetAddr, uint32_t u32DetAddr); void CAP_DisableMotionDet(void); /*@}*/ /* end of group NUC472_442_CAP_EXPORTED_FUNCTIONS */ /*@}*/ /* end of group NUC472_442_CAP_Driver */ /*@}*/ /* end of group NUC472_442_Device_Driver */ #ifdef __cplusplus } #endif #endif //__CAP_H__ /*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/