PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations
Sharp LS013B7DH01

Display implementation for the Sharp LS013B7DH01 memory LCD. More...

Data Structures

struct  DisplayContext
 Display update context. More...
 

Macros

#define DISP_LINE_BYTES   (DISP_COLS / 8)
 Bytes per display line, at one bit per pixel.
 
#define DISP_LINE_WORDS   (((DISP_COLS - 1) / 32) + 1)
 32-bit words per display line, rounded up.
 
#define DISP_DMA_BUFFER_SIZE_BYTES   (DISP_LINE_BYTES + 3)
 Bytes needed to send one line.
 
#define DISP_DMA_BUFFER_SIZE_WORDS   (DISP_LINE_WORDS + 1)
 32-bit words needed to send one line.
 

Enumerations

enum  DisplayState { DISPLAY_STATE_IDLE , DISPLAY_STATE_WRITING }
 Display update state. More...
 

Detailed Description

Display implementation for the Sharp LS013B7DH01 memory LCD.


Data Structure Documentation

◆ DisplayContext

struct DisplayContext

Display update context.

Data Fields
UpdateCompleteCallback complete Completion callback of the current update.
NextRowCallback get_next_row Row source of the current update.
DisplayState state Update state.

Macro Definition Documentation

◆ DISP_DMA_BUFFER_SIZE_BYTES

#define DISP_DMA_BUFFER_SIZE_BYTES   (DISP_LINE_BYTES + 3)

Bytes needed to send one line.

Line data, plus the line address, a null trailer and an optional write command.

◆ DISP_DMA_BUFFER_SIZE_WORDS

#define DISP_DMA_BUFFER_SIZE_WORDS   (DISP_LINE_WORDS + 1)

32-bit words needed to send one line.

◆ DISP_LINE_BYTES

#define DISP_LINE_BYTES   (DISP_COLS / 8)

Bytes per display line, at one bit per pixel.

◆ DISP_LINE_WORDS

#define DISP_LINE_WORDS   (((DISP_COLS - 1) / 32) + 1)

32-bit words per display line, rounded up.

Enumeration Type Documentation

◆ DisplayState

Display update state.

Enumerator
DISPLAY_STATE_IDLE 

No update in progress.

DISPLAY_STATE_WRITING 

Update in progress.