aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/video/display/it6263/fsl_it6263.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/video/display/it6263/fsl_it6263.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/components/video/display/it6263/fsl_it6263.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/video/display/it6263/fsl_it6263.h b/lib/chibios-contrib/ext/mcux-sdk/components/video/display/it6263/fsl_it6263.h
new file mode 100644
index 000000000..d27503965
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/components/video/display/it6263/fsl_it6263.h
@@ -0,0 +1,63 @@
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 */
33typedef 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
41extern const display_operations_t it6263_ops;
42
43/*******************************************************************************
44 * API
45 ******************************************************************************/
46
47#if defined(__cplusplus)
48extern "C" {
49#endif
50
51status_t IT6263_Init(display_handle_t *handle, const display_config_t *config);
52
53status_t IT6263_Deinit(display_handle_t *handle);
54
55status_t IT6263_Start(display_handle_t *handle);
56
57status_t IT6263_Stop(display_handle_t *handle);
58
59#if defined(__cplusplus)
60}
61#endif
62
63#endif /* _FSL_IT6263_H_ */