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 */ 34 typedef 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 41 extern const display_operations_t adv7535_ops; 42 43 /******************************************************************************* 44 * API 45 ******************************************************************************/ 46 47 #if defined(__cplusplus) 48 extern "C" { 49 #endif 50 51 status_t ADV7535_Init(display_handle_t *handle, const display_config_t *config); 52 53 status_t ADV7535_Deinit(display_handle_t *handle); 54 55 status_t ADV7535_Start(display_handle_t *handle); 56 57 status_t ADV7535_Stop(display_handle_t *handle); 58 59 #if defined(__cplusplus) 60 } 61 #endif 62 63 #endif /* _FSL_ADV7535_H_ */ 64