Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
AC057TC1 display controller

AC057TC1 7-color e-ink display controller device-specific API extension. More...

Macros

#define PIXEL_FORMAT_L_4   (PIXEL_FORMAT_PRIV_START << 0)
 AC057TC1 private pixel format.
#define AC057TC1_BITS_PER_PIXEL   4
 Bits per pixel for AC057TC1 format.
#define AC057TC1_PACK_PIXELS(pixel1, pixel2)
 Pack two AC057TC1 pixels into a single byte.
#define AC057TC1_BUFFER_SIZE(width, height)
 Calculate buffer size needed for AC057TC1 framebuffer.

AC057TC1 Color Definitions

#define AC057TC1_COLOR_BLACK   0x00
 Black color index.
#define AC057TC1_COLOR_WHITE   0x01
 White color index.
#define AC057TC1_COLOR_GREEN   0x02
 Green color index.
#define AC057TC1_COLOR_BLUE   0x03
 Blue color index.
#define AC057TC1_COLOR_RED   0x04
 Red color index.
#define AC057TC1_COLOR_YELLOW   0x05
 Yellow color index.
#define AC057TC1_COLOR_ORANGE   0x06
 Orange color index.

Detailed Description

AC057TC1 7-color e-ink display controller device-specific API extension.

Since
4.4.0
Version
0.1.0

Macro Definition Documentation

◆ AC057TC1_BITS_PER_PIXEL

#define AC057TC1_BITS_PER_PIXEL   4

#include <zephyr/drivers/display/ac057tc1.h>

Bits per pixel for AC057TC1 format.

◆ AC057TC1_BUFFER_SIZE

#define AC057TC1_BUFFER_SIZE ( width,
height )

#include <zephyr/drivers/display/ac057tc1.h>

Value:
(((width) * (height)) / 2)

Calculate buffer size needed for AC057TC1 framebuffer.

Parameters
widthDisplay width in pixels
heightDisplay height in pixels
Returns
Size in bytes needed for framebuffer

◆ AC057TC1_COLOR_BLACK

#define AC057TC1_COLOR_BLACK   0x00

#include <zephyr/drivers/display/ac057tc1.h>

Black color index.

◆ AC057TC1_COLOR_BLUE

#define AC057TC1_COLOR_BLUE   0x03

#include <zephyr/drivers/display/ac057tc1.h>

Blue color index.

◆ AC057TC1_COLOR_GREEN

#define AC057TC1_COLOR_GREEN   0x02

#include <zephyr/drivers/display/ac057tc1.h>

Green color index.

◆ AC057TC1_COLOR_ORANGE

#define AC057TC1_COLOR_ORANGE   0x06

#include <zephyr/drivers/display/ac057tc1.h>

Orange color index.

◆ AC057TC1_COLOR_RED

#define AC057TC1_COLOR_RED   0x04

#include <zephyr/drivers/display/ac057tc1.h>

Red color index.

◆ AC057TC1_COLOR_WHITE

#define AC057TC1_COLOR_WHITE   0x01

#include <zephyr/drivers/display/ac057tc1.h>

White color index.

◆ AC057TC1_COLOR_YELLOW

#define AC057TC1_COLOR_YELLOW   0x05

#include <zephyr/drivers/display/ac057tc1.h>

Yellow color index.

◆ AC057TC1_PACK_PIXELS

#define AC057TC1_PACK_PIXELS ( pixel1,
pixel2 )

#include <zephyr/drivers/display/ac057tc1.h>

Value:
(((pixel1) << 4) | ((pixel2) & 0x0F))

Pack two AC057TC1 pixels into a single byte.

Parameters
pixel1First pixel (high nibble, left pixel)
pixel2Second pixel (low nibble, right pixel)
Returns
Packed byte containing both pixels

◆ PIXEL_FORMAT_L_4

#define PIXEL_FORMAT_L_4   (PIXEL_FORMAT_PRIV_START << 0)

#include <zephyr/drivers/display/ac057tc1.h>

AC057TC1 private pixel format.

4 bits per pixel, 2 pixels per byte (high nibble first). Supports 7 colors indexed 0-6 (3-bit color palette).