dpredriver.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /**
  2. ******************************************************************************
  3. * @file dpredriver.h
  4. * @author MCD Application Team
  5. * @brief This header file contains the functions prototypes for the
  6. * DisplayPort Linear Redriver.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __DPREDRIVER_H
  22. #define __DPREDRIVER_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include <stdint.h>
  28. /** @addtogroup BSP
  29. * @{
  30. */
  31. /** @addtogroup Components
  32. * @{
  33. */
  34. /** @addtogroup DPREDRIVER
  35. * @{
  36. */
  37. /** @defgroup DPREDRIVER_Exported_Types
  38. * @{
  39. */
  40. /** @defgroup DPREDRIVER_Channel_Identifier Channel Identifier
  41. * @{
  42. */
  43. typedef enum {
  44. CHANNEL_DP0 = 0,
  45. CHANNEL_DP1,
  46. CHANNEL_DP2,
  47. CHANNEL_DP3,
  48. CHANNEL_RX1,
  49. CHANNEL_RX2,
  50. CHANNEL_SSTX
  51. } DPREDRIVER_ChannelId_t;
  52. /**
  53. * @}
  54. */
  55. /** @defgroup DPREDRIVER_Driver_structure DisplayPort Linear Redriver Driver structure
  56. * @{
  57. */
  58. typedef struct
  59. {
  60. uint32_t (*Init)(uint16_t);
  61. void (*DeInit)(uint16_t);
  62. uint32_t (*PowerOn)(uint16_t);
  63. uint32_t (*PowerOff)(uint16_t);
  64. uint32_t (*SetEQGain)(uint16_t, DPREDRIVER_ChannelId_t, uint8_t);
  65. uint32_t (*EnableChannel)(uint16_t, DPREDRIVER_ChannelId_t);
  66. uint32_t (*DisableChannel)(uint16_t, DPREDRIVER_ChannelId_t);
  67. }DPREDRIVER_Drv_t;
  68. /**
  69. * @}
  70. */
  71. /**
  72. * @}
  73. */
  74. /**
  75. * @}
  76. */
  77. /**
  78. * @}
  79. */
  80. /**
  81. * @}
  82. */
  83. #ifdef __cplusplus
  84. }
  85. #endif
  86. #endif /* __DPREDRIVER_H */
  87. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/