![]() |
PS_Fgen_FW
4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
|
Containing a class and functions for screen handling. More...
#include <Arduino.h>
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "../Encoder/Encoder.h"
#include "../KeyPad/KeyPad.h"
#include "../Configuration.h"
#include "UI_Lib.h"
#include "Icons.h"
#include <string.h>
#include "XPT2046.h"
Go to the source code of this file.
Classes | |
class | ScreenManagerClass |
Class that is used to control the screen. More... | |
Typedefs | |
typedef enum ScreenTypes | ScreenTypes_t |
Available screen types. | |
Enumerations | |
enum | TouchEventStates { TOUCH_EVENTS_WAIT_FOR_TOUCH , TOUCH_EVENTS_WAIT_LONG_TOUCH_DELAY , TOUCH_EVENTS_LONG_TOUCH_DETECTED } |
Available states for the touch handling state machine. More... | |
enum | ScreenTypes { SCREEN_PS , SCREEN_DDS , SCREEN_MEAS , SCREEN_CONF , NUM_SCREEN_ELEMENTS } |
Available screen types. More... | |
Functions | |
UIElement * | uiBuildSplashScreen () |
Build the SplashScreen by linking all necessary components together. | |
UIElement * | uiBuildScreenPS () |
Build the PowerSupply screen by linking all necessary components together. | |
UIElement * | uiBuildScreenDDS () |
Build the DDS screen by linking all necessary components together. | |
UIElement * | uiBuildScreenMeasure () |
Build the Measure screen by linking all necessary components together. | |
UIElement * | uiBuildScreenSettings () |
Build the Settings screen by linking all necessary components together. | |
UIElement * | uiBuildScreenCalibration () |
Build the Calibration screen by linking all necessary components together. | |
UIElement * | StartCalibration () |
Start the calibration by initializing all calibration screen components and the calibration state machine. | |
void | updateDmmNegativeWarningVisibility () |
Update the visibility of the DMM channel negative warning icons. | |
void | ScreenDDSUpdateVisibility () |
Update the visibility of all controls on the DDS screen. | |
Containing a class and functions for screen handling.
typedef enum ScreenTypes ScreenTypes_t |
Available screen types.
Enumeration with all different screens of the device, dependent on the enabled subsystems. The enumeration value is used to determine the index of the screen in the tab control.
enum ScreenTypes |
Available screen types.
Enumeration with all different screens of the device, dependent on the enabled subsystems. The enumeration value is used to determine the index of the screen in the tab control.
enum TouchEventStates |
Available states for the touch handling state machine.
void ScreenDDSUpdateVisibility | ( | ) |
Update the visibility of all controls on the DDS screen.
Do this e.g. after loading all settings.
UIElement * StartCalibration | ( | ) |
Start the calibration by initializing all calibration screen components and the calibration state machine.
Start the calibration by initializing all calibration screen components and the calibration state machine.
This initializes all UI elements to the neccessary states and returns a pointer to the calibration screen.
UIElement * uiBuildScreenCalibration | ( | ) |
Build the Calibration screen by linking all necessary components together.
UIElement * uiBuildScreenDDS | ( | ) |
Build the DDS screen by linking all necessary components together.
UIElement * uiBuildScreenMeasure | ( | ) |
Build the Measure screen by linking all necessary components together.
UIElement * uiBuildScreenPS | ( | ) |
Build the PowerSupply screen by linking all necessary components together.
UIElement * uiBuildScreenSettings | ( | ) |
Build the Settings screen by linking all necessary components together.
UIElement * uiBuildSplashScreen | ( | ) |
Build the SplashScreen by linking all necessary components together.