fsl_rm68200.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 2019-2021 NXP
  3. * All rights reserved.
  4. *
  5. *
  6. * SPDX-License-Identifier: BSD-3-Clause
  7. */
  8. #ifndef _FSL_RM68200_H_
  9. #define _FSL_RM68200_H_
  10. #include "fsl_display.h"
  11. #include "fsl_mipi_dsi_cmd.h"
  12. /*
  13. * Change log:
  14. *
  15. * 1.1.1
  16. * - Support 1 lane to 4 lanes, previously only support 2 lanes.
  17. *
  18. * 1.1.0
  19. * - Fix MISRA-C 2012 issues.
  20. * - Change rm68200_resource_t structure.
  21. *
  22. * 1.0.0
  23. * - Initial version
  24. */
  25. /*******************************************************************************
  26. * Definitions
  27. ******************************************************************************/
  28. /*!
  29. * @brief RM68200 resource.
  30. */
  31. typedef struct _rm68200_resource
  32. {
  33. mipi_dsi_device_t *dsiDevice; /*!< MIPI DSI device. */
  34. void (*pullResetPin)(bool pullUp); /*!< Function to pull reset pin high or low. */
  35. void (*pullPowerPin)(bool pullUp); /*!< Function to pull power pin high or low. */
  36. } rm68200_resource_t;
  37. extern const display_operations_t rm68200_ops;
  38. /*******************************************************************************
  39. * API
  40. ******************************************************************************/
  41. #if defined(__cplusplus)
  42. extern "C" {
  43. #endif
  44. extern uint8_t RM68200_DDB_START[5];
  45. status_t RM68200_Init(display_handle_t *handle, const display_config_t *config);
  46. status_t RM68200_Deinit(display_handle_t *handle);
  47. status_t RM68200_Start(display_handle_t *handle);
  48. status_t RM68200_Stop(display_handle_t *handle);
  49. #if defined(__cplusplus)
  50. }
  51. #endif
  52. #endif /* _FSL_RM68200_H_ */