Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
cfb.h File Reference

Public Monochrome Character Framebuffer API. More...

#include <device.h>
#include <drivers/display.h>

Go to the source code of this file.

Data Structures

struct  cfb_font
 

Macros

#define FONT_ENTRY_DEFINE(_name, _width, _height, _caps, _data, _fc, _lc)
 Macro for creating a font entry. More...
 

Enumerations

enum  cfb_display_param {
  CFB_DISPLAY_HEIGH = 0 , CFB_DISPLAY_WIDTH , CFB_DISPLAY_PPT , CFB_DISPLAY_ROWS ,
  CFB_DISPLAY_COLS
}
 
enum  cfb_font_caps { CFB_FONT_MONO_VPACKED = BIT(0) , CFB_FONT_MONO_HPACKED = BIT(1) , CFB_FONT_MSB_FIRST = BIT(2) }
 

Functions

int cfb_print (const struct device *dev, char *str, uint16_t x, uint16_t y)
 Print a string into the framebuffer. More...
 
int cfb_framebuffer_clear (const struct device *dev, bool clear_display)
 Clear framebuffer. More...
 
int cfb_framebuffer_invert (const struct device *dev)
 Invert Pixels. More...
 
int cfb_framebuffer_finalize (const struct device *dev)
 Finalize framebuffer and write it to display RAM, invert or reorder pixels if necessary. More...
 
int cfb_get_display_parameter (const struct device *dev, enum cfb_display_param)
 Get display parameter. More...
 
int cfb_framebuffer_set_font (const struct device *dev, uint8_t idx)
 Set font. More...
 
int cfb_get_font_size (const struct device *dev, uint8_t idx, uint8_t *width, uint8_t *height)
 Get font size. More...
 
int cfb_get_numof_fonts (const struct device *dev)
 Get number of fonts. More...
 
int cfb_framebuffer_init (const struct device *dev)
 Initialize Character Framebuffer. More...
 

Detailed Description

Public Monochrome Character Framebuffer API.