no-OS
|
Header file of nhd_c12832a1z. More...
Go to the source code of this file.
Classes | |
struct | nhd_c12832a1z_dev |
nhd_c12832a1z device structure. More... | |
struct | nhd_c12832a1z_init_param |
nhd_c12832a1z Initialization parameters. More... | |
Macros | |
#define | NHD_C12832A1Z_RST_ON 0U |
#define | NHD_C12832A1Z_RST_OFF 1U |
#define | NHD_C12832A1Z_DC_DATA 1U |
#define | NHD_C12832A1Z_DC_CMD 0U |
#define | NHD_C12832A1Z_DISP_ON 0xAFU |
#define | NHD_C12832A1Z_DISP_OFF 0xAEU |
#define | NDH_C12832A1Z_ADC_NORMAL 0xA0U |
#define | NDH_C12832A1Z_ADC_REVERSE 0xA1U |
#define | NDH_C12832A1Z_COM_NORMAL 0xC0U |
#define | NDH_C12832A1Z_COM_REVERSE 0xC8U |
#define | NDH_C12832A1Z_LCD_BIAS 0xA2U |
#define | NDH_C12832A1Z_PWR_CTRL 0x2FU |
#define | NDH_C12832A1Z_RES_RATIO 0x21U |
#define | NDH_C12832A1Z_ELECTRIC_VOL 0x81U |
#define | NDH_C12832A1Z_ELECTRIC_VAL 0x20U |
#define | NHD_C12832A1Z_REVERSE 0x1 |
#define | NHD_C12832A1Z_BLINK 0x2 |
#define | NHD_C12832A1Z_BLINK_INTERVAL 500 |
#define | FB_FLUSH_DELAY 30 |
#define | NR_COLUMNS 128 |
#define | NR_PAGES 4 |
#define | NR_CHAR 64 |
#define | PAGE_START_ADDR 0xB0 |
#define | DISPLAY_START_OFFSET 0x40 |
Functions | |
int | nhd_c12832a1z_write_cmd (struct nhd_c12832a1z_dev *dev, uint8_t cmd) |
nhd_c12832a1z write command. More... | |
int | nhd_c12832a1z_write_data (struct nhd_c12832a1z_dev *dev, uint8_t data) |
nhd_c12832a1z write data. More... | |
int | nhd_c12832a1z_print_string (struct nhd_c12832a1z_dev *dev, char *msg) |
nhd_c12832a1z print string on LCD. More... | |
int | nhd_c12832a1z_clear_lcd (struct nhd_c12832a1z_dev *dev) |
nhd_c12832a1z clear LCD. More... | |
int | nhd_c12832a1z_init (struct nhd_c12832a1z_dev **device, struct nhd_c12832a1z_init_param init_param) |
Initializes nhd_c12832a1z for display screening. More... | |
int | nhd_c12832a1z_remove (struct nhd_c12832a1z_dev *dev) |
nhd_c12832a1z remove allocated resources More... | |
Header file of nhd_c12832a1z.
Copyright 2023(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define DISPLAY_START_OFFSET 0x40 |
#define FB_FLUSH_DELAY 30 |
#define NDH_C12832A1Z_ADC_NORMAL 0xA0U |
#define NDH_C12832A1Z_ADC_REVERSE 0xA1U |
#define NDH_C12832A1Z_COM_NORMAL 0xC0U |
#define NDH_C12832A1Z_COM_REVERSE 0xC8U |
#define NDH_C12832A1Z_ELECTRIC_VAL 0x20U |
#define NDH_C12832A1Z_ELECTRIC_VOL 0x81U |
#define NDH_C12832A1Z_LCD_BIAS 0xA2U |
#define NDH_C12832A1Z_PWR_CTRL 0x2FU |
#define NDH_C12832A1Z_RES_RATIO 0x21U |
#define NHD_C12832A1Z_BLINK 0x2 |
#define NHD_C12832A1Z_BLINK_INTERVAL 500 |
#define NHD_C12832A1Z_DC_CMD 0U |
#define NHD_C12832A1Z_DC_DATA 1U |
#define NHD_C12832A1Z_DISP_OFF 0xAEU |
#define NHD_C12832A1Z_DISP_ON 0xAFU |
#define NHD_C12832A1Z_REVERSE 0x1 |
#define NHD_C12832A1Z_RST_OFF 1U |
#define NHD_C12832A1Z_RST_ON 0U |
#define NR_CHAR 64 |
#define NR_COLUMNS 128 |
#define NR_PAGES 4 |
#define PAGE_START_ADDR 0xB0 |
int nhd_c12832a1z_clear_lcd | ( | struct nhd_c12832a1z_dev * | dev | ) |
nhd_c12832a1z clear LCD.
dev | - The device structure. |
int nhd_c12832a1z_init | ( | struct nhd_c12832a1z_dev ** | device, |
struct nhd_c12832a1z_init_param | init_param | ||
) |
Initializes nhd_c12832a1z for display screening.
Initialize the nhd_c12832a1z peripheral for display operation.
device | - The device structure. |
init_param | - Initialization parameters. |
int nhd_c12832a1z_print_string | ( | struct nhd_c12832a1z_dev * | dev, |
char * | msg | ||
) |
nhd_c12832a1z print string on LCD.
dev | - The device structure. |
msg | - Message to be printed. |
int nhd_c12832a1z_remove | ( | struct nhd_c12832a1z_dev * | dev | ) |
nhd_c12832a1z remove allocated resources
Removes resources allocated by device.
dev | - The device structure |
int nhd_c12832a1z_write_cmd | ( | struct nhd_c12832a1z_dev * | dev, |
uint8_t | cmd | ||
) |
nhd_c12832a1z write command.
dev | - The device structure. |
cmd | - Command to be written. |
int nhd_c12832a1z_write_data | ( | struct nhd_c12832a1z_dev * | dev, |
uint8_t | data | ||
) |
nhd_c12832a1z write data.
dev | - The device structure. |
data | - Data to be written. |