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