/**************************************************************************//** * @file nu_ccap.h * @version V1.00 * @brief M480 Series CCAP Driver Header File * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2016-2020 Nuvoton Technology Corp. All rights reserved. ******************************************************************************/ #ifndef __NU_CCAP_H__ #define __NU_CCAP_H__ #ifdef __cplusplus extern "C" { #endif /** @addtogroup Standard_Driver Standard Driver @{ */ /** @addtogroup CCAP_Driver CCAP Driver @{ */ /** @addtogroup CCAP_EXPORTED_CONSTANTS CCAP Exported Constants @{ */ /*---------------------------------------------------------------------------------------------------------*/ /* CTL constant definitions */ /*---------------------------------------------------------------------------------------------------------*/ #define CCAP_CTL_CCAPEN (1ul<CTL & CCAP_CTL_CCAPEN_Msk)?0:1) /** * @brief Clear CCAP flag * * @param[in] u32IntMask interrupt flags settings. It could be * - \ref CCAP_INT_VINTF_Msk * - \ref CCAP_INT_MEINTF_Msk * - \ref CCAP_INT_ADDRMINTF_Msk * - \ref CCAP_INT_MDINTF_Msk * * @return TRUE(Enable) or FALSE(Disable) * * @details Clear Image Capture Interface interrupt flag * \hideinitializer */ #define CCAP_CLR_INT_FLAG(u32IntMask) (CCAP->INT |=u32IntMask) /** * @brief Get CCAP Interrupt status * * @return TRUE(Enable) or FALSE(Disable) * * @details Get Image Capture Interface interrupt status. * \hideinitializer */ #define CCAP_GET_INT_STS() (CCAP->INT) void CCAP_Open(uint32_t u32InFormat, uint32_t u32OutFormet); void CCAP_SetCroppingWindow(uint32_t u32VStart,uint32_t u32HStart, uint32_t u32Height, uint32_t u32Width); void CCAP_SetPacketBuf(uint32_t u32Address ); void CCAP_Close(void); void CCAP_EnableInt(uint32_t u32IntMask); void CCAP_DisableInt(uint32_t u32IntMask); void CCAP_Start(void); void CCAP_Stop(uint32_t u32FrameComplete); void CCAP_SetPacketScaling(uint32_t u32VNumerator, uint32_t u32VDenominator, uint32_t u32HNumerator, uint32_t u32HDenominator); void CCAP_SetPacketStride(uint32_t u32Stride ); void CCAP_EnableMono(uint32_t u32Interface); void CCAP_DisableMono(void); void CCAP_EnableLumaYOne(uint32_t u32th); void CCAP_DisableLumaYOne(void); /*@}*/ /* end of group CCAP_EXPORTED_FUNCTIONS */ /*@}*/ /* end of group CCAP_Driver */ /*@}*/ /* end of group Standard_Driver */ #ifdef __cplusplus } #endif #endif //__NU_CCAP_H__ /*** (C) COPYRIGHT 2016 Nuvoton Technology Corp. ***/