Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// screen_wizard.h
#ifndef _SCREEN_WIZARD
#define _SCREEN_WIZARD
#include "gui.h"
#include "status_footer.h"
#include "wizard_types.h"
//#include "wizard_ui.h"
#include "xyzcalib.h"
#include "selftest.h"
#include "firstlay.h"
#pragma pack(push)
#pragma pack(1)
typedef union{
selftest_fans_axis_screen_t selftest_fans_axis_screen;
selftest_home_screen_t selftest_home_screen;
selftest_cool_screen_t selftest_cool_screen;
selftest_temp_screen_t selftest_temp_screen;
//selftest_screen_t selftest_screen;
xyzcalib_screen_t xyzcalib_screen;
firstlay_screen_t firstlay_screen;
}screen_variant_t;
//data in screen_variant_t screen_variant does not "survive" between screens
//data in selftest_data_t selftest, xyzcalib_data_t xyzcalib, firstlay_data_t firstlay, does
typedef struct
{
window_frame_t frame;
window_frame_t frame_footer;
//window_header_t header;
window_text_t header;
status_footer_t footer;
window_frame_t frame_body;
wizard_state_t state;
uint8_t flags;
screen_variant_t screen_variant;
selftest_data_t selftest;
xyzcalib_data_t xyzcalib;
firstlay_data_t firstlay;
/*float Kp_bed;
float Ki_bed;
float Kd_bed;
float Kp_noz;
float Ki_noz;
float Kd_noz;*/
} screen_wizard_data_t;
#pragma pack(pop)
#define pd ((screen_wizard_data_t*)screen->pdata)
extern const char* wizard_get_caption(screen_t* screen);
extern void wizard_done_screen(screen_t* screen);
extern void wizard_ui_set_progress(int ctl, float val);
#endif //_SCREEN_WIZARD
efe9a7c8eThis file is pinned to the selected release. Download the original to open it in your design tool.