1 /* 2 * Copyright (c) 2019-2020, NXP 3 * All rights reserved. 4 * 5 * 6 * SPDX-License-Identifier: BSD-3-Clause 7 */ 8 9 #ifndef _FSL_RM67162_H_ 10 #define _FSL_RM67162_H_ 11 12 #include "fsl_display.h" 13 #include "fsl_mipi_dsi_cmd.h" 14 15 /* 16 * Change Log: 17 * 18 * 1.0.2: 19 * - Bug Fixes 20 * - Fix MISRA 2012 issues. 21 * 22 * 1.0.1: 23 * - Improvements 24 * - Support resolution 400x392. 25 * 26 * 1.0.0: 27 * - Initial version. 28 */ 29 30 /******************************************************************************* 31 * Definitions 32 ******************************************************************************/ 33 34 /*! 35 * @brief RM67162 resource. 36 */ 37 typedef struct _rm67162_resource 38 { 39 mipi_dsi_device_t *dsiDevice; /*!< MIPI DSI device. */ 40 void (*pullResetPin)(bool pullUp); /*!< Function to pull reset pin high or low. */ 41 void (*pullPowerPin)(bool pullUp); /*!< Function to pull power pin high or low. */ 42 } rm67162_resource_t; 43 44 extern const display_operations_t rm67162_ops; 45 46 /******************************************************************************* 47 * API 48 ******************************************************************************/ 49 50 #if defined(__cplusplus) 51 extern "C" { 52 #endif 53 54 status_t RM67162_Init(display_handle_t *handle, const display_config_t *config); 55 56 status_t RM67162_Deinit(display_handle_t *handle); 57 58 status_t RM67162_Start(display_handle_t *handle); 59 60 status_t RM67162_Stop(display_handle_t *handle); 61 62 #if defined(__cplusplus) 63 } 64 #endif 65 66 #endif /* _FSL_RM67162_H_ */ 67