Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// firstlay.h
#ifndef _FIRSTLAY_H
#define _FIRSTLAY_H
#include <inttypes.h>
#include "gui.h"
#include "wizard_types.h"
#include "wizard_load_unload.h"
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
#pragma pack(push)
#pragma pack(1)
typedef enum
{
_FL_INIT,
_FL_GCODE_HEAD,
_FL_GCODE_BODY,
_FL_GCODE_DONE
}
_FL_STATE;
#define FIRSTLAY_SCREEN_TERM_X 25
#define FIRSTLAY_SCREEN_TERM_Y 5
typedef struct
{
_FL_STATE state;
window_progress_t progress;
window_text_t text_state;
float extruder_start_len;
LD_UNLD_STATE_t load_unload_state;
window_text_t text_Z_pos;
window_text_t text_direction_arrow;
window_numb_t spin_baby_step;
float Z_offset;
float Z_offset_request;
//int16_t id_term;
window_term_t term;
term_t terminal;
uint8_t term_buff[TERM_BUFF_SIZE(FIRSTLAY_SCREEN_TERM_X,FIRSTLAY_SCREEN_TERM_Y)]; //chars and attrs (640 bytes) + change bitmask (40 bytes)
//it is being deleted i do not know why. size isue?
/*const char** head_gcode;
const char** body_gcode;
size_t head_gcode_sz;
size_t body_gcode_sz;
size_t gcode_sz;*/
uint32_t timer0;
}firstlay_screen_t;
//#pragma pack(1) makes enums 8 bit
typedef struct
{
//_TEST_STATE_t state_heat;
_TEST_STATE_t state_load;
_TEST_STATE_t state_print;
} firstlay_data_t;
#pragma pack(pop)
extern void wizard_firstlay_event_dn(firstlay_screen_t* p_screen);
extern void wizard_firstlay_event_up(firstlay_screen_t* p_screen);
extern void wizard_init_screen_firstlay(int16_t id_body,
firstlay_screen_t* p_screen, firstlay_data_t* p_data);
/*
extern int wizard_firstlay_heat(int16_t id_body,
firstlay_screen_t* p_screen, firstlay_data_t* p_data);
extern int wizard_firstlay_load(int16_t id_body,
firstlay_screen_t* p_screen, firstlay_data_t* p_data);
*/
extern int wizard_firstlay_print(int16_t id_body,
firstlay_screen_t* p_screen, firstlay_data_t* p_data, float z_offset);
#ifdef __cplusplus
}
#endif //__cplusplus
#endif //_FIRSTLAY_H
efe9a7c8eThis file is pinned to the selected release. Download the original to open it in your design tool.