no-OS
Loading...
Searching...
No Matches
global_screen.h File Reference

Global screen header for system-wide display management in eval-powrms project. More...

#include "example.h"
#include "common_data.h"
#include "lvgl.h"
Include dependency graph for global_screen.h:

Macros

#define SSD1306_HOR_REZ   128
 
#define SSD1306_VER_REZ   64
 
#define SSD1306_BUFFER_SIZE   ((SSD1306_HOR_REZ * SSD1306_VER_REZ) / 8 + 8)
 

Enumerations

enum  display_entry_t {
  DISPLAY_ENTRY_MENU ,
  DISPLAY_ENTRY_SHOW ,
  DISPLAY_ENTRY_SETTINGS ,
  DISPLAY_ENTRY_BLANK
}
 

Functions

lv_obj_t * get_global_screen (void)
 Get or create the global screen object.
 
int delete_global_screen (void)
 Delete the global screen resources.
 

Variables

uint8_t display_buffer [SSD1306_HOR_REZ *SSD1306_VER_REZ/8+8]
 
enum display_entry_t display_entry
 Display descriptor 0 -> Startup Frequency Screen 1 -> Main Screen (ADC values) 2 -> Show Screen 3 -> Settings Screen.
 

Detailed Description

Global screen header for system-wide display management in eval-powrms project.

Author
Robert Budai (rober.nosp@m.t.bu.nosp@m.dai@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ SSD1306_BUFFER_SIZE

#define SSD1306_BUFFER_SIZE   ((SSD1306_HOR_REZ * SSD1306_VER_REZ) / 8 + 8)

◆ SSD1306_HOR_REZ

#define SSD1306_HOR_REZ   128

◆ SSD1306_VER_REZ

#define SSD1306_VER_REZ   64

Enumeration Type Documentation

◆ display_entry_t

Enumerator
DISPLAY_ENTRY_MENU 
DISPLAY_ENTRY_SHOW 
DISPLAY_ENTRY_SETTINGS 
DISPLAY_ENTRY_BLANK 

Function Documentation

◆ delete_global_screen()

int delete_global_screen ( void )

Delete the global screen resources.

Returns
int 0 on success, negative error code otherwise

◆ get_global_screen()

lv_obj_t * get_global_screen ( void )

Get or create the global screen object.

Returns
lv_obj_t* Pointer to the global screen object

Variable Documentation

◆ display_buffer

uint8_t display_buffer[SSD1306_HOR_REZ *SSD1306_VER_REZ/8+8]
extern

◆ display_entry

enum display_entry_t display_entry
extern

Display descriptor 0 -> Startup Frequency Screen 1 -> Main Screen (ADC values) 2 -> Show Screen 3 -> Settings Screen.