hv_drv_Dither.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * @file hv_drv_Dither.h
  3. * @brief Header file of TX-dither module.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. *
  10. * @endverbatim
  11. *
  12. * @author HiView SoC Software Team
  13. * @version 0.0.0
  14. * @date 2022-04-17
  15. */
  16. #ifndef _HV_DRV_DITHER_H_
  17. #define _HV_DRV_DITHER_H_
  18. #include "hv_comm_DataType.h"
  19. typedef struct _DitherInitParams
  20. {
  21. } DitherInitParams;
  22. typedef enum _DitherMode
  23. {
  24. DITHER_MODE_12_10 = 0,
  25. DITHER_MODE_12_8 = 2,
  26. DITHER_MODE_12_6 = 3,
  27. DITHER_MODE_MAX
  28. } DitherMode;
  29. typedef enum _DitherComMode
  30. {
  31. DITHER_COM_MODE_0 = 0,
  32. DITHER_COM_MODE_1,
  33. DITHER_COM_MODE_2,
  34. DITHER_COM_MODE_3,
  35. DITHER_COM_MODE_4,
  36. DITHER_COM_MODE_5,
  37. DITHER_COM_MODE_MAX
  38. } DitherComMode;
  39. /**
  40. * @brief Dither 初始化
  41. * @param[in] pstDitherParam point to TX-dither init params structure
  42. * @return None
  43. */
  44. VOID Hv_Drv_Dither_Init(DitherInitParams *pstDitherParam);
  45. /**
  46. * @brief Dither使能控制
  47. * @param[in] bEnable 控制标志:HV_TRUE-Enable, HV_FALSE-Disable
  48. * @return None
  49. */
  50. VOID Hv_Drv_Dither_Enable(BOOL bEn);
  51. /**
  52. * @brief 设置Dither的抖动模式
  53. * @param[in] enDitherMode 枚举参数表面工作模式
  54. * @return None
  55. */
  56. VOID Hv_Drv_Dither_SetMode(DitherMode enDitherMode);
  57. VOID Hv_Drv_Dither_SetCursorEnable(BOOL bEn);
  58. VOID Hv_Drv_Dither_SetCursorWidth(UCHAR8 ucHwidth, UCHAR8 ucVwidth);
  59. VOID Hv_Drv_Dither_SetCursorPos(USHORT16 usHcnt, USHORT16 usVcnt);
  60. VOID Hv_Drv_Dither_GetCursorBdColor(UCHAR8 *pucR, UCHAR8 *pucG, UCHAR8 *pucB);
  61. #endif