Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ssd16xx.h File Reference

Go to the source code of this file.

Enumerations

enum  ssd16xx_ram { SSD16XX_RAM_BLACK = 0 , SSD16XX_RAM_RED }
 SSD16xx RAM type for direct RAM access. More...
 

Functions

int ssd16xx_read_ram (const struct device *dev, enum ssd16xx_ram ram_type, const uint16_t x, const uint16_t y, const struct display_buffer_descriptor *desc, void *buf)
 Read data directly from the display controller's internal RAM.
 

Enumeration Type Documentation

◆ ssd16xx_ram

SSD16xx RAM type for direct RAM access.

Enumerator
SSD16XX_RAM_BLACK 

The black RAM buffer.

This is typically the buffer used to compose the contents that will be displayed after the next refresh.

SSD16XX_RAM_RED 

Function Documentation

◆ ssd16xx_read_ram()

int ssd16xx_read_ram ( const struct device * dev,
enum ssd16xx_ram ram_type,
const uint16_t x,
const uint16_t y,
const struct display_buffer_descriptor * desc,
void * buf )

Read data directly from the display controller's internal RAM.

Parameters
devPointer to device structure
ram_typeType of RAM to read from
xCoordinate relative to the upper left corner
yCoordinate relative to the upper left corner
descStructure describing the buffer layout
bufOutput buffer
Return values
0on success, negative errno on failure.