fsl_hx8394.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2021 NXP
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #ifndef _FSL_HX8394_H_
  8. #define _FSL_HX8394_H_
  9. #include "fsl_display.h"
  10. #include "fsl_mipi_dsi_cmd.h"
  11. /*
  12. * Change log:
  13. *
  14. * 1.0.0
  15. * - Initial version
  16. */
  17. /*******************************************************************************
  18. * Definitions
  19. ******************************************************************************/
  20. /*!
  21. * @brief HX8394 resource.
  22. */
  23. typedef struct _hx8394_resource
  24. {
  25. mipi_dsi_device_t *dsiDevice; /*!< MIPI DSI device. */
  26. void (*pullResetPin)(bool pullUp); /*!< Function to pull reset pin high or low. */
  27. void (*pullPowerPin)(bool pullUp); /*!< Function to pull power pin high or low. */
  28. } hx8394_resource_t;
  29. extern const display_operations_t hx8394_ops;
  30. /*******************************************************************************
  31. * API
  32. ******************************************************************************/
  33. #if defined(__cplusplus)
  34. extern "C" {
  35. #endif
  36. status_t HX8394_Init(display_handle_t *handle, const display_config_t *config);
  37. status_t HX8394_Deinit(display_handle_t *handle);
  38. status_t HX8394_Start(display_handle_t *handle);
  39. status_t HX8394_Stop(display_handle_t *handle);
  40. #if defined(__cplusplus)
  41. }
  42. #endif
  43. #endif /* _FSL_HX8394_H_ */