1 /*
2  * Copyright 2018, 2020 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef _FSL_IT6263_H_
9 #define _FSL_IT6263_H_
10 
11 #include "fsl_common.h"
12 #include "fsl_video_i2c.h"
13 
14 /*
15  * Change log:
16  *
17  *   1.0.1
18  *     - Fix MISRA-C 2012 issues.
19  *
20  *   1.0.0
21  *     - Initial version
22  */
23 
24 /*******************************************************************************
25  * Definitions
26  ******************************************************************************/
27 
28 /*!
29  * @brief IT6263 resource.
30  *
31  * The I2C instance should be initialized before calling @ref IT6263_Init.
32  */
33 typedef struct _it6263_resource
34 {
35     video_i2c_send_func_t i2cSendFunc;       /* I2C send function. */
36     video_i2c_receive_func_t i2cReceiveFunc; /* I2C receive function. */
37     void (*pullResetPin)(bool pullUp);       /* Function to pull reset pin high or low. */
38     uint8_t i2cAddr;                         /* I2C address, 0x98 or 0x9A. */
39 } it6263_resource_t;
40 
41 extern const display_operations_t it6263_ops;
42 
43 /*******************************************************************************
44  * API
45  ******************************************************************************/
46 
47 #if defined(__cplusplus)
48 extern "C" {
49 #endif
50 
51 status_t IT6263_Init(display_handle_t *handle, const display_config_t *config);
52 
53 status_t IT6263_Deinit(display_handle_t *handle);
54 
55 status_t IT6263_Start(display_handle_t *handle);
56 
57 status_t IT6263_Stop(display_handle_t *handle);
58 
59 #if defined(__cplusplus)
60 }
61 #endif
62 
63 #endif /* _FSL_IT6263_H_ */
64