ESOS32
ESOSOn32-bitProcessors
Data Structures | Macros | Functions
esos_lcd44780wo.h File Reference
#include <esos.h>
Include dependency graph for esos_lcd44780wo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  esos_lcd44780_char_t
 

Macros

#define ESOS_LCD44780_CMD_CLEAR_DISPLAY   0b00000001
 
#define ESOS_LCD44780_CMD_RETURN_HOME   0b00000010
 
#define ESOS_LCD44780_CMD_ENTRY_MODE_SET   0b00000100
 
#define ESOS_LCD44780_CMD_ENTRY_MODE_SET_INC   0b00000010
 
#define ESOS_LCD44780_CMD_ENTRY_MODE_SET_SHIFT   0b00000001
 
#define ESOS_LCD44780_CMD_DISPLAY_ON_OFF   0b00001000
 
#define ESOS_LCD44780_CMD_DISPLAY_ON_OFF_DISPLAYON   0b00000100
 
#define ESOS_LCD44780_CMD_DISPLAY_ON_OFF_CURSORON   0b00000010
 
#define ESOS_LCD44780_CMD_DISPLAY_ON_OFF_BLINKCURSOR   0b00000001
 
#define ESOS_LCD44780_CMD_CUR_DISP_CURSOR_SHIFT_L   0b00010000
 
#define ESOS_LCD44780_CMD_CUR_DISP_CURSOR_SHIFT_R   0b00010100
 
#define ESOS_LCD44780_CMD_CUR_DISP_DISPLAY_SHIFT_L   0b00011000
 
#define ESOS_LCD44780_CMD_CUR_DISP_DISPLAY_SHIFT_R   0b00011100
 
#define ESOS_LCD44780_CMD_FUNCTION_SET   0b00100000
 
#define ESOS_LCD44780_CMD_FUNCTION_SET_8BIT_MODE   0b00010000
 
#define ESOS_LCD44780_CMD_FUNCTION_SET_4BIT_MODE   0b00000000
 
#define ESOS_LCD44780_CMD_FUNCTION_SET_1LINE_MODE   0b00000000
 
#define ESOS_LCD44780_CMD_FUNCTION_SET_2LINE_MODE   0b00001000
 
#define ESOS_LCD44780_CMD_FUNCTION_SET_LOWFONT_MODE   0b00000000
 
#define ESOS_LCD44780_CMD_FUNCTION_SET_HIFONT_MODE   0b00000100
 
#define ESOS_LCD44780_CMD_SET_CGRAM_ADDR   0b01000000
 
#define ESOS_LCD44780_CMD_SET_DDRAM_ADDR   0b10000000
 
#define ESOS_LCD44780_MEM_WIDTH   40
 
#define ESOS_LCD44780_MEM_HEIGHT   2
 
#define ESOS_LCD44780_NUM_CUSTOM_CHARS   8
 
#define LCD44780_READ   1
 
#define LCD44780_WRITE   0
 
#define LCD44780_DATA   TRUE
 
#define LCD44780_COMMANDS   FALSE
 
#define ESOS_TASK_WAIT_ON_LCD44780_REFRESH()   ESOS_TASK_WAIT_UNTIL(esos_lcd44780_isCurrent())
 
#define ESOS_TASK_WAIT_LCD44780_WRITE_COMMAND(u8_cmd)
 
#define ESOS_TASK_WAIT_LCD44780_WRITE_COMMAND_NOWAIT(u8_cmd)
 
#define ESOS_TASK_WAIT_LCD44780_SET_CG_ADDRESS(u8_addr)   ESOS_TASK_WAIT_LCD44780_WRITE_COMMAND( u8_addr | ESOS_LCD44780_CMD_SET_CGRAM_ADDR )
 
#define ESOS_TASK_WAIT_LCD44780_SET_DATA_ADDRESS(u8_addr)   ESOS_TASK_WAIT_LCD44780_WRITE_COMMAND( u8_addr | ESOS_LCD44780_CMD_SET_DDRAM_ADDR )
 
#define ESOS_TASK_WAIT_LCD44780_WRITE_DATA(u8_data)
 

Functions

void esos_lcd44780_configDisplay (void)
 
void __esos_lcd44780_init (void)
 
void esos_lcd44780_clearScreen (void)
 
void esos_lcd44780_setCursorHome (void)
 
void esos_lcd44780_setCursor (uint8_t u8_row, uint8_t u8_column)
 
void esos_lcd44780_writeChar (uint8_t u8_row, uint8_t u8_column, uint8_t u8_data)
 
uint8_t esos_lcd44780_getChar (uint8_t u8_row, uint8_t u8_column)
 
void esos_lcd44780_writeBuffer (uint8_t u8_row, uint8_t u8_column, uint8_t *pu8_data, uint8_t u8_bufflen)
 
void esos_lcd44780_getBuffer (uint8_t u8_row, uint8_t u8_column, uint8_t *pu8_data, uint8_t u8_bufflen)
 
void esos_lcd44780_writeString (uint8_t u8_row, uint8_t u8_column, char *psz_data)
 
void esos_lcd44780_setCursorDisplay (BOOL u8_state)
 
BOOL esos_lcd44780_getCursorDisplay (void)
 
void esos_lcd44780_setCursorBlink (BOOL u8_state)
 
BOOL esos_lcd44780_getCursorBlink (void)
 
void esos_lcd44780_setDisplayVisible (BOOL u8_state)
 
BOOL esos_lcd44780_getDisplayVisible (void)
 
void esos_lcd44780_setCustomChar (uint8_t u8_charSlot, uint8_t *pu8_charData)
 
void esos_lcd44780_getCustomChar (uint8_t u8_charSlot, uint8_t *pu8_charData)
 
BOOL esos_lcd44780_isCurrent (void)
 
 ESOS_USER_TASK (__esos_lcd44780_service)
 
 ESOS_CHILD_TASK (__esos_lcd44780_hw_write_u8, uint8_t u8_data, BOOL b_isData)
 
void __esos_lcd44780_hw_config (void)
 

Detailed Description

This file contains macros, prototypes, and definitions for the simple (write-only) LCD services for ESOS tasks.

Definition in file esos_lcd44780wo.h.