aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h b/lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h
new file mode 100644
index 000000000..d84c762bf
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/components/video/display/adv7535/fsl_adv7535.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright 2017-2018, 2020 NXP
3 * All rights reserved.
4 *
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef _FSL_ADV7535_H_
10#define _FSL_ADV7535_H_
11
12#include "fsl_common.h"
13#include "fsl_video_i2c.h"
14
15/*
16 * Change log:
17 *
18 * 1.0.1
19 * - Fix MISRA-C 2012 issues.
20 *
21 * 1.0.0
22 * - Initial version
23 */
24
25/*******************************************************************************
26 * Definitions
27 ******************************************************************************/
28
29/*!
30 * @brief ADV7535 resource.
31 *
32 * The I2C instance should be initialized before calling @ref ADV7535_Init.
33 */
34typedef struct _adv7535_resource
35{
36 video_i2c_send_func_t i2cSendFunc; /* I2C send function. */
37 video_i2c_receive_func_t i2cReceiveFunc; /* I2C receive function. */
38 uint8_t i2cAddr; /* I2C address for the main memory. */
39} adv7535_resource_t;
40
41extern const display_operations_t adv7535_ops;
42
43/*******************************************************************************
44 * API
45 ******************************************************************************/
46
47#if defined(__cplusplus)
48extern "C" {
49#endif
50
51status_t ADV7535_Init(display_handle_t *handle, const display_config_t *config);
52
53status_t ADV7535_Deinit(display_handle_t *handle);
54
55status_t ADV7535_Start(display_handle_t *handle);
56
57status_t ADV7535_Stop(display_handle_t *handle);
58
59#if defined(__cplusplus)
60}
61#endif
62
63#endif /* _FSL_ADV7535_H_ */