Loading...
Searching...
No Matches
aip31068_regs.h File Reference

Register definitions for the AIP31068 I2C LCD controller. More...

Detailed Description

Register definitions for the AIP31068 I2C LCD controller.

Author
Hendrik van Essen hendr.nosp@m.ik.v.nosp@m.e@fu-.nosp@m.berl.nosp@m.in.de

Definition in file aip31068_regs.h.

#include "bitarithm.h"
+ Include dependency graph for aip31068_regs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define AIP31068_CMD_CLEAR_DISPLAY   0x01
 Clears entire display and sets cursor to position (0, 0).
 
#define AIP31068_CMD_RETURN_HOME   0x02
 Sets cursor to position (0, 0) and resets display to original position before any shift operations.
 
#define AIP31068_CMD_ENTRY_MODE_SET   0x04
 Sets cursor move direction and specifies display shift.
 
#define AIP31068_CMD_DISPLAY_CONTROL   0x08
 Sets entire display on/off, cursor on/off, and blinking of cursor position character on/off.
 
#define AIP31068_CMD_CURSOR_DISPLAY_SHIFT   0x10
 Moves cursor and shifts display.
 
#define AIP31068_CMD_FUNCTION_SET   0x20
 Sets interface data length, number of display lines and character font size.
 
#define AIP31068_CMD_SET_CGRAM_ADDR   0x40
 Sets CGRAM address.
 
#define AIP31068_CMD_SET_DDRAM_ADDR   0x80
 Sets DDRAM address.
 
#define AIP31068_BIT_ENTRY_MODE_INCREMENT   BIT1
 0 = Decrement cursor after insertion 1 = Increment cursor after insertion
 
#define AIP31068_BIT_ENTRY_MODE_AUTOINCREMENT   BIT0
 0 = No automated display scroll 1 = Automated display scroll
 
#define AIP31068_BIT_DISPLAY_CONTROL_DISPLAY   BIT2
 0 = Display off 1 = Display on
 
#define AIP31068_BIT_DISPLAY_CONTROL_CURSOR   BIT1
 0 = Cursor off 1 = Cursor on
 
#define AIP31068_BIT_DISPLAY_CONTROL_CURSOR_BLINKING   BIT0
 0 = Cursor blinking off 1 = Cursor blinking on
 
#define AIP31068_BIT_CURSOR_DISPLAY_SHIFT_SELECTION   BIT3
 0 = Shift the cursor position 1 = Scroll the display content
 
#define AIP31068_BIT_CURSOR_DISPLAY_SHIFT_DIRECTION   BIT2
 0 = Shift to the left 1 = Shift to the right
 
#define AIP31068_BIT_FUNCTION_SET_BITMODE   BIT4
 0 = 4 bit interface data length 1 = 8 bit interface data length
 
#define AIP31068_BIT_FUNCTION_SET_LINECOUNT   BIT3
 0 = Single line 1 = Two lines
 
#define AIP31068_BIT_FUNCTION_SET_FONTSIZE   BIT2
 0 = 5x8 dots per character 1 = 5x10 dots per character
 
#define AIP31068_BIT_CONTROL_BYTE_CO   BIT7
 0 = Last control byte 1 = Another control byte follows data byte
 
#define AIP31068_BIT_CONTROL_BYTE_RS   BIT6
 0 = data byte interpreted as command 1 = data byte interpreted as data
 

Macro Definition Documentation

◆ AIP31068_BIT_CONTROL_BYTE_CO

#define AIP31068_BIT_CONTROL_BYTE_CO   BIT7

0 = Last control byte 1 = Another control byte follows data byte

Definition at line 148 of file aip31068_regs.h.

◆ AIP31068_BIT_CONTROL_BYTE_RS

#define AIP31068_BIT_CONTROL_BYTE_RS   BIT6

0 = data byte interpreted as command 1 = data byte interpreted as data

Definition at line 154 of file aip31068_regs.h.

◆ AIP31068_BIT_CURSOR_DISPLAY_SHIFT_DIRECTION

#define AIP31068_BIT_CURSOR_DISPLAY_SHIFT_DIRECTION   BIT2

0 = Shift to the left 1 = Shift to the right

Definition at line 120 of file aip31068_regs.h.

◆ AIP31068_BIT_CURSOR_DISPLAY_SHIFT_SELECTION

#define AIP31068_BIT_CURSOR_DISPLAY_SHIFT_SELECTION   BIT3

0 = Shift the cursor position 1 = Scroll the display content

Definition at line 114 of file aip31068_regs.h.

◆ AIP31068_BIT_DISPLAY_CONTROL_CURSOR

#define AIP31068_BIT_DISPLAY_CONTROL_CURSOR   BIT1

0 = Cursor off 1 = Cursor on

Definition at line 100 of file aip31068_regs.h.

◆ AIP31068_BIT_DISPLAY_CONTROL_CURSOR_BLINKING

#define AIP31068_BIT_DISPLAY_CONTROL_CURSOR_BLINKING   BIT0

0 = Cursor blinking off 1 = Cursor blinking on

Definition at line 106 of file aip31068_regs.h.

◆ AIP31068_BIT_DISPLAY_CONTROL_DISPLAY

#define AIP31068_BIT_DISPLAY_CONTROL_DISPLAY   BIT2

0 = Display off 1 = Display on

Definition at line 94 of file aip31068_regs.h.

◆ AIP31068_BIT_ENTRY_MODE_AUTOINCREMENT

#define AIP31068_BIT_ENTRY_MODE_AUTOINCREMENT   BIT0

0 = No automated display scroll 1 = Automated display scroll

Definition at line 86 of file aip31068_regs.h.

◆ AIP31068_BIT_ENTRY_MODE_INCREMENT

#define AIP31068_BIT_ENTRY_MODE_INCREMENT   BIT1

0 = Decrement cursor after insertion 1 = Increment cursor after insertion

Definition at line 80 of file aip31068_regs.h.

◆ AIP31068_BIT_FUNCTION_SET_BITMODE

#define AIP31068_BIT_FUNCTION_SET_BITMODE   BIT4

0 = 4 bit interface data length 1 = 8 bit interface data length

Definition at line 128 of file aip31068_regs.h.

◆ AIP31068_BIT_FUNCTION_SET_FONTSIZE

#define AIP31068_BIT_FUNCTION_SET_FONTSIZE   BIT2

0 = 5x8 dots per character 1 = 5x10 dots per character

Definition at line 140 of file aip31068_regs.h.

◆ AIP31068_BIT_FUNCTION_SET_LINECOUNT

#define AIP31068_BIT_FUNCTION_SET_LINECOUNT   BIT3

0 = Single line 1 = Two lines

Definition at line 134 of file aip31068_regs.h.

◆ AIP31068_CMD_CLEAR_DISPLAY

#define AIP31068_CMD_CLEAR_DISPLAY   0x01

Clears entire display and sets cursor to position (0, 0).

Note
: Also changes AIP31068_BIT_ENTRY_MODE_INCREMENT to 1

Definition at line 34 of file aip31068_regs.h.

◆ AIP31068_CMD_CURSOR_DISPLAY_SHIFT

#define AIP31068_CMD_CURSOR_DISPLAY_SHIFT   0x10

Moves cursor and shifts display.

Definition at line 56 of file aip31068_regs.h.

◆ AIP31068_CMD_DISPLAY_CONTROL

#define AIP31068_CMD_DISPLAY_CONTROL   0x08

Sets entire display on/off, cursor on/off, and blinking of cursor position character on/off.

Definition at line 51 of file aip31068_regs.h.

◆ AIP31068_CMD_ENTRY_MODE_SET

#define AIP31068_CMD_ENTRY_MODE_SET   0x04

Sets cursor move direction and specifies display shift.

Definition at line 45 of file aip31068_regs.h.

◆ AIP31068_CMD_FUNCTION_SET

#define AIP31068_CMD_FUNCTION_SET   0x20

Sets interface data length, number of display lines and character font size.

Definition at line 62 of file aip31068_regs.h.

◆ AIP31068_CMD_RETURN_HOME

#define AIP31068_CMD_RETURN_HOME   0x02

Sets cursor to position (0, 0) and resets display to original position before any shift operations.

Definition at line 40 of file aip31068_regs.h.

◆ AIP31068_CMD_SET_CGRAM_ADDR

#define AIP31068_CMD_SET_CGRAM_ADDR   0x40

Sets CGRAM address.

Definition at line 67 of file aip31068_regs.h.

◆ AIP31068_CMD_SET_DDRAM_ADDR

#define AIP31068_CMD_SET_DDRAM_ADDR   0x80

Sets DDRAM address.

Definition at line 72 of file aip31068_regs.h.