fsl_rm68191.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright 2019-2020 NXP
  3. * All rights reserved.
  4. *
  5. *
  6. * SPDX-License-Identifier: BSD-3-Clause
  7. */
  8. #ifndef _FSL_RM68191_H_
  9. #define _FSL_RM68191_H_
  10. #include "fsl_display.h"
  11. #include "fsl_mipi_dsi_cmd.h"
  12. /*
  13. * Change log:
  14. *
  15. * 1.1.0
  16. * - Fix MISRA-C 2012 issues.
  17. * - Change rm68191_resource_t structure.
  18. *
  19. * 1.0.0
  20. * - Initial version
  21. */
  22. /*******************************************************************************
  23. * Definitions
  24. ******************************************************************************/
  25. /*!
  26. * @brief RM68191 resource.
  27. */
  28. typedef struct _rm68191_resource
  29. {
  30. mipi_dsi_device_t *dsiDevice; /*!< MIPI DSI device. */
  31. void (*pullResetPin)(bool pullUp); /*!< Function to pull reset pin high or low. */
  32. void (*pullPowerPin)(bool pullUp); /*!< Function to pull power pin high or low. */
  33. } rm68191_resource_t;
  34. extern const display_operations_t rm68191_ops;
  35. /*******************************************************************************
  36. * API
  37. ******************************************************************************/
  38. #if defined(__cplusplus)
  39. extern "C" {
  40. #endif
  41. status_t RM68191_Init(display_handle_t *handle, const display_config_t *config);
  42. status_t RM68191_Deinit(display_handle_t *handle);
  43. status_t RM68191_Start(display_handle_t *handle);
  44. status_t RM68191_Stop(display_handle_t *handle);
  45. #if defined(__cplusplus)
  46. }
  47. #endif
  48. #endif /* _FSL_RM68191_H_ */