Pinecil pd tweaking (#1272)
* Raise PD max to 21V
* gui -> settingsGUI
* VBus probe cache
* Rough pass PD capabilities display
* Cleanup build errors
* PD Debug menu working
* Update make_translation.py
* settingsGUI
* Update GUIThread.cpp
* Nicer debug prints
* Show VBus in PD debug
* Update GUIThread.cpp
* Update make_translation.py
* Add docs
* Build tweaks for TS80P 😢
* Show PPS ranges
This commit is contained in:
40
source/Core/Inc/settingsGUI.hpp
Normal file
40
source/Core/Inc/settingsGUI.hpp
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* settingsGUI.h
|
||||
*
|
||||
* Created on: 3Sep.,2017
|
||||
* Author: Ben V. Brown
|
||||
*/
|
||||
|
||||
#ifndef GUI_HPP_
|
||||
#define GUI_HPP_
|
||||
#include "BSP.h"
|
||||
#include "Settings.h"
|
||||
#include "Translation.h"
|
||||
|
||||
#define PRESS_ACCEL_STEP (TICKS_100MS / 3)
|
||||
#define PRESS_ACCEL_INTERVAL_MIN TICKS_100MS
|
||||
#define PRESS_ACCEL_INTERVAL_MAX (TICKS_100MS * 3)
|
||||
|
||||
// GUI holds the menu structure and all its methods for the menu itself
|
||||
|
||||
// Declarations for all the methods for the settings menu (at end of this file)
|
||||
|
||||
// Struct for holding the function pointers and descriptions
|
||||
typedef struct {
|
||||
// The settings description index, please use the `SETTINGS_DESC` macro with
|
||||
// the `SettingsItemIndex` enum. Use 0 for no description.
|
||||
uint8_t description;
|
||||
// return true if increment reached the maximum value
|
||||
bool (*const incrementHandler)(void);
|
||||
void (*const draw)(void);
|
||||
bool (*const isVisible)(void);
|
||||
// If this is set, we will automatically use the settings increment handler instead, set >= num settings to disable
|
||||
SettingsOptions autoSettingOption;
|
||||
} menuitem;
|
||||
|
||||
void enterSettingsMenu();
|
||||
void GUIDelay();
|
||||
void warnUser(const char *warning, const int timeout);
|
||||
extern const menuitem rootSettingsMenu[];
|
||||
|
||||
#endif /* GUI_HPP_ */
|
||||
Reference in New Issue
Block a user