drv_slcd.h 826 B

12345678910111213141516171819202122232425262728293031323334
  1. /**************************************************************************//**
  2. *
  3. * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2020-11-11 Wayne First version
  10. *
  11. ******************************************************************************/
  12. #ifndef __DRV_SLCD_H__
  13. #define __DRV_SLCD_H__
  14. #include <rtdevice.h>
  15. #include "NuMicro.h"
  16. struct nu_slcd_pixel
  17. {
  18. uint32_t m_u32Com;
  19. uint32_t m_u32Seg;
  20. uint32_t m_u32OnFlag;
  21. };
  22. typedef struct nu_slcd_pixel *nu_slcd_pixel_t;
  23. typedef enum
  24. {
  25. NU_SLCD_CMD_SET_LCD_CFG, /* SLCD configuration */
  26. NU_SLCD_CMD_SET_CP_VOLTAGE, /* Internal charge pump voltage */
  27. NU_SLCD_CMD_CNT
  28. } NU_SLCD_CMD;
  29. #endif /* __DRV_SLCD_H__ */