Functions | |
void | _gdm_hw_set_side (gdm_display *dp, unsigned short side) |
void | _gdm_hw_set_y (gdm_display *dp, unsigned short y) |
void | _gdm_hw_set_x (gdm_display *dp, unsigned short x) |
void | _gdm_hw_set_data (gdm_display *dp, unsigned char data) |
void | _gdm_hw_set_line (gdm_display *dp, unsigned short line) |
void | _gdm_hw_set_mode (gdm_display *dp, unsigned short mode) |
When porting the Graphic Display Manager to a new board, you must provide the following API:
|
Send data to the LCD graphics DDRAM. This function is board specific. It must write the data value to the LCD graphics DDRAM. The data is written at the current X, Y position set by _gdm_hw_set_x and _gdm_hw_set_y. The Y register is assumed to be incremented after each data write.
|
|
Setup the start line of the display data. This function is board specific. It must set the start line of the KS0108 driver to the value specified in line.
|
|
Setup the display mode and backlight. This function is board specific. The mode parameter controls some modes provided by the graphics display: GDM_DISPLAY_ON When this flag is set, the graphics LCD display is on. GDM_BACKLIGHT_ON When this flag is set the backlight LED must be switched on.
Definition at line 131 of file gdm.h. References GDM_DISPLAY_ON. |
|
Set the active side of the LCD controller. This function is board specific. The 128x64 display has two drivers. The left driver is selected when @side is 0. The right driver is selected when @side is 1.
|
|
Set the LCD graphics hardware X register. This function is board specific. It must set the X register of the KS0108 driver to the value x. The value passed is guarranteed to be in the range 0 .. GDM_WIDTH / 2 * 8 that is 0 .. 7.
|
|
Set the LCD graphics hardware Y register. This function is board specific. It must set the Y register of the KS0108 driver to the value y. The Y register is assumed to be incremented after each data write. The value passed is guarranteed to be in the range 0 .. GDM_HEIGHT that is 0 .. 63.
|