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.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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.