1 /*
2  * Copyright 2019-2021 NXP
3  * All rights reserved.
4  *
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef _FSL_RM68200_H_
10 #define _FSL_RM68200_H_
11 
12 #include "fsl_display.h"
13 #include "fsl_mipi_dsi_cmd.h"
14 
15 /*
16  * Change log:
17  *
18  *   1.1.1
19  *     - Support 1 lane to 4 lanes, previously only support 2 lanes.
20  *
21  *   1.1.0
22  *     - Fix MISRA-C 2012 issues.
23  *     - Change rm68200_resource_t structure.
24  *
25  *   1.0.0
26  *     - Initial version
27  */
28 
29 /*******************************************************************************
30  * Definitions
31  ******************************************************************************/
32 
33 /*!
34  * @brief RM68200 resource.
35  */
36 typedef struct _rm68200_resource
37 {
38     mipi_dsi_device_t *dsiDevice;      /*!< MIPI DSI device. */
39     void (*pullResetPin)(bool pullUp); /*!< Function to pull reset pin high or low. */
40     void (*pullPowerPin)(bool pullUp); /*!< Function to pull power pin high or low. */
41 } rm68200_resource_t;
42 
43 extern const display_operations_t rm68200_ops;
44 
45 /*******************************************************************************
46  * API
47  ******************************************************************************/
48 
49 #if defined(__cplusplus)
50 extern "C" {
51 #endif
52 
53 extern uint8_t RM68200_DDB_START[5];
54 
55 status_t RM68200_Init(display_handle_t *handle, const display_config_t *config);
56 
57 status_t RM68200_Deinit(display_handle_t *handle);
58 
59 status_t RM68200_Start(display_handle_t *handle);
60 
61 status_t RM68200_Stop(display_handle_t *handle);
62 
63 #if defined(__cplusplus)
64 }
65 #endif
66 
67 #endif /* _FSL_RM68200_H_ */
68