summaryrefslogtreecommitdiff
path: root/bsp/nuvoton/libraries/m2354/rtt_port/drv_slcd.h
blob: 46ab04a50f8c8b752503f7007e6db77e55bfad90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**************************************************************************//**
*
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date            Author           Notes
* 2020-11-11      Wayne            First version
*
******************************************************************************/

#ifndef __DRV_SLCD_H__
#define __DRV_SLCD_H__

#include <rtdevice.h>
#include "NuMicro.h"

struct nu_slcd_pixel
{
    uint32_t m_u32Com;
    uint32_t m_u32Seg;
    uint32_t m_u32OnFlag;
};
typedef struct nu_slcd_pixel *nu_slcd_pixel_t;

typedef enum
{
    NU_SLCD_CMD_SET_LCD_CFG,       /* SLCD configuration */
    NU_SLCD_CMD_SET_CP_VOLTAGE,    /* Internal charge pump voltage */
    NU_SLCD_CMD_CNT
} NU_SLCD_CMD;

#endif /* __DRV_SLCD_H__ */