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