1 /*
2  * Copyright 2019-2020 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef _FSL_SOC_MIPI_CSI2RX_H_
9 #define _FSL_SOC_MIPI_CSI2RX_H_
10 
11 #include "fsl_common.h"
12 
13 /*! @addtogroup soc_mipi_csi2rx */
14 /*! @{ */
15 
16 /*! @file */
17 
18 /*******************************************************************************
19  * Definitions
20  ******************************************************************************/
21 /*! @brief Driver version. */
22 #define FSL_SOC_MIPI_CSI2RX_DRIVER_VERSION (MAKE_VERSION(2, 0, 2))
23 
24 /*******************************************************************************
25  * API
26  ******************************************************************************/
27 
28 #if defined(__cplusplus)
29 extern "C" {
30 #endif /* __cplusplus */
31 
32 /*!
33  * @brief Assert or deassert CSI2RX reset in system level.
34  *
35  * @param base The CSI2RX peripheral base address.
36  * @param reset Pass in true to set to reset state, false to release reset.
37  * @note Don't call this function directly.
38  */
39 void MIPI_CSI2RX_SoftwareReset(MIPI_CSI2RX_Type *base, bool reset);
40 
41 /*!
42  * @brief Initialize the CSI2RX interface.
43  *
44  * @param base The CSI2RX peripheral base address.
45  * @param tHsSettle_EscClk t-HS_SETTLE in esc clock period.
46  * @note Don't call this function directly.
47  */
48 void MIPI_CSI2RX_InitInterface(MIPI_CSI2RX_Type *base, uint8_t tHsSettle_EscClk);
49 
50 /*!
51  * @brief Deinitialize the CSI2RX interface.
52  *
53  * @param base The CSI2RX peripheral base address.
54  * @note Don't call this function directly.
55  */
56 void MIPI_CSI2RX_DeinitInterface(MIPI_CSI2RX_Type *base);
57 
58 /* @} */
59 
60 #if defined(__cplusplus)
61 }
62 #endif /* __cplusplus */
63 
64 /*! @} */
65 
66 #endif /* _FSL_SOC_MIPI_CSI2RX_H_ */
67